CMS 3D CMS Logo

TreeMatrixCalib.h
Go to the documentation of this file.
1 #ifndef TreeMatrixCalib_h
2 #define TreeMatrixCalib_h
3 
4 // includes
5 #include "TROOT.h"
6 #include "TSystem.h"
7 #include "TFile.h"
8 #include "TTree.h"
9 
10 class TFile;
11 class TTree;
12 
13 class G3EventProxy;
14 
16 public:
17  TreeMatrixCalib(const char * filename = "tb.root");
19 
20  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[]);
21 
22  void store();
23 
24 
25  private:
26 
27  TFile* myFile;
28  TTree* myTree;
29 
30  // general info
31  int myEvent, myRun;
36 
37  // amplitude
38  double myAmplit[49];
39 
40  // crystals
41  int myCrystal[49];
42 
43  // hodoscope infos
44  double myHodoX, myHodoY;
47 
48  // ecal position
49  double myCaloX, myCaloY;
50 
51  // tdc info
52  double myTdcOffset;
53 
54  // all matrix
56 
57 };
58 
59 #endif
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[])