CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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.

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

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

Member Function Documentation

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

Implements tmtt::L1trackBase.

Definition at line 63 of file L1track2D.h.

References cellLocationHT_.

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

63 { return cellLocationHT_; }
std::pair< unsigned int, unsigned int > cellLocationHT_
Definition: L1track2D.h:119
std::pair<float, float> tmtt::L1track2D::helix2D ( ) const
inline

Definition at line 66 of file L1track2D.h.

References helix2D_.

66 { return helix2D_; }
std::pair< float, float > helix2D_
Definition: L1track2D.h:120
unsigned int tmtt::L1track2D::iEtaReg ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 91 of file L1track2D.h.

References iEtaReg_.

91 { return iEtaReg_; }
unsigned int iEtaReg_
Definition: L1track2D.h:128
unsigned int tmtt::L1track2D::iPhiSec ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 90 of file L1track2D.h.

References iPhiSec_.

90 { return iPhiSec_; }
unsigned int iPhiSec_
Definition: L1track2D.h:127
const std::vector<const Stub*>& tmtt::L1track2D::matchedStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 105 of file L1track2D.h.

References matchedStubs_.

105 { return matchedStubs_; }
std::vector< const Stub * > matchedStubs_
Definition: L1track2D.h:135
const TP* tmtt::L1track2D::matchedTP ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 103 of file L1track2D.h.

References matchedTP_.

103 { return matchedTP_; }
const TP * matchedTP_
Definition: L1track2D.h:134
bool tmtt::L1track2D::mergedHTcell ( ) const
inline

Definition at line 98 of file L1track2D.h.

References mergedHTcell_.

98 { return mergedHTcell_; }
bool mergedHTcell_
Definition: L1track2D.h:131
unsigned int tmtt::L1track2D::numLayers ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 61 of file L1track2D.h.

References nLayers_.

61 { return nLayers_; }
unsigned int nLayers_
Definition: L1track2D.h:118
unsigned int tmtt::L1track2D::numMatchedLayers ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 109 of file L1track2D.h.

References nMatchedLayers_.

109 { return nMatchedLayers_; }
unsigned int nMatchedLayers_
Definition: L1track2D.h:136
unsigned int tmtt::L1track2D::numMatchedStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 107 of file L1track2D.h.

References matchedStubs_.

107 { return matchedStubs_.size(); }
std::vector< const Stub * > matchedStubs_
Definition: L1track2D.h:135
unsigned int tmtt::L1track2D::numStubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 59 of file L1track2D.h.

References stubs_.

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

59 { return stubs_.size(); }
std::vector< Stub * > stubs_
Definition: L1track2D.h:116
unsigned int tmtt::L1track2D::optoLinkID ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 94 of file L1track2D.h.

References optoLinkID_.

94 { return optoLinkID_; }
unsigned int optoLinkID_
Definition: L1track2D.h:129
float tmtt::L1track2D::phi0 ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 71 of file L1track2D.h.

References helix2D_.

71 { return helix2D_.second; }
std::pair< float, float > helix2D_
Definition: L1track2D.h:120
float tmtt::L1track2D::qOverPt ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 70 of file L1track2D.h.

References helix2D_.

70 { return helix2D_.first; }
std::pair< float, float > helix2D_
Definition: L1track2D.h:120
void tmtt::L1track2D::setOptoLinkID ( unsigned int  linkID)
inline

Definition at line 95 of file L1track2D.h.

References optoLinkID_.

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

95 { optoLinkID_ = linkID; }
unsigned int optoLinkID_
Definition: L1track2D.h:129
void tmtt::L1track2D::setTrkEstZ0andTanLam ( float  estZ0,
float  estTanLambda 
)
inline

Definition at line 77 of file L1track2D.h.

References estTanLambda_, estValid_, and estZ0_.

77  {
78  estZ0_ = estZ0;
79  estTanLambda_ = estTanLambda;
80  estValid_ = true;
81  }
float estTanLambda_
Definition: L1track2D.h:125
const std::vector<Stub*>& tmtt::L1track2D::stubs ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 57 of file L1track2D.h.

References stubs_.

57 { return stubs_; }
std::vector< Stub * > stubs_
Definition: L1track2D.h:116
const std::vector<const Stub*>& tmtt::L1track2D::stubsConst ( ) const
inlineoverridevirtual

Implements tmtt::L1trackBase.

Definition at line 56 of file L1track2D.h.

References stubsConst_.

56 { return stubsConst_; }
std::vector< const Stub * > stubsConst_
Definition: L1track2D.h:117
bool tmtt::L1track2D::trkEstZ0andTanLam ( float &  estZ0,
float &  estTanLambda 
) const
inline

Definition at line 83 of file L1track2D.h.

References estTanLambda_, estValid_, and estZ0_.

83  {
84  estZ0 = estZ0_;
85  estTanLambda = estTanLambda_;
86  return estValid_;
87  }
float estTanLambda_
Definition: L1track2D.h:125

Member Data Documentation

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

Definition at line 119 of file L1track2D.h.

Referenced by cellLocationHT().

float tmtt::L1track2D::estTanLambda_
private

Definition at line 125 of file L1track2D.h.

Referenced by setTrkEstZ0andTanLam(), and trkEstZ0andTanLam().

bool tmtt::L1track2D::estValid_
private

Definition at line 123 of file L1track2D.h.

Referenced by setTrkEstZ0andTanLam(), and trkEstZ0andTanLam().

float tmtt::L1track2D::estZ0_
private

Definition at line 124 of file L1track2D.h.

Referenced by setTrkEstZ0andTanLam(), and trkEstZ0andTanLam().

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

Definition at line 120 of file L1track2D.h.

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

unsigned int tmtt::L1track2D::iEtaReg_
private

Definition at line 128 of file L1track2D.h.

Referenced by iEtaReg().

unsigned int tmtt::L1track2D::iPhiSec_
private

Definition at line 127 of file L1track2D.h.

Referenced by iPhiSec().

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

Definition at line 135 of file L1track2D.h.

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

const TP* tmtt::L1track2D::matchedTP_
private

Definition at line 134 of file L1track2D.h.

Referenced by L1track2D(), and matchedTP().

bool tmtt::L1track2D::mergedHTcell_
private

Definition at line 131 of file L1track2D.h.

Referenced by mergedHTcell().

unsigned int tmtt::L1track2D::nLayers_
private

Definition at line 118 of file L1track2D.h.

Referenced by L1track2D(), and numLayers().

unsigned int tmtt::L1track2D::nMatchedLayers_
private

Definition at line 136 of file L1track2D.h.

Referenced by L1track2D(), and numMatchedLayers().

unsigned int tmtt::L1track2D::optoLinkID_
private

Definition at line 129 of file L1track2D.h.

Referenced by optoLinkID(), and setOptoLinkID().

const Settings* tmtt::L1track2D::settings_
private

Definition at line 113 of file L1track2D.h.

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

Definition at line 116 of file L1track2D.h.

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

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

Definition at line 117 of file L1track2D.h.

Referenced by stubsConst().