00001 #ifndef TB06TreeH2_h
00002 #define TB06TreeH2_h
00003
00004
00005 #include <string>
00006
00007 #include "TClonesArray.h"
00008
00009 class TFile ;
00010 class TTree ;
00011
00012 class G3EventProxy ;
00013
00014 class TB06TreeH2 {
00015 public:
00017 TB06TreeH2 (const std::string & fileName = "TB06Tree.root",
00018 const std::string & treeName = "Analysis") ;
00020 ~TB06TreeH2 () ;
00021
00022 void store (const int & tableIsMoving,
00023 const int & run, const int & event,
00024 const int & S6adc ,
00025 const double & xhodo, const double & yhodo,
00026 const double & xslope, const double & yslope,
00027 const double & xquality, const double & yquality,
00028 const int & icMax,
00029 const int & ietaMax, const int & iphiMax,
00030 const double & beamEnergy,
00031 const double ampl[49],
00032 const int &wcAXo,const int &wcAYo,
00033 const int &wcBXo,const int &wcBYo,
00034 const int &wcCXo,const int &wcCYo,
00035 const double & xwA, const double & ywA,
00036 const double & xwB, const double & ywB,
00037 const double & xwC, const double & ywC,
00038 const float &S1adc, const float &S2adc,
00039 const float &S3adc, const float &S4adc,
00040 const float &VM1,const float &VM2,const float &VM3,
00041 const float &VM4,const float &VM5,const float &VM6,
00042 const float &VM7,const float &VM8,const float &VMF,
00043 const float &VMB,
00044 const float &CK1,const float &CK2, const float &CK3,
00045 const float &BH1,const float &BH2,const float &BH3,
00046 const float &BH4,
00047 const float &TOF1S, const float &TOF2S,
00048 const float &TOF1J,const float &TOF2J);
00049
00050 void reset (float crystal[11][21]) ;
00051
00052 void check () ;
00053
00054 private:
00055
00056 TFile * m_file ;
00057 TTree * m_tree ;
00058
00059 TClonesArray * m_data ;
00060 int m_dataSize ;
00061
00062 } ;
00063
00064 #endif