CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTMuonLocalAlignment.cc
Go to the documentation of this file.
2 
3 
4 
5 
6 
9 
10 
11 void DTMuonLocalAlignment::initNTuples(int nMtxSection) {
12 
13  tali = new TChain("InfoTuple");
14 
15  int iFile = 0;
16  if (nMtxSection>0) iFile = (nMtxSection - 1)*numberOfRootFiles;
17 
18  for(int n_file = iFile; n_file < iFile+numberOfRootFiles; ++n_file) {
19 
20  char theNameOfTheFile[150];
21  sprintf(theNameOfTheFile, "%sMyNtupleResidual_Craft09_%d.root", ntuplePath.c_str(), n_file);
22  tali->Add(theNameOfTheFile);
23 
24  }
25 
27 
28 }
29 
30 
31 
32 
34 
35  tali->SetBranchAddress("p", &p);
36  tali->SetBranchAddress("pt", &pt);
37  tali->SetBranchAddress("eta", &eta);
38  tali->SetBranchAddress("phi", &phi);
39  tali->SetBranchAddress("charge", &charge);
40  tali->SetBranchAddress("nseg", &nseg);
41  tali->SetBranchAddress("nphihits", nphihits);
42  tali->SetBranchAddress("nthetahits", nthetahits);
43  tali->SetBranchAddress("nhits", nhits);
44  tali->SetBranchAddress("xSl", xSl);
45  tali->SetBranchAddress("dxdzSl", dxdzSl);
46  tali->SetBranchAddress("exSl", exSl);
47  tali->SetBranchAddress("edxdzSl", edxdzSl);
48  tali->SetBranchAddress("exdxdzSl", edxdzSl);
49  tali->SetBranchAddress("ySl", ySl);
50  tali->SetBranchAddress("dydzSl", dydzSl);
51  tali->SetBranchAddress("eySl", eySl);
52  tali->SetBranchAddress("edydzSl", edydzSl);
53  tali->SetBranchAddress("eydydzSl", eydydzSl);
54  tali->SetBranchAddress("xSlSL1", xSlSL1);
55  tali->SetBranchAddress("dxdzSlSL1", dxdzSlSL1);
56  tali->SetBranchAddress("exSlSL1", exSlSL1);
57  tali->SetBranchAddress("edxdzSlSL1", edxdzSlSL1);
58  tali->SetBranchAddress("xSL1SL3", xSL1SL3);
59  tali->SetBranchAddress("xSlSL3", xSlSL3);
60  tali->SetBranchAddress("dxdzSlSL3", dxdzSlSL3);
61  tali->SetBranchAddress("exSlSL3", exSlSL3);
62  tali->SetBranchAddress("edxdzSlSL3", edxdzSlSL3);
63  tali->SetBranchAddress("xSL3SL1", xSL3SL1);
64  tali->SetBranchAddress("xc", xc);
65  tali->SetBranchAddress("yc", yc);
66  tali->SetBranchAddress("zc", zc);
67  tali->SetBranchAddress("ex", ex);
68  tali->SetBranchAddress("xcp", xcp);
69  tali->SetBranchAddress("ycp", ycp);
70  tali->SetBranchAddress("excp", excp);
71  tali->SetBranchAddress("eycp", eycp);
72  tali->SetBranchAddress("wh", wh);
73  tali->SetBranchAddress("st", st);
74  tali->SetBranchAddress("sr", sr);
75  tali->SetBranchAddress("sl", sl);
76  tali->SetBranchAddress("la", la);
77 
78 }
79 
float dxdzSlSL3[MAX_SEGMENT]
float xSL3SL1[MAX_SEGMENT]
float exSlSL3[MAX_SEGMENT]
float xSl[MAX_SEGMENT]
float edxdzSlSL3[MAX_SEGMENT]
float ycp[MAX_SEGMENT][MAX_HIT_CHAM]
float dxdzSlSL1[MAX_SEGMENT]
float dydzSl[MAX_SEGMENT]
float ex[MAX_SEGMENT][MAX_HIT_CHAM]
float dxdzSl[MAX_SEGMENT]
float eySl[MAX_SEGMENT]
float yc[MAX_SEGMENT][MAX_HIT_CHAM]
float eydydzSl[MAX_SEGMENT]
float edxdzSlSL1[MAX_SEGMENT]
float xSL1SL3[MAX_SEGMENT]
int sl[MAX_SEGMENT][MAX_HIT_CHAM]
float excp[MAX_SEGMENT][MAX_HIT_CHAM]
int nphihits[MAX_SEGMENT]
int nthetahits[MAX_SEGMENT]
float ySl[MAX_SEGMENT]
float xc[MAX_SEGMENT][MAX_HIT_CHAM]
float xcp[MAX_SEGMENT][MAX_HIT_CHAM]
float exSl[MAX_SEGMENT]
float xSlSL1[MAX_SEGMENT]
float exSlSL1[MAX_SEGMENT]
float edydzSl[MAX_SEGMENT]
float zc[MAX_SEGMENT][MAX_HIT_CHAM]
float xSlSL3[MAX_SEGMENT]
int la[MAX_SEGMENT][MAX_HIT_CHAM]
float eycp[MAX_SEGMENT][MAX_HIT_CHAM]
float edxdzSl[MAX_SEGMENT]