Main Page
Namespaces
Classes
Package Documentation
Alignment
MuonAlignmentAlgorithms
src
DTMuonLocalAlignment.cc
Go to the documentation of this file.
1
#include "
Alignment/MuonAlignmentAlgorithms/interface/DTMuonLocalAlignment.h
"
2
3
4
5
6
7
DTMuonLocalAlignment::DTMuonLocalAlignment
() :
8
tali(
nullptr
),
f
(
nullptr
)
9
{}
10
DTMuonLocalAlignment::~DTMuonLocalAlignment
(){}
11
12
13
void
DTMuonLocalAlignment::initNTuples
(
int
nMtxSection) {
14
15
tali
=
new
TChain(
"InfoTuple"
);
16
17
int
iFile = 0;
18
if
(nMtxSection>0) iFile = (nMtxSection - 1)*
numberOfRootFiles
;
19
20
for
(
int
n_file = iFile; n_file < iFile+
numberOfRootFiles
; ++n_file) {
21
22
char
theNameOfTheFile[150];
23
snprintf(theNameOfTheFile,
sizeof
(theNameOfTheFile),
24
"%sMyNtupleResidual_Craft09_%d.root"
,
ntuplePath
.c_str(), n_file);
25
tali
->Add(theNameOfTheFile);
26
27
}
28
29
setBranchAddressTree
();
30
31
}
32
33
34
35
36
void
DTMuonLocalAlignment::setBranchAddressTree
() {
37
38
tali
->SetBranchAddress(
"p"
, &
p
);
39
tali
->SetBranchAddress(
"pt"
, &
pt
);
40
tali
->SetBranchAddress(
"eta"
, &
eta
);
41
tali
->SetBranchAddress(
"phi"
, &
phi
);
42
tali
->SetBranchAddress(
"charge"
, &
charge
);
43
tali
->SetBranchAddress(
"nseg"
, &
nseg
);
44
tali
->SetBranchAddress(
"nphihits"
,
nphihits
);
45
tali
->SetBranchAddress(
"nthetahits"
,
nthetahits
);
46
tali
->SetBranchAddress(
"nhits"
,
nhits
);
47
tali
->SetBranchAddress(
"xSl"
,
xSl
);
48
tali
->SetBranchAddress(
"dxdzSl"
,
dxdzSl
);
49
tali
->SetBranchAddress(
"exSl"
,
exSl
);
50
tali
->SetBranchAddress(
"edxdzSl"
,
edxdzSl
);
51
tali
->SetBranchAddress(
"exdxdzSl"
,
edxdzSl
);
52
tali
->SetBranchAddress(
"ySl"
,
ySl
);
53
tali
->SetBranchAddress(
"dydzSl"
,
dydzSl
);
54
tali
->SetBranchAddress(
"eySl"
,
eySl
);
55
tali
->SetBranchAddress(
"edydzSl"
,
edydzSl
);
56
tali
->SetBranchAddress(
"eydydzSl"
,
eydydzSl
);
57
tali
->SetBranchAddress(
"xSlSL1"
,
xSlSL1
);
58
tali
->SetBranchAddress(
"dxdzSlSL1"
,
dxdzSlSL1
);
59
tali
->SetBranchAddress(
"exSlSL1"
,
exSlSL1
);
60
tali
->SetBranchAddress(
"edxdzSlSL1"
,
edxdzSlSL1
);
61
tali
->SetBranchAddress(
"xSL1SL3"
,
xSL1SL3
);
62
tali
->SetBranchAddress(
"xSlSL3"
,
xSlSL3
);
63
tali
->SetBranchAddress(
"dxdzSlSL3"
,
dxdzSlSL3
);
64
tali
->SetBranchAddress(
"exSlSL3"
,
exSlSL3
);
65
tali
->SetBranchAddress(
"edxdzSlSL3"
,
edxdzSlSL3
);
66
tali
->SetBranchAddress(
"xSL3SL1"
,
xSL3SL1
);
67
tali
->SetBranchAddress(
"xc"
,
xc
);
68
tali
->SetBranchAddress(
"yc"
,
yc
);
69
tali
->SetBranchAddress(
"zc"
,
zc
);
70
tali
->SetBranchAddress(
"ex"
,
ex
);
71
tali
->SetBranchAddress(
"xcp"
,
xcp
);
72
tali
->SetBranchAddress(
"ycp"
,
ycp
);
73
tali
->SetBranchAddress(
"excp"
,
excp
);
74
tali
->SetBranchAddress(
"eycp"
,
eycp
);
75
tali
->SetBranchAddress(
"wh"
,
wh
);
76
tali
->SetBranchAddress(
"st"
,
st
);
77
tali
->SetBranchAddress(
"sr"
,
sr
);
78
tali
->SetBranchAddress(
"sl"
,
sl
);
79
tali
->SetBranchAddress(
"la"
,
la
);
80
81
}
82
DTMuonLocalAlignment::xSL3SL1
float xSL3SL1[5]
Definition:
DTMuonLocalAlignment.h:68
DTMuonLocalAlignment::numberOfRootFiles
int numberOfRootFiles
Definition:
DTMuonLocalAlignment.h:32
DTMuonLocalAlignment::nhits
int nhits[5]
Definition:
DTMuonLocalAlignment.h:46
DTMuonLocalAlignment::edydzSl
float edydzSl[5]
Definition:
DTMuonLocalAlignment.h:55
DTMuonLocalAlignment::phi
float phi
Definition:
DTMuonLocalAlignment.h:42
DTMuonLocalAlignment::eySl
float eySl[5]
Definition:
DTMuonLocalAlignment.h:54
nullptr
#define nullptr
Definition:
GCC11Compatibility.h:37
DTMuonLocalAlignment::xc
float xc[5][14]
Definition:
DTMuonLocalAlignment.h:69
DTMuonLocalAlignment::tali
TChain * tali
Definition:
DTMuonLocalAlignment.h:34
DTMuonLocalAlignment::st
int st[5]
Definition:
DTMuonLocalAlignment.h:77
DTMuonLocalAlignment::~DTMuonLocalAlignment
~DTMuonLocalAlignment()
Definition:
DTMuonLocalAlignment.cc:10
DTMuonLocalAlignment::exSl
float exSl[5]
Definition:
DTMuonLocalAlignment.h:49
DTMuonLocalAlignment::pt
float pt
Definition:
DTMuonLocalAlignment.h:42
DTMuonLocalAlignment::p
float p
Definition:
DTMuonLocalAlignment.h:42
DTMuonLocalAlignment.h
DTMuonLocalAlignment::nthetahits
int nthetahits[5]
Definition:
DTMuonLocalAlignment.h:45
DTMuonLocalAlignment::ycp
float ycp[5][14]
Definition:
DTMuonLocalAlignment.h:74
DTMuonLocalAlignment::ex
float ex[5][14]
Definition:
DTMuonLocalAlignment.h:72
DTMuonLocalAlignment::xSL1SL3
float xSL1SL3[5]
Definition:
DTMuonLocalAlignment.h:62
DTMuonLocalAlignment::DTMuonLocalAlignment
DTMuonLocalAlignment()
Definition:
DTMuonLocalAlignment.cc:7
DTMuonLocalAlignment::dydzSl
float dydzSl[5]
Definition:
DTMuonLocalAlignment.h:53
DTMuonLocalAlignment::eycp
float eycp[5][14]
Definition:
DTMuonLocalAlignment.h:76
DTMuonLocalAlignment::dxdzSlSL1
float dxdzSlSL1[5]
Definition:
DTMuonLocalAlignment.h:58
DTMuonLocalAlignment::edxdzSl
float edxdzSl[5]
Definition:
DTMuonLocalAlignment.h:50
DTMuonLocalAlignment::nphihits
int nphihits[5]
Definition:
DTMuonLocalAlignment.h:44
DTMuonLocalAlignment::setBranchAddressTree
void setBranchAddressTree()
Definition:
DTMuonLocalAlignment.cc:36
DTMuonLocalAlignment::edxdzSlSL1
float edxdzSlSL1[5]
Definition:
DTMuonLocalAlignment.h:60
DTMuonLocalAlignment::xcp
float xcp[5][14]
Definition:
DTMuonLocalAlignment.h:73
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
DTMuonLocalAlignment::nseg
int nseg
Definition:
DTMuonLocalAlignment.h:43
DTMuonLocalAlignment::yc
float yc[5][14]
Definition:
DTMuonLocalAlignment.h:70
DTMuonLocalAlignment::initNTuples
void initNTuples(int)
Definition:
DTMuonLocalAlignment.cc:13
DTMuonLocalAlignment::edxdzSlSL3
float edxdzSlSL3[5]
Definition:
DTMuonLocalAlignment.h:66
DTMuonLocalAlignment::eta
float eta
Definition:
DTMuonLocalAlignment.h:42
DTMuonLocalAlignment::ySl
float ySl[5]
Definition:
DTMuonLocalAlignment.h:52
DTMuonLocalAlignment::xSlSL3
float xSlSL3[5]
Definition:
DTMuonLocalAlignment.h:63
DTMuonLocalAlignment::charge
float charge
Definition:
DTMuonLocalAlignment.h:42
DTMuonLocalAlignment::sl
int sl[5][14]
Definition:
DTMuonLocalAlignment.h:78
DTMuonLocalAlignment::sr
int sr[5]
Definition:
DTMuonLocalAlignment.h:77
DTMuonLocalAlignment::excp
float excp[5][14]
Definition:
DTMuonLocalAlignment.h:75
DTMuonLocalAlignment::xSl
float xSl[5]
Definition:
DTMuonLocalAlignment.h:47
DTMuonLocalAlignment::dxdzSlSL3
float dxdzSlSL3[5]
Definition:
DTMuonLocalAlignment.h:64
DTMuonLocalAlignment::exSlSL3
float exSlSL3[5]
Definition:
DTMuonLocalAlignment.h:65
DTMuonLocalAlignment::exSlSL1
float exSlSL1[5]
Definition:
DTMuonLocalAlignment.h:59
DTMuonLocalAlignment::dxdzSl
float dxdzSl[5]
Definition:
DTMuonLocalAlignment.h:48
DTMuonLocalAlignment::zc
float zc[5][14]
Definition:
DTMuonLocalAlignment.h:71
DTMuonLocalAlignment::eydydzSl
float eydydzSl[5]
Definition:
DTMuonLocalAlignment.h:56
DTMuonLocalAlignment::xSlSL1
float xSlSL1[5]
Definition:
DTMuonLocalAlignment.h:57
DTMuonLocalAlignment::wh
int wh[5]
Definition:
DTMuonLocalAlignment.h:77
DTMuonLocalAlignment::la
int la[5][14]
Definition:
DTMuonLocalAlignment.h:79
DTMuonLocalAlignment::ntuplePath
std::string ntuplePath
Definition:
DTMuonLocalAlignment.h:30
Generated for CMSSW Reference Manual by
1.8.11