CMS 3D CMS Logo

DTMuonLocalAlignment.cc
Go to the documentation of this file.
2 
3 
4 
5 
6 
8  tali(0), f(0)
9 {}
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 
30 
31 }
32 
33 
34 
35 
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 
double f[11][100]