CMS 3D CMS Logo

TreeMatrixCalib.h
Go to the documentation of this file.
1 #ifndef TreeMatrixCalib_h
2 #define TreeMatrixCalib_h
3 
4 // includes
7 #include "TROOT.h"
8 #include "TSystem.h"
9 #include "TFile.h"
10 #include "TTree.h"
11 
12 class TFile;
13 class TTree;
14 
15 class G3EventProxy;
16 
18 public:
19  TreeMatrixCalib(const char* filename = "tb.root");
20  ~TreeMatrixCalib() = default;
21 
22  void fillInfo(int run,
23  int eve,
24  int xnum,
25  int maxX,
26  int nomX,
27  int nextX,
28  int xeta,
29  int xphi,
30  int tbm,
31  double xx,
32  double yy,
33  double ecalx,
34  double ecaly,
35  double sx,
36  double sy,
37  double qx,
38  double qy,
39  double tdcoff,
40  int allm,
41  double amp[],
42  int cry[]);
43 
44  void store();
45 
46 private:
47  TTree* myTree_;
48 
49  // general info
50  int myEvent, myRun;
55 
56  // amplitude
57  double myAmplit[49];
58 
59  // crystals
60  int myCrystal[49];
61 
62  // hodoscope infos
63  double myHodoX, myHodoY;
66 
67  // ecal position
68  double myCaloX, myCaloY;
69 
70  // tdc info
71  double myTdcOffset;
72 
73  // all matrix
75 };
76 
77 #endif
~TreeMatrixCalib()=default
TreeMatrixCalib(const char *filename="tb.root")
double myAmplit[49]
void fillInfo(int run, int eve, int xnum, int maxX, int nomX, int nextX, int xeta, int xphi, int tbm, double xx, double yy, double ecalx, double ecaly, double sx, double sy, double qx, double qy, double tdcoff, int allm, double amp[], int cry[])