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 }

◆ ~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 36 of file Globals.h.

36 { return theEvent_; }

References theEvent_.

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

◆ 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.

44 { return ILindex_; }

References ILindex_.

◆ ITC_B1B2()

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

◆ ITC_B3B4()

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

◆ ITC_F1F2()

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

◆ ITC_F3F4()

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

◆ ITC_L1B1()

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

◆ ITC_L1F1()

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

◆ ITC_L1L2()

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

◆ ITC_L2B1()

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

◆ ITC_L2F1()

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

◆ ITC_L2L3()

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

◆ ITC_L3L4()

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

◆ ITC_L5L6()

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

◆ layerdiskmap()

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

Definition at line 46 of file Globals.h.

46 { return layerdiskmap_; }

References layerdiskmap_.

◆ 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.

42 { return thePhiCorr_[layer]; }

References phase1PixelTopology::layer, and thePhiCorr_.

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

◆ trackDerTable()

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

Definition at line 40 of file Globals.h.

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

trklet::Globals::layerdiskmap_
std::map< std::string, int > layerdiskmap_
Definition: Globals.h:106
mps_fire.i
i
Definition: mps_fire.py:428
trklet::Globals::ITC_L1B1_
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L1B1_
Definition: Globals.h:88
trklet::Globals::ITC_B3B4_
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_B3B4_
Definition: Globals.h:84
trklet::Globals::ITC_L2B1_
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L2B1_
Definition: Globals.h:89
trklet::Globals::ITC_F1F2_
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_F1F2_
Definition: Globals.h:81
trklet::Globals::ITC_L2L3_
std::unique_ptr< IMATH_TrackletCalculator > ITC_L2L3_
Definition: Globals.h:77
trklet::Globals::ITC_L1F1_
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L1F1_
Definition: Globals.h:86
trklet::Globals::ITC_L3L4_
std::unique_ptr< IMATH_TrackletCalculator > ITC_L3L4_
Definition: Globals.h:78
trklet::Globals::trackDerTable_
TrackDerTable * trackDerTable_
Definition: Globals.h:95
trklet::Globals::ITC_B1B2_
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_B1B2_
Definition: Globals.h:83
trklet::Globals::ILindex_
std::map< std::string, std::vector< int > > ILindex_
Definition: Globals.h:104
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
trklet::Globals::imathGlobals_
std::unique_ptr< imathGlobals > imathGlobals_
Definition: Globals.h:73
trklet::Globals::theHistBase_
HistBase * theHistBase_
Definition: Globals.h:93
trklet::Globals::ITC_L2F1_
std::unique_ptr< IMATH_TrackletCalculatorOverlap > ITC_L2F1_
Definition: Globals.h:87
trklet::Globals::ITC_L5L6_
std::unique_ptr< IMATH_TrackletCalculator > ITC_L5L6_
Definition: Globals.h:79
trklet::Globals::ITC_F3F4_
std::unique_ptr< IMATH_TrackletCalculatorDisk > ITC_F3F4_
Definition: Globals.h:82
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
trklet::Globals::ofstreams_
std::unordered_map< std::string, std::ofstream * > ofstreams_
Definition: Globals.h:71
trklet::Globals::theEvent_
SLHCEvent * theEvent_
Definition: Globals.h:91
trklet::Globals::thePhiCorr_
std::array< TrackletLUT *, 6 > thePhiCorr_
Definition: Globals.h:102
trklet::Globals::ITC_L1L2_
std::unique_ptr< IMATH_TrackletCalculator > ITC_L1L2_
Definition: Globals.h:76
trklet::imathGlobals
Definition: imath.h:148