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