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 }
double f[11][100]