File indexing completed on 2024-04-06 11:58:43
0001 #ifndef TB06TreeH2_h
0002 #define TB06TreeH2_h
0003
0004
0005 #include <string>
0006
0007 class TClonesArray;
0008 class TFile;
0009 class TTree;
0010
0011 class G3EventProxy;
0012
0013 class TB06TreeH2 {
0014 public:
0015
0016 TB06TreeH2(const std::string &fileName = "TB06Tree.root", const std::string &treeName = "Analysis");
0017
0018 ~TB06TreeH2();
0019
0020 void store(const int &tableIsMoving,
0021 const int &run,
0022 const int &event,
0023 const int &S6adc,
0024 const double &xhodo,
0025 const double &yhodo,
0026 const double &xslope,
0027 const double &yslope,
0028 const double &xquality,
0029 const double &yquality,
0030 const int &icMax,
0031 const int &ietaMax,
0032 const int &iphiMax,
0033 const double &beamEnergy,
0034 const double ampl[49],
0035 const int &wcAXo,
0036 const int &wcAYo,
0037 const int &wcBXo,
0038 const int &wcBYo,
0039 const int &wcCXo,
0040 const int &wcCYo,
0041 const double &xwA,
0042 const double &ywA,
0043 const double &xwB,
0044 const double &ywB,
0045 const double &xwC,
0046 const double &ywC,
0047 const float &S1adc,
0048 const float &S2adc,
0049 const float &S3adc,
0050 const float &S4adc,
0051 const float &VM1,
0052 const float &VM2,
0053 const float &VM3,
0054 const float &VM4,
0055 const float &VM5,
0056 const float &VM6,
0057 const float &VM7,
0058 const float &VM8,
0059 const float &VMF,
0060 const float &VMB,
0061 const float &CK1,
0062 const float &CK2,
0063 const float &CK3,
0064 const float &BH1,
0065 const float &BH2,
0066 const float &BH3,
0067 const float &BH4,
0068 const float &TOF1S,
0069 const float &TOF2S,
0070 const float &TOF1J,
0071 const float &TOF2J);
0072
0073 void reset(float crystal[11][21]);
0074
0075 void check();
0076
0077 private:
0078 TFile *m_file;
0079 TTree *m_tree;
0080
0081 TClonesArray *m_data;
0082 int m_dataSize;
0083 };
0084
0085 #endif