MCalSimulationReader.hh

Go to the documentation of this file.
00001 #ifndef _M_CALSIMULATIONREADER_HH_
00002 #define _M_CALSIMULATIONREADER_HH_
00003 
00004 #include "TFile.h"
00005 #include "TTree.h"
00006 #include "TF1.h"
00007 
00073 #include "QFileReader.hh"
00074 
00075 class MCalSimulationReader : public QFileReader {
00076 
00077     public:
00079         MCalSimulationReader(QSequence* s);
00080 
00082         ~MCalSimulationReader();
00083 
00085         void Open(const std::string& filename);
00086 
00088         QEvent* Fill(QEvent* ev);
00089 
00091         void Close();
00092 
00093     private:
00095                  TFile* fFile;
00096                  
00098                  TTree* fTree;
00099                  
00101                  TF1* fCalFunction;
00102                 
00104                  std::map<int, double*> fParams;
00105                  
00107                  double fResolution;
00108                  
00110                  double fSlope;
00111                  
00113                  std::string fRawEnergyVarName;
00114                  
00116                  std::string fAdjEnergyVarName;
00117                  
00119                  bool fSaveRawEnergyInEvent;
00120                  bool fSaveAdjEnergyInEvent;
00121                  
00123                  int fRunNumber;
00124                  
00126                  TF1* fResolutionFunction;
00127                  
00129                  int fOnlyTower;
00130                  
00132                  int fTower; 
00133                  int fLayer;
00134                  int fCrystal;
00135                  double fEnergy;
00136                  double fTime;
00137 
00138 
00139 };
00140 
00141 #endif
00142 

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1