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)
 
TrackletLUT *& phiCorr (unsigned int layer)
 
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_
 
SLHCEventtheEvent_ {nullptr}
 
HistBasetheHistBase_ {nullptr}
 
std::array< TrackletLUT *, 6 > thePhiCorr_ {{nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}}
 
TrackDerTabletrackDerTable_ {nullptr}
 

Detailed Description

Definition at line 30 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 }
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L2B1_
Definition: Globals.h:89
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_F1F2_
Definition: Globals.h:81
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L1B1_
Definition: Globals.h:88
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_B3B4_
Definition: Globals.h:84
std::unique_ptr< IMATH_TrackletCalculator > ITC_L3L4_
Definition: Globals.h:78
std::unique_ptr< IMATH_TrackletCalculator > ITC_L2L3_
Definition: Globals.h:77
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L1F1_
Definition: Globals.h:86
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_B1B2_
Definition: Globals.h:83
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L2F1_
Definition: Globals.h:87
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_F3F4_
Definition: Globals.h:82
std::unique_ptr< imathGlobals > imathGlobals_
Definition: Globals.h:73
std::unique_ptr< IMATH_TrackletCalculator > ITC_L5L6_
Definition: Globals.h:79
std::unique_ptr< IMATH_TrackletCalculator > ITC_L1L2_
Definition: Globals.h:76

◆ ~Globals()

Globals::~Globals ( )

Definition at line 37 of file Globals.cc.

References mps_fire::i.

37  {
38  for (auto i : thePhiCorr_) {
39  delete i;
40  i = nullptr;
41  }
42 }
std::array< TrackletLUT *, 6 > thePhiCorr_
Definition: Globals.h:102

Member Function Documentation

◆ event()

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

Definition at line 36 of file Globals.h.

References theEvent_.

Referenced by trklet::Stub::Stub().

36 { return theEvent_; }
SLHCEvent * theEvent_
Definition: Globals.h:91

◆ histograms()

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

◆ ILindex()

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

Definition at line 44 of file Globals.h.

References ILindex_.

44 { return ILindex_; }
std::map< std::string, std::vector< int > > ILindex_
Definition: Globals.h:104

◆ ITC_B1B2()

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

Definition at line 55 of file Globals.h.

References ITC_B1B2_.

Referenced by trklet::TrackletCalculatorBase::diskSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

55 { return ITC_B1B2_.get(); }
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_B1B2_
Definition: Globals.h:83

◆ ITC_B3B4()

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

Definition at line 56 of file Globals.h.

References ITC_B3B4_.

Referenced by trklet::TrackletCalculatorBase::diskSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

56 { return ITC_B3B4_.get(); }
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_B3B4_
Definition: Globals.h:84

◆ ITC_F1F2()

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

Definition at line 53 of file Globals.h.

References ITC_F1F2_.

Referenced by trklet::TrackletCalculatorBase::diskSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

53 { return ITC_F1F2_.get(); }
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_F1F2_
Definition: Globals.h:81

◆ ITC_F3F4()

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

Definition at line 54 of file Globals.h.

References ITC_F3F4_.

Referenced by trklet::TrackletCalculatorBase::diskSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

54 { return ITC_F3F4_.get(); }
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_F3F4_
Definition: Globals.h:82

◆ ITC_L1B1()

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

Definition at line 59 of file Globals.h.

References ITC_L1B1_.

Referenced by trklet::TrackletCalculatorBase::overlapSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

59 { return ITC_L1B1_.get(); }
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L1B1_
Definition: Globals.h:88

◆ ITC_L1F1()

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

Definition at line 58 of file Globals.h.

References ITC_L1F1_.

Referenced by trklet::TrackletCalculatorBase::overlapSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

58 { return ITC_L1F1_.get(); }
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L1F1_
Definition: Globals.h:86

◆ ITC_L1L2()

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

◆ ITC_L2B1()

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

Definition at line 61 of file Globals.h.

References ITC_L2B1_.

Referenced by trklet::TrackletCalculatorBase::overlapSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

61 { return ITC_L2B1_.get(); }
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L2B1_
Definition: Globals.h:89

◆ ITC_L2F1()

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

Definition at line 60 of file Globals.h.

References ITC_L2F1_.

Referenced by trklet::TrackletCalculatorBase::overlapSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

60 { return ITC_L2F1_.get(); }
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L2F1_
Definition: Globals.h:87

◆ ITC_L2L3()

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

Definition at line 49 of file Globals.h.

References ITC_L2L3_.

Referenced by trklet::TrackletCalculatorBase::barrelSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

49 { return ITC_L2L3_.get(); }
std::unique_ptr< IMATH_TrackletCalculator > ITC_L2L3_
Definition: Globals.h:77

◆ ITC_L3L4()

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

Definition at line 50 of file Globals.h.

References ITC_L3L4_.

Referenced by trklet::TrackletCalculatorBase::barrelSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

50 { return ITC_L3L4_.get(); }
std::unique_ptr< IMATH_TrackletCalculator > ITC_L3L4_
Definition: Globals.h:78

◆ ITC_L5L6()

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

Definition at line 51 of file Globals.h.

References ITC_L5L6_.

Referenced by trklet::TrackletCalculatorBase::barrelSeeding(), trklet::TrackletCalculator::writeFirmwareDesign(), and trklet::TrackletCalculator::writeInvTable().

51 { return ITC_L5L6_.get(); }
std::unique_ptr< IMATH_TrackletCalculator > ITC_L5L6_
Definition: Globals.h:79

◆ layerdiskmap()

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

Definition at line 46 of file Globals.h.

References layerdiskmap_.

46 { return layerdiskmap_; }
std::map< std::string, int > layerdiskmap_
Definition: Globals.h:106

◆ ofstream()

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

◆ phiCorr()

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

Definition at line 42 of file Globals.h.

References phase1PixelTopology::layer, and thePhiCorr_.

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

42 { return thePhiCorr_[layer]; }
constexpr std::array< uint8_t, layerIndexSize > layer
std::array< TrackletLUT *, 6 > thePhiCorr_
Definition: Globals.h:102

◆ trackDerTable()

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

Definition at line 40 of file Globals.h.

References trackDerTable_.

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

40 { return trackDerTable_; }
TrackDerTable * trackDerTable_
Definition: Globals.h:95

Member Data Documentation

◆ ILindex_

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

Definition at line 104 of file Globals.h.

Referenced by ILindex().

◆ imathGlobals_

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

Definition at line 73 of file Globals.h.

◆ ITC_B1B2_

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

Definition at line 83 of file Globals.h.

Referenced by ITC_B1B2().

◆ ITC_B3B4_

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

Definition at line 84 of file Globals.h.

Referenced by ITC_B3B4().

◆ ITC_F1F2_

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

Definition at line 81 of file Globals.h.

Referenced by ITC_F1F2().

◆ ITC_F3F4_

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

Definition at line 82 of file Globals.h.

Referenced by ITC_F3F4().

◆ ITC_L1B1_

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

Definition at line 88 of file Globals.h.

Referenced by ITC_L1B1().

◆ ITC_L1F1_

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

Definition at line 86 of file Globals.h.

Referenced by ITC_L1F1().

◆ ITC_L1L2_

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

Definition at line 76 of file Globals.h.

Referenced by ITC_L1L2().

◆ ITC_L2B1_

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

Definition at line 89 of file Globals.h.

Referenced by ITC_L2B1().

◆ ITC_L2F1_

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

Definition at line 87 of file Globals.h.

Referenced by ITC_L2F1().

◆ ITC_L2L3_

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

Definition at line 77 of file Globals.h.

Referenced by ITC_L2L3().

◆ ITC_L3L4_

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

Definition at line 78 of file Globals.h.

Referenced by ITC_L3L4().

◆ ITC_L5L6_

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

Definition at line 79 of file Globals.h.

Referenced by ITC_L5L6().

◆ layerdiskmap_

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

Definition at line 106 of file Globals.h.

Referenced by layerdiskmap().

◆ ofstreams_

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

Definition at line 71 of file Globals.h.

◆ theEvent_

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

Definition at line 91 of file Globals.h.

Referenced by event().

◆ theHistBase_

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

Definition at line 93 of file Globals.h.

Referenced by histograms().

◆ thePhiCorr_

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

Definition at line 102 of file Globals.h.

Referenced by phiCorr().

◆ trackDerTable_

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

Definition at line 95 of file Globals.h.

Referenced by trackDerTable().