CMS 3D CMS Logo

TB06TreeH2.h
Go to the documentation of this file.
1 #ifndef TB06TreeH2_h
2 #define TB06TreeH2_h
3 
4 // includes
5 #include <string>
6 
7 #include "TClonesArray.h"
8 
9 class TFile;
10 class TTree;
11 
12 class G3EventProxy;
13 
14 class TB06TreeH2 {
15 public:
17  TB06TreeH2(const std::string &fileName = "TB06Tree.root", const std::string &treeName = "Analysis");
19  ~TB06TreeH2();
20 
21  void store(const int &tableIsMoving,
22  const int &run,
23  const int &event,
24  const int &S6adc,
25  const double &xhodo,
26  const double &yhodo,
27  const double &xslope,
28  const double &yslope,
29  const double &xquality,
30  const double &yquality,
31  const int &icMax,
32  const int &ietaMax,
33  const int &iphiMax,
34  const double &beamEnergy,
35  const double ampl[49],
36  const int &wcAXo,
37  const int &wcAYo,
38  const int &wcBXo,
39  const int &wcBYo,
40  const int &wcCXo,
41  const int &wcCYo,
42  const double &xwA,
43  const double &ywA,
44  const double &xwB,
45  const double &ywB,
46  const double &xwC,
47  const double &ywC,
48  const float &S1adc,
49  const float &S2adc,
50  const float &S3adc,
51  const float &S4adc,
52  const float &VM1,
53  const float &VM2,
54  const float &VM3,
55  const float &VM4,
56  const float &VM5,
57  const float &VM6,
58  const float &VM7,
59  const float &VM8,
60  const float &VMF,
61  const float &VMB,
62  const float &CK1,
63  const float &CK2,
64  const float &CK3,
65  const float &BH1,
66  const float &BH2,
67  const float &BH3,
68  const float &BH4,
69  const float &TOF1S,
70  const float &TOF2S,
71  const float &TOF1J,
72  const float &TOF2J);
73 
74  void reset(float crystal[11][21]);
75 
76  void check();
77 
78 private:
79  TFile *m_file;
80  TTree *m_tree;
81 
82  TClonesArray *m_data;
84 };
85 
86 #endif
TClonesArray * m_data
Definition: TB06TreeH2.h:82
void store(const int &tableIsMoving, const int &run, const int &event, const int &S6adc, const double &xhodo, const double &yhodo, const double &xslope, const double &yslope, const double &xquality, const double &yquality, const int &icMax, const int &ietaMax, const int &iphiMax, const double &beamEnergy, const double ampl[49], const int &wcAXo, const int &wcAYo, const int &wcBXo, const int &wcBYo, const int &wcCXo, const int &wcCYo, const double &xwA, const double &ywA, const double &xwB, const double &ywB, const double &xwC, const double &ywC, const float &S1adc, const float &S2adc, const float &S3adc, const float &S4adc, const float &VM1, const float &VM2, const float &VM3, const float &VM4, const float &VM5, const float &VM6, const float &VM7, const float &VM8, const float &VMF, const float &VMB, const float &CK1, const float &CK2, const float &CK3, const float &BH1, const float &BH2, const float &BH3, const float &BH4, const float &TOF1S, const float &TOF2S, const float &TOF1J, const float &TOF2J)
to be called at each loop
Definition: TB06TreeH2.cc:42
~TB06TreeH2()
dtor
Definition: TB06TreeH2.cc:28
TB06TreeH2(const std::string &fileName="TB06Tree.root", const std::string &treeName="Analysis")
ctor
Definition: TB06TreeH2.cc:8
int m_dataSize
Definition: TB06TreeH2.h:83
void reset(float crystal[11][21])
Definition: TB06TreeH2.cc:209
TTree * m_tree
Definition: TB06TreeH2.h:80
void check()
Definition: TB06TreeH2.cc:219
TFile * m_file
Definition: TB06TreeH2.h:79
Definition: event.py:1