Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CalHit.h

Go to the documentation of this file.
00001 #ifndef CALHIT_H
00002 #define CALHIT_H
00003 
00004 #include "JobControl/Module.h"
00005 #include "JobControl/ModuleFactory.h"
00006 #include "Config/Config.h"
00007 #include "Config/Param.h"
00008 #include "RecoBase/CellHit.h"
00009 #include "EventDataModel/EventHandle.h"
00010 #include "Geometry/Geometry.h"
00011 #include <vector>
00012 #include <string>
00013 
00014 namespace calhit {
00015 
00016 
00018 
00019 
00020 
00021     class CalHit : public jobc::Module {
00022 
00023        public:
00024           
00030          CalHit(const char* version); 
00031          virtual ~CalHit();
00032  
00033 
00035          jobc::Result Reco(edm::EventHandle& evt);
00036          void Update(const cfg::Config&);
00037 
00038          geo::Geometry* fGeo;    // pointer to Geometry object
00039 
00040        private:
00041 
00042          jobc::Result GetData(edm::EventHandle&);
00043          jobc::Result AddToData(edm::EventHandle&);
00044          jobc::Result SaveData(edm::EventHandle&);
00045 
00046          void PrintCalibs(); 
00047                                    
00048 
00049          jobc::Result Raw(edm::EventHandle& evt); 
00050          jobc::Result Read(edm::EventHandle& evt); 
00051 
00052          bool DoCalib(recobase::CellHit_t,int=-1); 
00053 
00054          std::string fInputFolder; 
00055          std::string fOutputFolder; 
00056 
00057 
00058          int fDoCalib;
00059          bool fWarnedPE;
00060          bool fWarnedPEAC;
00061          bool fWarnedMIP;
00062          bool fWarnedNS;
00063          bool fWarnedTT0;
00064          bool fWarnedTTrans;
00065 
00066          std::vector<recobase::CellHit*> fCellVec;        
00067          std::vector<const recobase::CellHit*> fCellInput;
00068 
00069        protected: 
00070 
00071          virtual jobc::Result ADC2PEHit(recobase::CellHit*); 
00072          virtual jobc::Result ADC2PEACHit(recobase::CellHit*); 
00073          virtual jobc::Result ADC2MIPHit(recobase::CellHit*); 
00074          virtual jobc::Result TDC2NSHit(recobase::CellHit*); 
00075          virtual jobc::Result TDC2TT0Hit(recobase::CellHit*); 
00076          virtual jobc::Result TDC2TTransHit(recobase::CellHit*); 
00077 
00078          virtual void AddAttCorr(recobase::CellHit*); 
00079     }; // class CalHit
00080 
00081 
00082 
00083 }
00084 
00085 
00086 
00087 
00088 
00089 #endif // CALHIT_H

Generated on Sat Oct 11 02:35:27 2008 for NOvA Offline by  doxygen 1.3.9.1