CMS 3D CMS Logo

TreeMatrixCalib.cc
Go to the documentation of this file.
2 
5  myTree_ = fs->make<TTree>("T1", "my tree");
6 
7  // Amplitude / hodoscopes / tdc infos
8  myTree_->Branch("run", &myRun, "run/I");
9  myTree_->Branch("event", &myEvent, "event/I");
10  myTree_->Branch("xtalSM", &myXtalSM, "xtalSM/I");
11  myTree_->Branch("maxEneXtal", &myMaxEneXtal, "maxEneXtal/I");
12  myTree_->Branch("nominalXtalSM", &myNominalXtalSM, "nominalXtalSM/I");
13  myTree_->Branch("nextXtalSM", &myNextXtalSM, "nextXtalSM/I");
14  myTree_->Branch("xtalEta", &myXtalEta, "xtalEta/I");
15  myTree_->Branch("xtalPhi", &myXtalPhi, "xtalPhi/I");
16  myTree_->Branch("tbMoving", &myTbMoving, "tbMoving/I");
17  myTree_->Branch("hodoX", &myHodoX, "hodoX/D");
18  myTree_->Branch("hodoY", &myHodoY, "hodoY/D");
19  myTree_->Branch("caloX", &myCaloX, "caloX/D");
20  myTree_->Branch("caloY", &myCaloY, "caloY/D");
21  myTree_->Branch("hodoSlopeX", &myHodoSlopeX, "hodoSlopeX/D");
22  myTree_->Branch("hodoSlopeY", &myHodoSlopeY, "hodoSlopeY/D");
23  myTree_->Branch("hodoQualityX", &myHodoQualityX, "hodoQualityX/D");
24  myTree_->Branch("hodoQualityY", &myHodoQualityY, "hodoQualityY/D");
25  myTree_->Branch("tdcOffset", &myTdcOffset, "tdcOffset/D");
26  myTree_->Branch("allMatrix", &myAllMatrix, "allMatrix/I");
27  myTree_->Branch("amplit", &myAmplit, "amplit[49]/D");
28  myTree_->Branch("crystal", &myCrystal, "crystal[49]/I");
29 }
30 
31 void TreeMatrixCalib::store() { myTree_->Fill(); }
32 
34  int eve,
35  int xnum,
36  int maxX,
37  int nomX,
38  int nextX,
39  int xeta,
40  int xphi,
41  int tbm,
42  double xx,
43  double yy,
44  double ecalx,
45  double ecaly,
46  double sx,
47  double sy,
48  double qx,
49  double qy,
50  double tdcoff,
51  int allm,
52  double amp[],
53  int cry[]) {
54  myRun = run;
55  myEvent = eve;
56  myXtalSM = xnum;
58  myNominalXtalSM = nomX;
59  myNextXtalSM = nextX;
60  myXtalEta = xeta;
61  myXtalPhi = xphi;
62  myTbMoving = tbm;
63  myHodoX = xx;
64  myHodoY = yy;
65  myCaloX = ecalx;
66  myCaloY = ecaly;
67  myHodoSlopeX = sx;
68  myHodoSlopeY = sy;
69  myHodoQualityX = qx;
70  myHodoQualityY = qy;
71  myTdcOffset = tdcoff;
72  myAllMatrix = allm;
73  for (int ii = 0; ii < 49; ii++) {
74  myAmplit[ii] = amp[ii];
75  myCrystal[ii] = cry[ii];
76  }
77 }
TreeMatrixCalib(const char *filename="tb.root")
double myAmplit[49]
ii
Definition: cuy.py:589
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[])