CMS 3D CMS Logo

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::DTMuonLocalAlignment ( )

Definition at line 3 of file DTMuonLocalAlignment.cc.

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

◆ ~DTMuonLocalAlignment()

DTMuonLocalAlignment::~DTMuonLocalAlignment ( )

Definition at line 4 of file DTMuonLocalAlignment.cc.

4 {}

Member Function Documentation

◆ initNTuples()

void DTMuonLocalAlignment::initNTuples ( int  nMtxSection)

Definition at line 6 of file DTMuonLocalAlignment.cc.

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 }

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

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

◆ setBranchAddressTree()

void DTMuonLocalAlignment::setBranchAddressTree ( )

Definition at line 23 of file DTMuonLocalAlignment.cc.

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 }

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().

Member Data Documentation

◆ charge

float DTMuonLocalAlignment::charge

Definition at line 38 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ dxdzSl

float DTMuonLocalAlignment::dxdzSl[5]

◆ dxdzSlSL1

float DTMuonLocalAlignment::dxdzSlSL1[5]

Definition at line 54 of file DTMuonLocalAlignment.h.

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

◆ dxdzSlSL3

float DTMuonLocalAlignment::dxdzSlSL3[5]

Definition at line 60 of file DTMuonLocalAlignment.h.

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

◆ dydzSl

float DTMuonLocalAlignment::dydzSl[5]

◆ edxdzSl

float DTMuonLocalAlignment::edxdzSl[5]

Definition at line 46 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ edxdzSlSL1

float DTMuonLocalAlignment::edxdzSlSL1[5]

Definition at line 56 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ edxdzSlSL3

float DTMuonLocalAlignment::edxdzSlSL3[5]

Definition at line 62 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ edydzSl

float DTMuonLocalAlignment::edydzSl[5]

Definition at line 51 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ eta

float DTMuonLocalAlignment::eta

◆ ex

float DTMuonLocalAlignment::ex[5][14]

◆ excp

float DTMuonLocalAlignment::excp[5][14]

Definition at line 71 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ exdxdzSl

float DTMuonLocalAlignment::exdxdzSl[5]

Definition at line 47 of file DTMuonLocalAlignment.h.

◆ exdxdzSlSL1

float DTMuonLocalAlignment::exdxdzSlSL1[5]

Definition at line 57 of file DTMuonLocalAlignment.h.

◆ exdxdzSlSL3

float DTMuonLocalAlignment::exdxdzSlSL3[5]

Definition at line 63 of file DTMuonLocalAlignment.h.

◆ exSl

float DTMuonLocalAlignment::exSl[5]

Definition at line 45 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ exSlSL1

float DTMuonLocalAlignment::exSlSL1[5]

Definition at line 55 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ exSlSL3

float DTMuonLocalAlignment::exSlSL3[5]

Definition at line 61 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ eycp

float DTMuonLocalAlignment::eycp[5][14]

Definition at line 72 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ eydydzSl

float DTMuonLocalAlignment::eydydzSl[5]

Definition at line 52 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ eySl

float DTMuonLocalAlignment::eySl[5]

Definition at line 50 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ f

TFile* DTMuonLocalAlignment::f

◆ la

int DTMuonLocalAlignment::la[5][14]

◆ nhits

int DTMuonLocalAlignment::nhits[5]

◆ nphihits

int DTMuonLocalAlignment::nphihits[5]

◆ nseg

int DTMuonLocalAlignment::nseg

◆ nthetahits

int DTMuonLocalAlignment::nthetahits[5]

◆ ntuplePath

std::string DTMuonLocalAlignment::ntuplePath

◆ numberOfRootFiles

int DTMuonLocalAlignment::numberOfRootFiles

◆ p

float DTMuonLocalAlignment::p

Definition at line 38 of file DTMuonLocalAlignment.h.

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

◆ phi

float DTMuonLocalAlignment::phi

◆ pt

float DTMuonLocalAlignment::pt

◆ sl

int DTMuonLocalAlignment::sl[5][14]

◆ sr

int DTMuonLocalAlignment::sr[5]

◆ st

int DTMuonLocalAlignment::st[5]

◆ tali

TChain* DTMuonLocalAlignment::tali

◆ wh

int DTMuonLocalAlignment::wh[5]

◆ xc

float DTMuonLocalAlignment::xc[5][14]

◆ xcp

float DTMuonLocalAlignment::xcp[5][14]

◆ xSl

float DTMuonLocalAlignment::xSl[5]

Definition at line 43 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ xSL1SL3

float DTMuonLocalAlignment::xSL1SL3[5]

Definition at line 58 of file DTMuonLocalAlignment.h.

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

◆ xSL3SL1

float DTMuonLocalAlignment::xSL3SL1[5]

Definition at line 64 of file DTMuonLocalAlignment.h.

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

◆ xSlSL1

float DTMuonLocalAlignment::xSlSL1[5]

Definition at line 53 of file DTMuonLocalAlignment.h.

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

◆ xSlSL3

float DTMuonLocalAlignment::xSlSL3[5]

Definition at line 59 of file DTMuonLocalAlignment.h.

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

◆ yc

float DTMuonLocalAlignment::yc[5][14]

◆ ycp

float DTMuonLocalAlignment::ycp[5][14]

◆ ySl

float DTMuonLocalAlignment::ySl[5]

Definition at line 48 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

◆ zc

float DTMuonLocalAlignment::zc[5][14]
DTMuonLocalAlignment::xSlSL3
float xSlSL3[5]
Definition: DTMuonLocalAlignment.h:59
DTMuonLocalAlignment::sr
int sr[5]
Definition: DTMuonLocalAlignment.h:75
DTMuonLocalAlignment::dxdzSlSL3
float dxdzSlSL3[5]
Definition: DTMuonLocalAlignment.h:60
DTMuonLocalAlignment::p
float p
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::la
int la[5][14]
Definition: DTMuonLocalAlignment.h:77
DTMuonLocalAlignment::ySl
float ySl[5]
Definition: DTMuonLocalAlignment.h:48
DTMuonLocalAlignment::xcp
float xcp[5][14]
Definition: DTMuonLocalAlignment.h:69
DTMuonLocalAlignment::edxdzSl
float edxdzSl[5]
Definition: DTMuonLocalAlignment.h:46
DTMuonLocalAlignment::dxdzSlSL1
float dxdzSlSL1[5]
Definition: DTMuonLocalAlignment.h:54
DTMuonLocalAlignment::xSL3SL1
float xSL3SL1[5]
Definition: DTMuonLocalAlignment.h:64
DTMuonLocalAlignment::xSL1SL3
float xSL1SL3[5]
Definition: DTMuonLocalAlignment.h:58
DTMuonLocalAlignment::nphihits
int nphihits[5]
Definition: DTMuonLocalAlignment.h:40
DTMuonLocalAlignment::dxdzSl
float dxdzSl[5]
Definition: DTMuonLocalAlignment.h:44
DTMuonLocalAlignment::phi
float phi
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::exSlSL1
float exSlSL1[5]
Definition: DTMuonLocalAlignment.h:55
DTMuonLocalAlignment::wh
int wh[5]
Definition: DTMuonLocalAlignment.h:73
DTMuonLocalAlignment::ycp
float ycp[5][14]
Definition: DTMuonLocalAlignment.h:70
DTMuonLocalAlignment::dydzSl
float dydzSl[5]
Definition: DTMuonLocalAlignment.h:49
DTMuonLocalAlignment::zc
float zc[5][14]
Definition: DTMuonLocalAlignment.h:67
DTMuonLocalAlignment::st
int st[5]
Definition: DTMuonLocalAlignment.h:74
DTMuonLocalAlignment::ntuplePath
std::string ntuplePath
Definition: DTMuonLocalAlignment.h:28
DTMuonLocalAlignment::edxdzSlSL1
float edxdzSlSL1[5]
Definition: DTMuonLocalAlignment.h:56
DTMuonLocalAlignment::nthetahits
int nthetahits[5]
Definition: DTMuonLocalAlignment.h:41
DTMuonLocalAlignment::xSlSL1
float xSlSL1[5]
Definition: DTMuonLocalAlignment.h:53
DTMuonLocalAlignment::excp
float excp[5][14]
Definition: DTMuonLocalAlignment.h:71
DTMuonLocalAlignment::yc
float yc[5][14]
Definition: DTMuonLocalAlignment.h:66
DTMuonLocalAlignment::exSlSL3
float exSlSL3[5]
Definition: DTMuonLocalAlignment.h:61
DTMuonLocalAlignment::nseg
int nseg
Definition: DTMuonLocalAlignment.h:39
DTMuonLocalAlignment::exSl
float exSl[5]
Definition: DTMuonLocalAlignment.h:45
DTMuonLocalAlignment::charge
float charge
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::eta
float eta
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::ex
float ex[5][14]
Definition: DTMuonLocalAlignment.h:68
DTMuonLocalAlignment::tali
TChain * tali
Definition: DTMuonLocalAlignment.h:32
DTMuonLocalAlignment::f
TFile * f
Definition: DTMuonLocalAlignment.h:34
DTMuonLocalAlignment::numberOfRootFiles
int numberOfRootFiles
Definition: DTMuonLocalAlignment.h:30
DTMuonLocalAlignment::edxdzSlSL3
float edxdzSlSL3[5]
Definition: DTMuonLocalAlignment.h:62
DTMuonLocalAlignment::setBranchAddressTree
void setBranchAddressTree()
Definition: DTMuonLocalAlignment.cc:23
DTMuonLocalAlignment::pt
float pt
Definition: DTMuonLocalAlignment.h:38
DTMuonLocalAlignment::edydzSl
float edydzSl[5]
Definition: DTMuonLocalAlignment.h:51
DTMuonLocalAlignment::eySl
float eySl[5]
Definition: DTMuonLocalAlignment.h:50
DTMuonLocalAlignment::xSl
float xSl[5]
Definition: DTMuonLocalAlignment.h:43
DTMuonLocalAlignment::sl
int sl[5][14]
Definition: DTMuonLocalAlignment.h:76
DTMuonLocalAlignment::nhits
int nhits[5]
Definition: DTMuonLocalAlignment.h:42
DTMuonLocalAlignment::xc
float xc[5][14]
Definition: DTMuonLocalAlignment.h:65
DTMuonLocalAlignment::eycp
float eycp[5][14]
Definition: DTMuonLocalAlignment.h:72
DTMuonLocalAlignment::eydydzSl
float eydydzSl[5]
Definition: DTMuonLocalAlignment.h:52