CMS 3D CMS Logo

Public Member Functions | Public Attributes

DTMuonLocalAlignment Class Reference

#include <DTMuonLocalAlignment.h>

Inheritance diagram for DTMuonLocalAlignment:
DTMuonMillepede DTMuonSLToSL

List of all members.

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.Scodellaro@cern.ch>

Definition at line 18 of file DTMuonLocalAlignment.h.


Constructor & Destructor Documentation

DTMuonLocalAlignment::DTMuonLocalAlignment ( )

Definition at line 7 of file DTMuonLocalAlignment.cc.

                                           :
  tali(0), f(0)
{}
DTMuonLocalAlignment::~DTMuonLocalAlignment ( )

Definition at line 10 of file DTMuonLocalAlignment.cc.

{}

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

                                                      {

  tali = new TChain("InfoTuple");

  int iFile = 0;
  if (nMtxSection>0) iFile = (nMtxSection - 1)*numberOfRootFiles; 

  for(int n_file = iFile; n_file < iFile+numberOfRootFiles; ++n_file) {

    char theNameOfTheFile[150];
    snprintf(theNameOfTheFile, sizeof(theNameOfTheFile),
             "%sMyNtupleResidual_Craft09_%d.root", ntuplePath.c_str(), n_file);
    tali->Add(theNameOfTheFile); 

  }

  setBranchAddressTree();

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

                                                {

  tali->SetBranchAddress("p", &p);
  tali->SetBranchAddress("pt", &pt);
  tali->SetBranchAddress("eta", &eta);
  tali->SetBranchAddress("phi", &phi);
  tali->SetBranchAddress("charge", &charge);
  tali->SetBranchAddress("nseg", &nseg);
  tali->SetBranchAddress("nphihits", nphihits);
  tali->SetBranchAddress("nthetahits", nthetahits);
  tali->SetBranchAddress("nhits", nhits);
  tali->SetBranchAddress("xSl", xSl);
  tali->SetBranchAddress("dxdzSl", dxdzSl);
  tali->SetBranchAddress("exSl", exSl);
  tali->SetBranchAddress("edxdzSl", edxdzSl);
  tali->SetBranchAddress("exdxdzSl", edxdzSl);
  tali->SetBranchAddress("ySl", ySl);
  tali->SetBranchAddress("dydzSl", dydzSl);
  tali->SetBranchAddress("eySl", eySl);
  tali->SetBranchAddress("edydzSl", edydzSl);
  tali->SetBranchAddress("eydydzSl", eydydzSl);
  tali->SetBranchAddress("xSlSL1", xSlSL1);
  tali->SetBranchAddress("dxdzSlSL1", dxdzSlSL1);
  tali->SetBranchAddress("exSlSL1", exSlSL1);
  tali->SetBranchAddress("edxdzSlSL1", edxdzSlSL1);
  tali->SetBranchAddress("xSL1SL3", xSL1SL3);
  tali->SetBranchAddress("xSlSL3", xSlSL3);
  tali->SetBranchAddress("dxdzSlSL3", dxdzSlSL3);
  tali->SetBranchAddress("exSlSL3", exSlSL3);
  tali->SetBranchAddress("edxdzSlSL3", edxdzSlSL3);
  tali->SetBranchAddress("xSL3SL1", xSL3SL1);
  tali->SetBranchAddress("xc", xc);
  tali->SetBranchAddress("yc", yc);
  tali->SetBranchAddress("zc", zc);
  tali->SetBranchAddress("ex", ex);
  tali->SetBranchAddress("xcp", xcp);
  tali->SetBranchAddress("ycp", ycp);
  tali->SetBranchAddress("excp", excp);
  tali->SetBranchAddress("eycp", eycp);
  tali->SetBranchAddress("wh", wh);
  tali->SetBranchAddress("st", st);
  tali->SetBranchAddress("sr", sr);
  tali->SetBranchAddress("sl", sl);
  tali->SetBranchAddress("la", la);

}

Member Data Documentation

Definition at line 42 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

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

Definition at line 60 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

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

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.

Definition at line 61 of file DTMuonLocalAlignment.h.

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

Reimplemented in DTMuonMillepede.

Definition at line 36 of file DTMuonLocalAlignment.h.

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

int DTMuonLocalAlignment::la[MAX_SEGMENT][MAX_HIT_CHAM]
int DTMuonLocalAlignment::nhits[MAX_SEGMENT]

Definition at line 42 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

Definition at line 42 of file DTMuonLocalAlignment.h.

Referenced by setBranchAddressTree().

int DTMuonLocalAlignment::sl[MAX_SEGMENT][MAX_HIT_CHAM]
int DTMuonLocalAlignment::sr[MAX_SEGMENT]
int DTMuonLocalAlignment::st[MAX_SEGMENT]
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]