CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
tmtt::L1track2D Class Reference

#include <L1track2D.h>

Inheritance diagram for tmtt::L1track2D:
tmtt::L1trackBase

Public Member Functions

std::pair< unsigned int, unsigned int > cellLocationHT () const override
 
std::pair< float, float > helix2D () const
 
unsigned int iEtaReg () const override
 
unsigned int iPhiSec () const override
 
 L1track2D (const Settings *settings, const std::vector< Stub * > &stubs, std::pair< unsigned int, unsigned int > cellLocationHT, std::pair< float, float > helix2D, unsigned int iPhiSec, unsigned int iEtaReg, unsigned int optoLinkID, bool mergedHTcell)
 
const std::vector< const Stub * > & matchedStubs () const override
 
const TPmatchedTP () const override
 
bool mergedHTcell () const
 
unsigned int numLayers () const override
 
unsigned int numMatchedLayers () const override
 
unsigned int numMatchedStubs () const override
 
unsigned int numStubs () const override
 
unsigned int optoLinkID () const override
 
float phi0 () const override
 
float qOverPt () const override
 
void setOptoLinkID (unsigned int linkID)
 
void setTrkEstZ0andTanLam (float estZ0, float estTanLambda)
 
const std::vector< Stub * > & stubs () const override
 
const std::vector< const Stub * > & stubsConst () const override
 
bool trkEstZ0andTanLam (float &estZ0, float &estTanLambda) const
 
 ~L1track2D () override=default
 
- Public Member Functions inherited from tmtt::L1trackBase
 L1trackBase ()
 
virtual ~L1trackBase ()=default
 

Private Attributes

std::pair< unsigned int, unsigned int > cellLocationHT_
 
float estTanLambda_
 
bool estValid_
 
float estZ0_
 
std::pair< float, float > helix2D_
 
unsigned int iEtaReg_
 
unsigned int iPhiSec_
 
std::vector< const Stub * > matchedStubs_
 
const TPmatchedTP_
 
bool mergedHTcell_
 
unsigned int nLayers_
 
unsigned int nMatchedLayers_
 
unsigned int optoLinkID_
 
const Settingssettings_
 
std::vector< Stub * > stubs_
 
std::vector< const Stub * > stubsConst_
 

Detailed Description

Definition at line 20 of file L1track2D.h.

Constructor & Destructor Documentation

◆ L1track2D()

tmtt::L1track2D::L1track2D ( const Settings settings,
const std::vector< Stub * > &  stubs,
std::pair< unsigned int, unsigned int >  cellLocationHT,
std::pair< float, float >  helix2D,
unsigned int  iPhiSec,
unsigned int  iEtaReg,
unsigned int  optoLinkID,
bool  mergedHTcell 
)
inline

Definition at line 23 of file L1track2D.h.

31  : L1trackBase(),
32  settings_(settings),
33  stubs_(stubs),
34  stubsConst_(stubs_.begin(), stubs_.end()),
37  estValid_(false),
38  estZ0_(0.),
39  estTanLambda_(0.),
44  nLayers_ = Utility::countLayers(settings, stubs_); // Count tracker layers these stubs are in
46  stubs_,
48  matchedStubs_); // Find associated truth particle & calculate info about match.
49  }

References tmtt::Utility::countLayers(), matchedStubs_, matchedTP_, tmtt::Utility::matchingTP(), nLayers_, nMatchedLayers_, and stubs_.

◆ ~L1track2D()

tmtt::L1track2D::~L1track2D ( )
overridedefault

Member Function Documentation

◆ cellLocationHT()

std::pair<unsigned int, unsigned int> tmtt::L1track2D::cellLocationHT ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 63 of file L1track2D.h.

63 { return cellLocationHT_; }

References cellLocationHT_.

Referenced by tmtt::HTrphi::getMbinRange().

◆ helix2D()

std::pair<float, float> tmtt::L1track2D::helix2D ( ) const
inline

Definition at line 66 of file L1track2D.h.

66 { return helix2D_; }

References helix2D_.

◆ iEtaReg()

unsigned int tmtt::L1track2D::iEtaReg ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 91 of file L1track2D.h.

91 { return iEtaReg_; }

References iEtaReg_.

◆ iPhiSec()

unsigned int tmtt::L1track2D::iPhiSec ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 90 of file L1track2D.h.

90 { return iPhiSec_; }

References iPhiSec_.

◆ matchedStubs()

const std::vector<const Stub*>& tmtt::L1track2D::matchedStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 105 of file L1track2D.h.

105 { return matchedStubs_; }

References matchedStubs_.

◆ matchedTP()

const TP* tmtt::L1track2D::matchedTP ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 103 of file L1track2D.h.

103 { return matchedTP_; }

References matchedTP_.

◆ mergedHTcell()

bool tmtt::L1track2D::mergedHTcell ( ) const
inline

Definition at line 98 of file L1track2D.h.

98 { return mergedHTcell_; }

References mergedHTcell_.

◆ numLayers()

unsigned int tmtt::L1track2D::numLayers ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 61 of file L1track2D.h.

61 { return nLayers_; }

References nLayers_.

◆ numMatchedLayers()

unsigned int tmtt::L1track2D::numMatchedLayers ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 109 of file L1track2D.h.

109 { return nMatchedLayers_; }

References nMatchedLayers_.

◆ numMatchedStubs()

unsigned int tmtt::L1track2D::numMatchedStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 107 of file L1track2D.h.

107 { return matchedStubs_.size(); }

References matchedStubs_.

◆ numStubs()

unsigned int tmtt::L1track2D::numStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 59 of file L1track2D.h.

59 { return stubs_.size(); }

References stubs_.

Referenced by tmtt::MuxHToutputs::exec().

◆ optoLinkID()

unsigned int tmtt::L1track2D::optoLinkID ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 94 of file L1track2D.h.

94 { return optoLinkID_; }

References optoLinkID_.

◆ phi0()

float tmtt::L1track2D::phi0 ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 71 of file L1track2D.h.

71 { return helix2D_.second; }

References helix2D_.

◆ qOverPt()

float tmtt::L1track2D::qOverPt ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 70 of file L1track2D.h.

70 { return helix2D_.first; }

References helix2D_.

◆ setOptoLinkID()

void tmtt::L1track2D::setOptoLinkID ( unsigned int  linkID)
inline

Definition at line 95 of file L1track2D.h.

95 { optoLinkID_ = linkID; }

References optoLinkID_.

Referenced by tmtt::MuxHToutputs::exec().

◆ setTrkEstZ0andTanLam()

void tmtt::L1track2D::setTrkEstZ0andTanLam ( float  estZ0,
float  estTanLambda 
)
inline

Definition at line 77 of file L1track2D.h.

77  {
78  estZ0_ = estZ0;
79  estTanLambda_ = estTanLambda;
80  estValid_ = true;
81  }

References estTanLambda_, estValid_, and estZ0_.

◆ stubs()

const std::vector<Stub*>& tmtt::L1track2D::stubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 57 of file L1track2D.h.

57 { return stubs_; }

References stubs_.

◆ stubsConst()

const std::vector<const Stub*>& tmtt::L1track2D::stubsConst ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 56 of file L1track2D.h.

56 { return stubsConst_; }

References stubsConst_.

◆ trkEstZ0andTanLam()

bool tmtt::L1track2D::trkEstZ0andTanLam ( float &  estZ0,
float &  estTanLambda 
) const
inline

Definition at line 83 of file L1track2D.h.

83  {
84  estZ0 = estZ0_;
85  estTanLambda = estTanLambda_;
86  return estValid_;
87  }

References estTanLambda_, estValid_, and estZ0_.

Member Data Documentation

◆ cellLocationHT_

std::pair<unsigned int, unsigned int> tmtt::L1track2D::cellLocationHT_
private

Definition at line 119 of file L1track2D.h.

Referenced by cellLocationHT().

◆ estTanLambda_

float tmtt::L1track2D::estTanLambda_
private

Definition at line 125 of file L1track2D.h.

Referenced by setTrkEstZ0andTanLam(), and trkEstZ0andTanLam().

◆ estValid_

bool tmtt::L1track2D::estValid_
private

Definition at line 123 of file L1track2D.h.

Referenced by setTrkEstZ0andTanLam(), and trkEstZ0andTanLam().

◆ estZ0_

float tmtt::L1track2D::estZ0_
private

Definition at line 124 of file L1track2D.h.

Referenced by setTrkEstZ0andTanLam(), and trkEstZ0andTanLam().

◆ helix2D_

std::pair<float, float> tmtt::L1track2D::helix2D_
private

Definition at line 120 of file L1track2D.h.

Referenced by helix2D(), phi0(), and qOverPt().

◆ iEtaReg_

unsigned int tmtt::L1track2D::iEtaReg_
private

Definition at line 128 of file L1track2D.h.

Referenced by iEtaReg().

◆ iPhiSec_

unsigned int tmtt::L1track2D::iPhiSec_
private

Definition at line 127 of file L1track2D.h.

Referenced by iPhiSec().

◆ matchedStubs_

std::vector<const Stub*> tmtt::L1track2D::matchedStubs_
private

Definition at line 135 of file L1track2D.h.

Referenced by L1track2D(), matchedStubs(), and numMatchedStubs().

◆ matchedTP_

const TP* tmtt::L1track2D::matchedTP_
private

Definition at line 134 of file L1track2D.h.

Referenced by L1track2D(), and matchedTP().

◆ mergedHTcell_

bool tmtt::L1track2D::mergedHTcell_
private

Definition at line 131 of file L1track2D.h.

Referenced by mergedHTcell().

◆ nLayers_

unsigned int tmtt::L1track2D::nLayers_
private

Definition at line 118 of file L1track2D.h.

Referenced by L1track2D(), and numLayers().

◆ nMatchedLayers_

unsigned int tmtt::L1track2D::nMatchedLayers_
private

Definition at line 136 of file L1track2D.h.

Referenced by L1track2D(), and numMatchedLayers().

◆ optoLinkID_

unsigned int tmtt::L1track2D::optoLinkID_
private

Definition at line 129 of file L1track2D.h.

Referenced by optoLinkID(), and setOptoLinkID().

◆ settings_

const Settings* tmtt::L1track2D::settings_
private

Definition at line 113 of file L1track2D.h.

◆ stubs_

std::vector<Stub*> tmtt::L1track2D::stubs_
private

Definition at line 116 of file L1track2D.h.

Referenced by L1track2D(), numStubs(), and stubs().

◆ stubsConst_

std::vector<const Stub*> tmtt::L1track2D::stubsConst_
private

Definition at line 117 of file L1track2D.h.

Referenced by stubsConst().

tmtt::L1track2D::helix2D
std::pair< float, float > helix2D() const
Definition: L1track2D.h:66
tmtt::L1track2D::mergedHTcell
bool mergedHTcell() const
Definition: L1track2D.h:98
tmtt::L1track2D::optoLinkID_
unsigned int optoLinkID_
Definition: L1track2D.h:129
tmtt::Utility::countLayers
unsigned int countLayers(const Settings *settings, const std::vector< const Stub * > &stubs, bool disableReducedLayerID=false, bool onlyPS=false)
Definition: Utility.cc:25
tmtt::L1track2D::iPhiSec_
unsigned int iPhiSec_
Definition: L1track2D.h:127
tmtt::L1track2D::estTanLambda_
float estTanLambda_
Definition: L1track2D.h:125
tmtt::L1track2D::stubs_
std::vector< Stub * > stubs_
Definition: L1track2D.h:116
tmtt::L1track2D::optoLinkID
unsigned int optoLinkID() const override
Definition: L1track2D.h:94
tmtt::L1track2D::matchedStubs_
std::vector< const Stub * > matchedStubs_
Definition: L1track2D.h:135
tmtt::L1track2D::cellLocationHT
std::pair< unsigned int, unsigned int > cellLocationHT() const override
Definition: L1track2D.h:63
tmtt::L1track2D::estZ0_
float estZ0_
Definition: L1track2D.h:124
tmtt::L1track2D::estValid_
bool estValid_
Definition: L1track2D.h:123
tmtt::L1track2D::iEtaReg
unsigned int iEtaReg() const override
Definition: L1track2D.h:91
tmtt::L1track2D::helix2D_
std::pair< float, float > helix2D_
Definition: L1track2D.h:120
tmtt::L1track2D::mergedHTcell_
bool mergedHTcell_
Definition: L1track2D.h:131
tmtt::L1track2D::iEtaReg_
unsigned int iEtaReg_
Definition: L1track2D.h:128
tmtt::L1track2D::nLayers_
unsigned int nLayers_
Definition: L1track2D.h:118
tmtt::L1track2D::settings_
const Settings * settings_
Definition: L1track2D.h:113
tmtt::L1track2D::iPhiSec
unsigned int iPhiSec() const override
Definition: L1track2D.h:90
tmtt::L1trackBase::L1trackBase
L1trackBase()
Definition: L1trackBase.h:19
tmtt::Utility::matchingTP
const TP * matchingTP(const Settings *settings, const std::vector< const Stub * > &vstubs, unsigned int &nMatchedLayersBest, std::vector< const Stub * > &matchedStubsBest)
Definition: Utility.cc:63
tmtt::L1track2D::cellLocationHT_
std::pair< unsigned int, unsigned int > cellLocationHT_
Definition: L1track2D.h:119
tmtt::L1track2D::matchedTP_
const TP * matchedTP_
Definition: L1track2D.h:134
tmtt::L1track2D::nMatchedLayers_
unsigned int nMatchedLayers_
Definition: L1track2D.h:136
tmtt::L1track2D::stubs
const std::vector< Stub * > & stubs() const override
Definition: L1track2D.h:57
tmtt::L1track2D::stubsConst_
std::vector< const Stub * > stubsConst_
Definition: L1track2D.h:117