CMS 3D CMS Logo

DTMuonLocalAlignment.cc
Go to the documentation of this file.
2 
3 DTMuonLocalAlignment::DTMuonLocalAlignment() : tali(nullptr), f(nullptr) {}
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 
21 }
22 
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::xSlSL3
float xSlSL3[5]
Definition: DTMuonLocalAlignment.h:59
DTMuonLocalAlignment::sr
int sr[5]
Definition: DTMuonLocalAlignment.h:75
DTMuonLocalAlignment::dxdzSlSL3
float dxdzSlSL3[5]
Definition: DTMuonLocalAlignment.h:60
DTMuonLocalAlignment::p
float p
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::la
int la[5][14]
Definition: DTMuonLocalAlignment.h:77
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
DTMuonLocalAlignment::ySl
float ySl[5]
Definition: DTMuonLocalAlignment.h:48
DTMuonLocalAlignment::DTMuonLocalAlignment
DTMuonLocalAlignment()
Definition: DTMuonLocalAlignment.cc:3
DTMuonLocalAlignment::xcp
float xcp[5][14]
Definition: DTMuonLocalAlignment.h:69
DTMuonLocalAlignment::edxdzSl
float edxdzSl[5]
Definition: DTMuonLocalAlignment.h:46
DTMuonLocalAlignment::dxdzSlSL1
float dxdzSlSL1[5]
Definition: DTMuonLocalAlignment.h:54
DTMuonLocalAlignment::xSL3SL1
float xSL3SL1[5]
Definition: DTMuonLocalAlignment.h:64
DTMuonLocalAlignment::xSL1SL3
float xSL1SL3[5]
Definition: DTMuonLocalAlignment.h:58
DTMuonLocalAlignment::nphihits
int nphihits[5]
Definition: DTMuonLocalAlignment.h:40
DTMuonLocalAlignment::dxdzSl
float dxdzSl[5]
Definition: DTMuonLocalAlignment.h:44
DTMuonLocalAlignment::phi
float phi
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::exSlSL1
float exSlSL1[5]
Definition: DTMuonLocalAlignment.h:55
DTMuonLocalAlignment::wh
int wh[5]
Definition: DTMuonLocalAlignment.h:73
DTMuonLocalAlignment::ycp
float ycp[5][14]
Definition: DTMuonLocalAlignment.h:70
DTMuonLocalAlignment::dydzSl
float dydzSl[5]
Definition: DTMuonLocalAlignment.h:49
DTMuonLocalAlignment::zc
float zc[5][14]
Definition: DTMuonLocalAlignment.h:67
DTMuonLocalAlignment::st
int st[5]
Definition: DTMuonLocalAlignment.h:74
DTMuonLocalAlignment::ntuplePath
std::string ntuplePath
Definition: DTMuonLocalAlignment.h:28
DTMuonLocalAlignment::edxdzSlSL1
float edxdzSlSL1[5]
Definition: DTMuonLocalAlignment.h:56
DTMuonLocalAlignment::nthetahits
int nthetahits[5]
Definition: DTMuonLocalAlignment.h:41
DTMuonLocalAlignment::xSlSL1
float xSlSL1[5]
Definition: DTMuonLocalAlignment.h:53
DTMuonLocalAlignment::excp
float excp[5][14]
Definition: DTMuonLocalAlignment.h:71
DTMuonLocalAlignment::yc
float yc[5][14]
Definition: DTMuonLocalAlignment.h:66
DTMuonLocalAlignment::exSlSL3
float exSlSL3[5]
Definition: DTMuonLocalAlignment.h:61
DTMuonLocalAlignment::nseg
int nseg
Definition: DTMuonLocalAlignment.h:39
DTMuonLocalAlignment::exSl
float exSl[5]
Definition: DTMuonLocalAlignment.h:45
DTMuonLocalAlignment::charge
float charge
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::eta
float eta
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::ex
float ex[5][14]
Definition: DTMuonLocalAlignment.h:68
DTMuonLocalAlignment::tali
TChain * tali
Definition: DTMuonLocalAlignment.h:32
DTMuonLocalAlignment::numberOfRootFiles
int numberOfRootFiles
Definition: DTMuonLocalAlignment.h:30
DTMuonLocalAlignment::edxdzSlSL3
float edxdzSlSL3[5]
Definition: DTMuonLocalAlignment.h:62
DTMuonLocalAlignment::setBranchAddressTree
void setBranchAddressTree()
Definition: DTMuonLocalAlignment.cc:23
DTMuonLocalAlignment::pt
float pt
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::edydzSl
float edydzSl[5]
Definition: DTMuonLocalAlignment.h:51
DTMuonLocalAlignment.h
DTMuonLocalAlignment::initNTuples
void initNTuples(int)
Definition: DTMuonLocalAlignment.cc:6
DTMuonLocalAlignment::eySl
float eySl[5]
Definition: DTMuonLocalAlignment.h:50
DTMuonLocalAlignment::xSl
float xSl[5]
Definition: DTMuonLocalAlignment.h:43
DTMuonLocalAlignment::sl
int sl[5][14]
Definition: DTMuonLocalAlignment.h:76
DTMuonLocalAlignment::nhits
int nhits[5]
Definition: DTMuonLocalAlignment.h:42
DTMuonLocalAlignment::~DTMuonLocalAlignment
~DTMuonLocalAlignment()
Definition: DTMuonLocalAlignment.cc:4
DTMuonLocalAlignment::xc
float xc[5][14]
Definition: DTMuonLocalAlignment.h:65
DTMuonLocalAlignment::eycp
float eycp[5][14]
Definition: DTMuonLocalAlignment.h:72
DTMuonLocalAlignment::eydydzSl
float eydydzSl[5]
Definition: DTMuonLocalAlignment.h:52