CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 3 of file DTMuonLocalAlignment.cc.

3 : tali(nullptr), f(nullptr) {}
DTMuonLocalAlignment::~DTMuonLocalAlignment ( )

Definition at line 4 of file DTMuonLocalAlignment.cc.

4 {}

Member Function Documentation

void DTMuonLocalAlignment::initNTuples ( int  nMtxSection)

Definition at line 6 of file DTMuonLocalAlignment.cc.

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

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

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

Definition at line 23 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().

23  {
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 }

Member Data Documentation

float DTMuonLocalAlignment::charge

Definition at line 38 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

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

Definition at line 54 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::dxdzSlSL3[5]

Definition at line 60 of file DTMuonLocalAlignment.h.

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

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

Definition at line 46 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edxdzSlSL1[5]

Definition at line 56 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edxdzSlSL3[5]

Definition at line 62 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::edydzSl[5]

Definition at line 51 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

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

Definition at line 71 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exdxdzSl[5]

Definition at line 47 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exdxdzSlSL1[5]

Definition at line 57 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exdxdzSlSL3[5]

Definition at line 63 of file DTMuonLocalAlignment.h.

float DTMuonLocalAlignment::exSl[5]

Definition at line 45 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exSlSL1[5]

Definition at line 55 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::exSlSL3[5]

Definition at line 61 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eycp[5][14]

Definition at line 72 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eydydzSl[5]

Definition at line 52 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::eySl[5]

Definition at line 50 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

Definition at line 38 of file DTMuonLocalAlignment.h.

Referenced by Electron.Electron::ptErr(), and setBranchAddressTree().

float DTMuonLocalAlignment::phi
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 43 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::xSL1SL3[5]

Definition at line 58 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::xSL3SL1[5]

Definition at line 64 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::xSlSL1[5]

Definition at line 53 of file DTMuonLocalAlignment.h.

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

float DTMuonLocalAlignment::xSlSL3[5]

Definition at line 59 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 48 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

float DTMuonLocalAlignment::zc[5][14]