CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
DTMuonLocalAlignment Class Reference

#include <DTMuonLocalAlignment.h>

Inheritance diagram for DTMuonLocalAlignment:
DTMuonMillepede DTMuonSLToSL

Public Member Functions

 DTMuonLocalAlignment ()
 
void initNTuples (int)
 
void setBranchAddressTree ()
 
 ~DTMuonLocalAlignment ()
 

Public Attributes

float charge
 
float dxdzSl [MAX_SEGMENT]
 
float dxdzSlSL1 [MAX_SEGMENT]
 
float dxdzSlSL3 [MAX_SEGMENT]
 
float dydzSl [MAX_SEGMENT]
 
float edxdzSl [MAX_SEGMENT]
 
float edxdzSlSL1 [MAX_SEGMENT]
 
float edxdzSlSL3 [MAX_SEGMENT]
 
float edydzSl [MAX_SEGMENT]
 
float eta
 
float ex [MAX_SEGMENT][MAX_HIT_CHAM]
 
float excp [MAX_SEGMENT][MAX_HIT_CHAM]
 
float exdxdzSl [MAX_SEGMENT]
 
float exdxdzSlSL1 [MAX_SEGMENT]
 
float exdxdzSlSL3 [MAX_SEGMENT]
 
float exSl [MAX_SEGMENT]
 
float exSlSL1 [MAX_SEGMENT]
 
float exSlSL3 [MAX_SEGMENT]
 
float eycp [MAX_SEGMENT][MAX_HIT_CHAM]
 
float eydydzSl [MAX_SEGMENT]
 
float eySl [MAX_SEGMENT]
 
TFile * f
 
int la [MAX_SEGMENT][MAX_HIT_CHAM]
 
int nhits [MAX_SEGMENT]
 
int nphihits [MAX_SEGMENT]
 
int nseg
 
int nthetahits [MAX_SEGMENT]
 
std::string ntuplePath
 
int numberOfRootFiles
 
float p
 
float phi
 
float pt
 
int sl [MAX_SEGMENT][MAX_HIT_CHAM]
 
int sr [MAX_SEGMENT]
 
int st [MAX_SEGMENT]
 
TChain * tali
 
int wh [MAX_SEGMENT]
 
float xc [MAX_SEGMENT][MAX_HIT_CHAM]
 
float xcp [MAX_SEGMENT][MAX_HIT_CHAM]
 
float xSl [MAX_SEGMENT]
 
float xSL1SL3 [MAX_SEGMENT]
 
float xSL3SL1 [MAX_SEGMENT]
 
float xSlSL1 [MAX_SEGMENT]
 
float xSlSL3 [MAX_SEGMENT]
 
float yc [MAX_SEGMENT][MAX_HIT_CHAM]
 
float ycp [MAX_SEGMENT][MAX_HIT_CHAM]
 
float ySl [MAX_SEGMENT]
 
float zc [MAX_SEGMENT][MAX_HIT_CHAM]
 

Detailed Description

Date:
2010/02/25 11:33:32
Revision:
1.2
Author
Luca Scodellaro Luca..nosp@m.Scod.nosp@m.ellar.nosp@m.o@ce.nosp@m.rn.ch

Definition at line 18 of file DTMuonLocalAlignment.h.

Constructor & Destructor Documentation

DTMuonLocalAlignment::DTMuonLocalAlignment ( )

Definition at line 7 of file DTMuonLocalAlignment.cc.

7  :
8  tali(0), f(0)
9 {}
DTMuonLocalAlignment::~DTMuonLocalAlignment ( )

Definition at line 10 of file DTMuonLocalAlignment.cc.

10 {}

Member Function Documentation

void DTMuonLocalAlignment::initNTuples ( int  nMtxSection)

Definition at line 13 of file DTMuonLocalAlignment.cc.

References ntuplePath, numberOfRootFiles, setBranchAddressTree(), and tali.

Referenced by DTMuonMillepede::DTMuonMillepede(), and DTMuonSLToSL::DTMuonSLToSL().

13  {
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 }
void DTMuonLocalAlignment::setBranchAddressTree ( )

Definition at line 36 of file DTMuonLocalAlignment.cc.

References charge, dxdzSl, dxdzSlSL1, dxdzSlSL3, dydzSl, edxdzSl, edxdzSlSL1, edxdzSlSL3, edydzSl, eta, ex, excp, exSl, exSlSL1, exSlSL3, eycp, eydydzSl, eySl, la, nhits, nphihits, nseg, nthetahits, p, phi, pt, sl, sr, st, tali, wh, xc, xcp, xSl, xSL1SL3, xSL3SL1, xSlSL1, xSlSL3, yc, ycp, ySl, and zc.

Referenced by initNTuples().

36  {
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 }
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]

Member Data Documentation

float DTMuonLocalAlignment::charge
float DTMuonLocalAlignment::dxdzSl[MAX_SEGMENT]
float DTMuonLocalAlignment::dxdzSlSL1[MAX_SEGMENT]

Definition at line 58 of file DTMuonLocalAlignment.h.

Referenced by DTMuonSLToSL::calculationSLToSL(), and setBranchAddressTree().

float DTMuonLocalAlignment::dxdzSlSL3[MAX_SEGMENT]

Definition at line 64 of file DTMuonLocalAlignment.h.

Referenced by DTMuonSLToSL::calculationSLToSL(), and setBranchAddressTree().

float DTMuonLocalAlignment::dydzSl[MAX_SEGMENT]
float DTMuonLocalAlignment::edxdzSl[MAX_SEGMENT]

Definition at line 50 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edxdzSlSL1[MAX_SEGMENT]

Definition at line 60 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edxdzSlSL3[MAX_SEGMENT]

Definition at line 66 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edydzSl[MAX_SEGMENT]

Definition at line 55 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eta

Definition at line 42 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::ex[MAX_SEGMENT][MAX_HIT_CHAM]
float DTMuonLocalAlignment::excp[MAX_SEGMENT][MAX_HIT_CHAM]

Definition at line 75 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exdxdzSl[MAX_SEGMENT]

Definition at line 51 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exdxdzSlSL1[MAX_SEGMENT]

Definition at line 61 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exdxdzSlSL3[MAX_SEGMENT]

Definition at line 67 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exSl[MAX_SEGMENT]

Definition at line 49 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exSlSL1[MAX_SEGMENT]

Definition at line 59 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exSlSL3[MAX_SEGMENT]

Definition at line 65 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eycp[MAX_SEGMENT][MAX_HIT_CHAM]

Definition at line 76 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eydydzSl[MAX_SEGMENT]

Definition at line 56 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eySl[MAX_SEGMENT]

Definition at line 54 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

TFile* DTMuonLocalAlignment::f
int DTMuonLocalAlignment::la[MAX_SEGMENT][MAX_HIT_CHAM]
int DTMuonLocalAlignment::nhits[MAX_SEGMENT]
int DTMuonLocalAlignment::nphihits[MAX_SEGMENT]
int DTMuonLocalAlignment::nseg
int DTMuonLocalAlignment::nthetahits[MAX_SEGMENT]
std::string DTMuonLocalAlignment::ntuplePath
int DTMuonLocalAlignment::numberOfRootFiles
float DTMuonLocalAlignment::p
float DTMuonLocalAlignment::phi

Definition at line 42 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::pt
int DTMuonLocalAlignment::sl[MAX_SEGMENT][MAX_HIT_CHAM]
int DTMuonLocalAlignment::sr[MAX_SEGMENT]
int DTMuonLocalAlignment::st[MAX_SEGMENT]
TChain* DTMuonLocalAlignment::tali
int DTMuonLocalAlignment::wh[MAX_SEGMENT]
float DTMuonLocalAlignment::xc[MAX_SEGMENT][MAX_HIT_CHAM]
float DTMuonLocalAlignment::xcp[MAX_SEGMENT][MAX_HIT_CHAM]
float DTMuonLocalAlignment::xSl[MAX_SEGMENT]

Definition at line 47 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::xSL1SL3[MAX_SEGMENT]

Definition at line 62 of file DTMuonLocalAlignment.h.

Referenced by DTMuonSLToSL::calculationSLToSL(), and setBranchAddressTree().

float DTMuonLocalAlignment::xSL3SL1[MAX_SEGMENT]

Definition at line 68 of file DTMuonLocalAlignment.h.

Referenced by DTMuonSLToSL::calculationSLToSL(), and setBranchAddressTree().

float DTMuonLocalAlignment::xSlSL1[MAX_SEGMENT]

Definition at line 57 of file DTMuonLocalAlignment.h.

Referenced by DTMuonSLToSL::calculationSLToSL(), and setBranchAddressTree().

float DTMuonLocalAlignment::xSlSL3[MAX_SEGMENT]

Definition at line 63 of file DTMuonLocalAlignment.h.

Referenced by DTMuonSLToSL::calculationSLToSL(), and setBranchAddressTree().

float DTMuonLocalAlignment::yc[MAX_SEGMENT][MAX_HIT_CHAM]
float DTMuonLocalAlignment::ycp[MAX_SEGMENT][MAX_HIT_CHAM]
float DTMuonLocalAlignment::ySl[MAX_SEGMENT]

Definition at line 52 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::zc[MAX_SEGMENT][MAX_HIT_CHAM]