SimG4Core
GFlash
TB
TreeMatrixCalib.cc
Go to the documentation of this file.
1
#include "
SimG4Core/GFlash/TB/TreeMatrixCalib.h
"
2
3
TreeMatrixCalib::TreeMatrixCalib
(
const
char
*) {
4
edm::Service<TFileService>
fs
;
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
33
void
TreeMatrixCalib::fillInfo
(
int
run
,
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;
57
myMaxEneXtal
=
maxX
;
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::store
void store()
Definition:
TreeMatrixCalib.cc:31
edm::Service< TFileService >
TreeMatrixCalib::myHodoSlopeX
double myHodoSlopeX
Definition:
TreeMatrixCalib.h:64
TreeMatrixCalib::myAllMatrix
int myAllMatrix
Definition:
TreeMatrixCalib.h:74
TreeMatrixCalib.h
TreeMatrixCalib::myTree_
TTree * myTree_
Definition:
TreeMatrixCalib.h:47
TreeMatrixCalib::myXtalEta
int myXtalEta
Definition:
TreeMatrixCalib.h:51
TreeMatrixCalib::myCaloX
double myCaloX
Definition:
TreeMatrixCalib.h:68
TreeMatrixCalib::myHodoSlopeY
double myHodoSlopeY
Definition:
TreeMatrixCalib.h:64
TreeMatrixCalib::myHodoQualityY
double myHodoQualityY
Definition:
TreeMatrixCalib.h:65
fftjetcommon_cfi.sy
sy
Definition:
fftjetcommon_cfi.py:203
TreeMatrixCalib::myNominalXtalSM
int myNominalXtalSM
Definition:
TreeMatrixCalib.h:52
TreeMatrixCalib::TreeMatrixCalib
TreeMatrixCalib(const char *filename="tb.root")
Definition:
TreeMatrixCalib.cc:3
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
TreeMatrixCalib::myHodoX
double myHodoX
Definition:
TreeMatrixCalib.h:63
TreeMatrixCalib::myHodoQualityX
double myHodoQualityX
Definition:
TreeMatrixCalib.h:65
geometryCSVtoXML.yy
yy
Definition:
geometryCSVtoXML.py:19
TreeMatrixCalib::myXtalPhi
int myXtalPhi
Definition:
TreeMatrixCalib.h:51
TreeMatrixCalib::myHodoY
double myHodoY
Definition:
TreeMatrixCalib.h:63
TreeMatrixCalib::myNextXtalSM
int myNextXtalSM
Definition:
TreeMatrixCalib.h:52
TreeMatrixCalib::myAmplit
double myAmplit[49]
Definition:
TreeMatrixCalib.h:57
TreeMatrixCalib::myTbMoving
int myTbMoving
Definition:
TreeMatrixCalib.h:53
HGVHistoProducerAlgoBlock_cfi.maxX
maxX
Definition:
HGVHistoProducerAlgoBlock_cfi.py:169
cuy.ii
ii
Definition:
cuy.py:589
geometryCSVtoXML.xx
xx
Definition:
geometryCSVtoXML.py:19
TreeMatrixCalib::myMaxEneXtal
int myMaxEneXtal
Definition:
TreeMatrixCalib.h:54
compareTotals.fs
fs
Definition:
compareTotals.py:52
TreeMatrixCalib::myXtalSM
int myXtalSM
Definition:
TreeMatrixCalib.h:51
TreeMatrixCalib::myEvent
int myEvent
Definition:
TreeMatrixCalib.h:50
fftjetcommon_cfi.sx
sx
Definition:
fftjetcommon_cfi.py:202
TreeMatrixCalib::myRun
int myRun
Definition:
TreeMatrixCalib.h:50
TreeMatrixCalib::fillInfo
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[])
Definition:
TreeMatrixCalib.cc:33
TreeMatrixCalib::myTdcOffset
double myTdcOffset
Definition:
TreeMatrixCalib.h:71
TreeMatrixCalib::myCrystal
int myCrystal[49]
Definition:
TreeMatrixCalib.h:60
TreeMatrixCalib::myCaloY
double myCaloY
Definition:
TreeMatrixCalib.h:68
Generated for CMSSW Reference Manual by
1.8.14