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

Detailed Description

$Date$

Revision:
1.3
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 }

Member Data Documentation

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

Definition at line 58 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::dxdzSlSL3[5]

Definition at line 64 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::dydzSl[5]
float DTMuonLocalAlignment::edxdzSl[5]

Definition at line 50 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edxdzSlSL1[5]

Definition at line 60 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edxdzSlSL3[5]

Definition at line 66 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edydzSl[5]

Definition at line 55 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eta
float DTMuonLocalAlignment::ex[5][14]
float DTMuonLocalAlignment::excp[5][14]

Definition at line 75 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exdxdzSl[5]

Definition at line 51 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exdxdzSlSL1[5]

Definition at line 61 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exdxdzSlSL3[5]

Definition at line 67 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exSl[5]

Definition at line 49 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exSlSL1[5]

Definition at line 59 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exSlSL3[5]

Definition at line 65 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eycp[5][14]

Definition at line 76 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eydydzSl[5]

Definition at line 56 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eySl[5]

Definition at line 54 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

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

Definition at line 42 of file DTMuonLocalAlignment.h.

Referenced by Particle.Particle::__str__(), and setBranchAddressTree().

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

Definition at line 47 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::xSL1SL3[5]

Definition at line 62 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::xSL3SL1[5]

Definition at line 68 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::xSlSL1[5]

Definition at line 57 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::xSlSL3[5]

Definition at line 63 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::yc[5][14]
float DTMuonLocalAlignment::ycp[5][14]
float DTMuonLocalAlignment::ySl[5]

Definition at line 52 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::zc[5][14]