CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
trklet::Globals Class Reference

#include <Globals.h>

Public Member Functions

SLHCEvent *& event ()
 
 Globals (Settings const &settings)
 
HistBase *& histograms ()
 
std::map< std::string, std::vector< int > > & ILindex ()
 
IMATH_TrackletCalculatorDiskITC_B1B2 ()
 
IMATH_TrackletCalculatorDiskITC_B3B4 ()
 
IMATH_TrackletCalculatorDiskITC_F1F2 ()
 
IMATH_TrackletCalculatorDiskITC_F3F4 ()
 
IMATH_TrackletCalculatorOverlapITC_L1B1 ()
 
IMATH_TrackletCalculatorOverlapITC_L1F1 ()
 
IMATH_TrackletCalculatorITC_L1L2 ()
 
IMATH_TrackletCalculatorOverlapITC_L2B1 ()
 
IMATH_TrackletCalculatorOverlapITC_L2F1 ()
 
IMATH_TrackletCalculatorITC_L2L3 ()
 
IMATH_TrackletCalculatorITC_L3L4 ()
 
IMATH_TrackletCalculatorITC_L5L6 ()
 
std::map< std::string, int > & layerdiskmap ()
 
std::ofstream & ofstream (std::string fname)
 
VMRouterPhiCorrTable *& phiCorr (unsigned int layer)
 
ProjectionRouterBendTable *& projectionRouterBendTable ()
 
TrackDerTable *& trackDerTable ()
 
 ~Globals ()
 

Private Attributes

std::map< std::string, std::vector< int > > ILindex_
 
std::unique_ptr< imathGlobalsimathGlobals_
 
std::unique_ptr< IMATH_TrackletCalculatorDiskITC_B1B2_
 
std::unique_ptr< IMATH_TrackletCalculatorDiskITC_B3B4_
 
std::unique_ptr< IMATH_TrackletCalculatorDiskITC_F1F2_
 
std::unique_ptr< IMATH_TrackletCalculatorDiskITC_F3F4_
 
std::unique_ptr< IMATH_TrackletCalculatorOverlapITC_L1B1_
 
std::unique_ptr< IMATH_TrackletCalculatorOverlapITC_L1F1_
 
std::unique_ptr< IMATH_TrackletCalculatorITC_L1L2_
 
std::unique_ptr< IMATH_TrackletCalculatorOverlapITC_L2B1_
 
std::unique_ptr< IMATH_TrackletCalculatorOverlapITC_L2F1_
 
std::unique_ptr< IMATH_TrackletCalculatorITC_L2L3_
 
std::unique_ptr< IMATH_TrackletCalculatorITC_L3L4_
 
std::unique_ptr< IMATH_TrackletCalculatorITC_L5L6_
 
std::map< std::string, int > layerdiskmap_
 
std::unordered_map< std::string, std::ofstream * > ofstreams_
 
ProjectionRouterBendTableprojectionRouterBendTable_ {nullptr}
 
SLHCEventtheEvent_ {nullptr}
 
HistBasetheHistBase_ {nullptr}
 
std::array< VMRouterPhiCorrTable *, 6 > thePhiCorr_ {{nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}}
 
TrackDerTabletrackDerTable_ {nullptr}
 

Detailed Description

Definition at line 32 of file Globals.h.

Constructor & Destructor Documentation

◆ Globals()

Globals::Globals ( Settings const &  settings)

Definition at line 14 of file Globals.cc.

14  {
15  imathGlobals* imathGlobs = new imathGlobals();
16 
17  //takes owernship of globals pointer
18  imathGlobals_.reset(imathGlobs);
19 
20  // tracklet calculators
21  ITC_L1L2_ = make_unique<IMATH_TrackletCalculator>(settings, imathGlobs, 1, 2);
22  ITC_L2L3_ = make_unique<IMATH_TrackletCalculator>(settings, imathGlobs, 2, 3);
23  ITC_L3L4_ = make_unique<IMATH_TrackletCalculator>(settings, imathGlobs, 3, 4);
24  ITC_L5L6_ = make_unique<IMATH_TrackletCalculator>(settings, imathGlobs, 5, 6);
25 
26  ITC_F1F2_ = make_unique<IMATH_TrackletCalculatorDisk>(settings, imathGlobs, 1, 2);
27  ITC_F3F4_ = make_unique<IMATH_TrackletCalculatorDisk>(settings, imathGlobs, 3, 4);
28  ITC_B1B2_ = make_unique<IMATH_TrackletCalculatorDisk>(settings, imathGlobs, -1, -2);
29  ITC_B3B4_ = make_unique<IMATH_TrackletCalculatorDisk>(settings, imathGlobs, -3, -4);
30 
31  ITC_L1F1_ = make_unique<IMATH_TrackletCalculatorOverlap>(settings, imathGlobs, 1, 1);
32  ITC_L2F1_ = make_unique<IMATH_TrackletCalculatorOverlap>(settings, imathGlobs, 2, 1);
33  ITC_L1B1_ = make_unique<IMATH_TrackletCalculatorOverlap>(settings, imathGlobs, 1, -1);
34  ITC_L2B1_ = make_unique<IMATH_TrackletCalculatorOverlap>(settings, imathGlobs, 2, -1);
35 }

◆ ~Globals()

Globals::~Globals ( )

Definition at line 37 of file Globals.cc.

37  {
38  for (auto i : thePhiCorr_) {
39  delete i;
40  i = nullptr;
41  }
42 }

References mps_fire::i.

Member Function Documentation

◆ event()

SLHCEvent*& trklet::Globals::event ( )
inline

Definition at line 38 of file Globals.h.

38 { return theEvent_; }

References theEvent_.

◆ histograms()

HistBase*& trklet::Globals::histograms ( )
inline

◆ ILindex()

std::map<std::string, std::vector<int> >& trklet::Globals::ILindex ( )
inline

Definition at line 48 of file Globals.h.

48 { return ILindex_; }

References ILindex_.

Referenced by trklet::Sector::addStub().

◆ ITC_B1B2()

IMATH_TrackletCalculatorDisk* trklet::Globals::ITC_B1B2 ( )
inline

Definition at line 59 of file Globals.h.

59 { return ITC_B1B2_.get(); }

References ITC_B1B2_.

Referenced by trklet::TrackletCalculatorBase::diskSeeding().

◆ ITC_B3B4()

IMATH_TrackletCalculatorDisk* trklet::Globals::ITC_B3B4 ( )
inline

Definition at line 60 of file Globals.h.

60 { return ITC_B3B4_.get(); }

References ITC_B3B4_.

Referenced by trklet::TrackletCalculatorBase::diskSeeding().

◆ ITC_F1F2()

IMATH_TrackletCalculatorDisk* trklet::Globals::ITC_F1F2 ( )
inline

Definition at line 57 of file Globals.h.

57 { return ITC_F1F2_.get(); }

References ITC_F1F2_.

Referenced by trklet::TrackletCalculatorBase::diskSeeding().

◆ ITC_F3F4()

IMATH_TrackletCalculatorDisk* trklet::Globals::ITC_F3F4 ( )
inline

Definition at line 58 of file Globals.h.

58 { return ITC_F3F4_.get(); }

References ITC_F3F4_.

Referenced by trklet::TrackletCalculatorBase::diskSeeding().

◆ ITC_L1B1()

IMATH_TrackletCalculatorOverlap* trklet::Globals::ITC_L1B1 ( )
inline

Definition at line 63 of file Globals.h.

63 { return ITC_L1B1_.get(); }

References ITC_L1B1_.

Referenced by trklet::TrackletCalculatorBase::overlapSeeding().

◆ ITC_L1F1()

IMATH_TrackletCalculatorOverlap* trklet::Globals::ITC_L1F1 ( )
inline

Definition at line 62 of file Globals.h.

62 { return ITC_L1F1_.get(); }

References ITC_L1F1_.

Referenced by trklet::TrackletCalculatorBase::overlapSeeding().

◆ ITC_L1L2()

IMATH_TrackletCalculator* trklet::Globals::ITC_L1L2 ( )
inline

◆ ITC_L2B1()

IMATH_TrackletCalculatorOverlap* trklet::Globals::ITC_L2B1 ( )
inline

Definition at line 65 of file Globals.h.

65 { return ITC_L2B1_.get(); }

References ITC_L2B1_.

Referenced by trklet::TrackletCalculatorBase::overlapSeeding().

◆ ITC_L2F1()

IMATH_TrackletCalculatorOverlap* trklet::Globals::ITC_L2F1 ( )
inline

Definition at line 64 of file Globals.h.

64 { return ITC_L2F1_.get(); }

References ITC_L2F1_.

Referenced by trklet::TrackletCalculatorBase::overlapSeeding().

◆ ITC_L2L3()

IMATH_TrackletCalculator* trklet::Globals::ITC_L2L3 ( )
inline

Definition at line 53 of file Globals.h.

53 { return ITC_L2L3_.get(); }

References ITC_L2L3_.

Referenced by trklet::TrackletCalculatorBase::barrelSeeding().

◆ ITC_L3L4()

IMATH_TrackletCalculator* trklet::Globals::ITC_L3L4 ( )
inline

Definition at line 54 of file Globals.h.

54 { return ITC_L3L4_.get(); }

References ITC_L3L4_.

Referenced by trklet::TrackletCalculatorBase::barrelSeeding().

◆ ITC_L5L6()

IMATH_TrackletCalculator* trklet::Globals::ITC_L5L6 ( )
inline

Definition at line 55 of file Globals.h.

55 { return ITC_L5L6_.get(); }

References ITC_L5L6_.

Referenced by trklet::TrackletCalculatorBase::barrelSeeding().

◆ layerdiskmap()

std::map<std::string, int>& trklet::Globals::layerdiskmap ( )
inline

Definition at line 50 of file Globals.h.

50 { return layerdiskmap_; }

References layerdiskmap_.

◆ ofstream()

std::ofstream & Globals::ofstream ( std::string  fname)

◆ phiCorr()

VMRouterPhiCorrTable*& trklet::Globals::phiCorr ( unsigned int  layer)
inline

Definition at line 44 of file Globals.h.

44 { return thePhiCorr_[layer]; }

References thePhiCorr_.

Referenced by trklet::InputLinkMemory::addStub().

◆ projectionRouterBendTable()

ProjectionRouterBendTable*& trklet::Globals::projectionRouterBendTable ( )
inline

◆ trackDerTable()

TrackDerTable*& trklet::Globals::trackDerTable ( )
inline

Definition at line 42 of file Globals.h.

42 { return trackDerTable_; }

References trackDerTable_.

Referenced by trklet::FitTrack::trackFitChisq().

Member Data Documentation

◆ ILindex_

std::map<std::string, std::vector<int> > trklet::Globals::ILindex_
private

Definition at line 110 of file Globals.h.

Referenced by ILindex().

◆ imathGlobals_

std::unique_ptr<imathGlobals> trklet::Globals::imathGlobals_
private

Definition at line 77 of file Globals.h.

◆ ITC_B1B2_

std::unique_ptr<IMATH_TrackletCalculatorDisk> trklet::Globals::ITC_B1B2_
private

Definition at line 87 of file Globals.h.

Referenced by ITC_B1B2().

◆ ITC_B3B4_

std::unique_ptr<IMATH_TrackletCalculatorDisk> trklet::Globals::ITC_B3B4_
private

Definition at line 88 of file Globals.h.

Referenced by ITC_B3B4().

◆ ITC_F1F2_

std::unique_ptr<IMATH_TrackletCalculatorDisk> trklet::Globals::ITC_F1F2_
private

Definition at line 85 of file Globals.h.

Referenced by ITC_F1F2().

◆ ITC_F3F4_

std::unique_ptr<IMATH_TrackletCalculatorDisk> trklet::Globals::ITC_F3F4_
private

Definition at line 86 of file Globals.h.

Referenced by ITC_F3F4().

◆ ITC_L1B1_

std::unique_ptr<IMATH_TrackletCalculatorOverlap> trklet::Globals::ITC_L1B1_
private

Definition at line 92 of file Globals.h.

Referenced by ITC_L1B1().

◆ ITC_L1F1_

std::unique_ptr<IMATH_TrackletCalculatorOverlap> trklet::Globals::ITC_L1F1_
private

Definition at line 90 of file Globals.h.

Referenced by ITC_L1F1().

◆ ITC_L1L2_

std::unique_ptr<IMATH_TrackletCalculator> trklet::Globals::ITC_L1L2_
private

Definition at line 80 of file Globals.h.

Referenced by ITC_L1L2().

◆ ITC_L2B1_

std::unique_ptr<IMATH_TrackletCalculatorOverlap> trklet::Globals::ITC_L2B1_
private

Definition at line 93 of file Globals.h.

Referenced by ITC_L2B1().

◆ ITC_L2F1_

std::unique_ptr<IMATH_TrackletCalculatorOverlap> trklet::Globals::ITC_L2F1_
private

Definition at line 91 of file Globals.h.

Referenced by ITC_L2F1().

◆ ITC_L2L3_

std::unique_ptr<IMATH_TrackletCalculator> trklet::Globals::ITC_L2L3_
private

Definition at line 81 of file Globals.h.

Referenced by ITC_L2L3().

◆ ITC_L3L4_

std::unique_ptr<IMATH_TrackletCalculator> trklet::Globals::ITC_L3L4_
private

Definition at line 82 of file Globals.h.

Referenced by ITC_L3L4().

◆ ITC_L5L6_

std::unique_ptr<IMATH_TrackletCalculator> trklet::Globals::ITC_L5L6_
private

Definition at line 83 of file Globals.h.

Referenced by ITC_L5L6().

◆ layerdiskmap_

std::map<std::string, int> trklet::Globals::layerdiskmap_
private

Definition at line 112 of file Globals.h.

Referenced by layerdiskmap().

◆ ofstreams_

std::unordered_map<std::string, std::ofstream*> trklet::Globals::ofstreams_
private

Definition at line 75 of file Globals.h.

◆ projectionRouterBendTable_

ProjectionRouterBendTable* trklet::Globals::projectionRouterBendTable_ {nullptr}
private

Definition at line 101 of file Globals.h.

Referenced by projectionRouterBendTable().

◆ theEvent_

SLHCEvent* trklet::Globals::theEvent_ {nullptr}
private

Definition at line 95 of file Globals.h.

Referenced by event().

◆ theHistBase_

HistBase* trklet::Globals::theHistBase_ {nullptr}
private

Definition at line 97 of file Globals.h.

Referenced by histograms().

◆ thePhiCorr_

std::array<VMRouterPhiCorrTable*, 6> trklet::Globals::thePhiCorr_ {{nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}}
private

Definition at line 108 of file Globals.h.

Referenced by phiCorr().

◆ trackDerTable_

TrackDerTable* trklet::Globals::trackDerTable_ {nullptr}
private

Definition at line 99 of file Globals.h.

Referenced by trackDerTable().

trklet::Globals::layerdiskmap_
std::map< std::string, int > layerdiskmap_
Definition: Globals.h:112
mps_fire.i
i
Definition: mps_fire.py:428
trklet::Globals::ITC_L1B1_
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L1B1_
Definition: Globals.h:92
trklet::Globals::ITC_B3B4_
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_B3B4_
Definition: Globals.h:88
trklet::Globals::ITC_L2B1_
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L2B1_
Definition: Globals.h:93
trklet::Globals::ITC_F1F2_
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_F1F2_
Definition: Globals.h:85
trklet::Globals::ITC_L2L3_
std::unique_ptr< IMATH_TrackletCalculator > ITC_L2L3_
Definition: Globals.h:81
trklet::Globals::ITC_L1F1_
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L1F1_
Definition: Globals.h:90
trklet::Globals::ITC_L3L4_
std::unique_ptr< IMATH_TrackletCalculator > ITC_L3L4_
Definition: Globals.h:82
trklet::Globals::trackDerTable_
TrackDerTable * trackDerTable_
Definition: Globals.h:99
trklet::Globals::ITC_B1B2_
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_B1B2_
Definition: Globals.h:87
trklet::Globals::ILindex_
std::map< std::string, std::vector< int > > ILindex_
Definition: Globals.h:110
trklet::Globals::imathGlobals_
std::unique_ptr< imathGlobals > imathGlobals_
Definition: Globals.h:77
trklet::Globals::theHistBase_
HistBase * theHistBase_
Definition: Globals.h:97
trklet::Globals::ITC_L2F1_
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L2F1_
Definition: Globals.h:91
trklet::Globals::ITC_L5L6_
std::unique_ptr< IMATH_TrackletCalculator > ITC_L5L6_
Definition: Globals.h:83
trklet::Globals::ITC_F3F4_
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_F3F4_
Definition: Globals.h:86
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
trklet::Globals::ofstreams_
std::unordered_map< std::string, std::ofstream * > ofstreams_
Definition: Globals.h:75
trklet::Globals::thePhiCorr_
std::array< VMRouterPhiCorrTable *, 6 > thePhiCorr_
Definition: Globals.h:108
trklet::Globals::theEvent_
SLHCEvent * theEvent_
Definition: Globals.h:95
trklet::Globals::ITC_L1L2_
std::unique_ptr< IMATH_TrackletCalculator > ITC_L1L2_
Definition: Globals.h:80
trklet::Globals::projectionRouterBendTable_
ProjectionRouterBendTable * projectionRouterBendTable_
Definition: Globals.h:101
trklet::imathGlobals
Definition: imath.h:148