CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
tmtt::TP Class Reference

#include <TP.h>

Public Member Functions

const std::vector< const Stub * > & assocStubs () const
 
int charge () const
 
float d0 () const
 
float dphi (float rad) const
 
float eta () const
 
void fillNearestJetInfo (const reco::GenJetCollection *genJets)
 
void fillTruth (const std::list< Stub > &vStubs)
 
unsigned int index () const
 
bool inTimeBx () const
 
float mass () const
 
float nearestJetPt () const
 
unsigned int numAssocStubs () const
 
unsigned int numLayers () const
 
bool operator== (const TP &tpOther) const
 
int pdgId () const
 
float phi0 () const
 
bool physicsCollision () const
 
float pt () const
 
float qOverPt () const
 
float tanLambda () const
 
float theta () const
 
 TP (const TrackingParticlePtr &tpPtr, unsigned int index_in_vTPs, const Settings *settings)
 
float tpInJet (float genJetPtCut=30.) const
 
const TrackingParticlePtrtrackingParticlePtr () const
 
float trkPhiAtR (float rad) const
 
float trkPhiAtStub (const Stub *stub) const
 
float trkRAtStub (const Stub *stub) const
 
float trkZAtR (float rad) const
 
float trkZAtStub (const Stub *stub) const
 
bool use () const
 
bool useForAlgEff () const
 
bool useForEff () const
 
float vx () const
 
float vy () const
 
float vz () const
 
float z0 () const
 

Private Member Functions

void calcNumLayers ()
 
void fillUse ()
 
void fillUseForAlgEff ()
 
void fillUseForEff ()
 

Private Attributes

std::vector< const Stub * > assocStubs_
 
int charge_
 
float d0_
 
float eta_
 
unsigned int index_in_vTPs_
 
bool inTimeBx_
 
float mass_
 
float nearestJetPt_
 
unsigned int nLayersWithStubs_
 
int pdgId_
 
float phi0_
 
bool physicsCollision_
 
float pt_
 
const Settingssettings_
 
float tanLambda_
 
float theta_
 
bool tpInJet_
 
TrackingParticlePtr trackingParticlePtr_
 
bool use_
 
bool useForAlgEff_
 
bool useForEff_
 
float vx_
 
float vy_
 
float vz_
 
float z0_
 

Detailed Description

Definition at line 23 of file TP.h.

Constructor & Destructor Documentation

◆ TP()

tmtt::TP::TP ( const TrackingParticlePtr tpPtr,
unsigned int  index_in_vTPs,
const Settings settings 
)

Definition at line 16 of file TP.cc.

References runTauDisplay::eid, fillUse(), fillUseForEff(), TrackingParticle::g4Tracks(), inTimeBx_, physicsCollision_, and x.

17  : trackingParticlePtr_(tpPtr),
18  index_in_vTPs_(index_in_vTPs),
19  settings_(settings),
20  pdgId_(tpPtr->pdgId()),
21  charge_(tpPtr->charge()),
22  mass_(tpPtr->mass()),
23  pt_(tpPtr->pt()),
24  eta_(tpPtr->eta()),
25  theta_(tpPtr->theta()),
26  tanLambda_(1. / tan(theta_)),
27  phi0_(tpPtr->phi()),
28  vx_(tpPtr->vertex().x()),
29  vy_(tpPtr->vertex().y()),
30  vz_(tpPtr->vertex().z()),
31  d0_(vx_ * sin(phi0_) - vy_ * cos(phi0_)), // Copied from CMSSW class TrackBase::d0().
32  z0_(vz_ - (vx_ * cos(phi0_) + vy_ * sin(phi0_)) * tanLambda_) // Copied from CMSSW class TrackBase::dz().
33  {
34  const vector<SimTrack>& vst = tpPtr->g4Tracks();
35  EncodedEventId eid = vst.at(0).eventId();
36  inTimeBx_ = (eid.bunchCrossing() == 0); // TP from in-time or out-of-time Bx.
37  physicsCollision_ = (eid.event() == 0); // TP from physics collision or from pileup.
38 
39  this->fillUse(); // Fill use_ flag, indicating if TP is worth keeping.
40  this->fillUseForEff(); // Fill useForEff_ flag, indicating if TP is good for tracking efficiency measurement.
41  }
float phi0_
Definition: TP.h:121
int pdgId() const
PDG ID.
int pdgId_
Definition: TP.h:112
float theta_
Definition: TP.h:119
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
int charge_
Definition: TP.h:115
float vy_
Definition: TP.h:123
void fillUseForEff()
Definition: TP.cc:103
float vx_
Definition: TP.h:122
const std::vector< SimTrack > & g4Tracks() const
unsigned int index_in_vTPs_
Definition: TP.h:108
void fillUse()
Definition: TP.cc:61
TrackingParticlePtr trackingParticlePtr_
Definition: TP.h:106
double mass() const
Mass. Note this is taken from the first SimTrack only.
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
float vz_
Definition: TP.h:124
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
float mass_
Definition: TP.h:116
float pt_
Definition: TP.h:117
const Settings * settings_
Definition: TP.h:110
double eta() const
Momentum pseudorapidity. Note this is taken from the first SimTrack only.
float d0_
Definition: TP.h:125
float eta_
Definition: TP.h:118
bool physicsCollision_
Definition: TP.h:114
double phi() const
Momentum azimuthal angle. Note this is taken from the first SimTrack only.
float z0_
Definition: TP.h:126
double theta() const
Momentum polar angle. Note this is taken from the first SimTrack only.
double pt() const
Transverse momentum. Note this is taken from the first SimTrack only.
bool inTimeBx_
Definition: TP.h:113
float tanLambda_
Definition: TP.h:120
Point vertex() const
Parent vertex position.
float charge() const
Electric charge. Note this is taken from the first SimTrack only.

Member Function Documentation

◆ assocStubs()

const std::vector<const Stub*>& tmtt::TP::assocStubs ( ) const
inline

Definition at line 79 of file TP.h.

References assocStubs_.

79  {
80  return assocStubs_;
81  } // associated stubs. (Includes those failing tightened front-end electronics cuts supplied by user). (Which stubs are returned is affected by "StubMatchStrict" config param.)
std::vector< const Stub * > assocStubs_
Definition: TP.h:128

◆ calcNumLayers()

void tmtt::TP::calcNumLayers ( )
inlineprivate

Definition at line 103 of file TP.h.

References assocStubs_, tmtt::Utility::countLayers(), nLayersWithStubs_, and settings_.

Referenced by fillTruth().

const Settings * settings_
Definition: TP.h:110
unsigned int countLayers(const Settings *settings, const std::vector< const Stub *> &stubs, bool disableReducedLayerID=false, bool onlyPS=false)
Definition: Utility.cc:25
unsigned int nLayersWithStubs_
Definition: TP.h:129
std::vector< const Stub * > assocStubs_
Definition: TP.h:128

◆ charge()

int tmtt::TP::charge ( void  ) const
inline

Definition at line 46 of file TP.h.

References charge_.

46 { return charge_; }
int charge_
Definition: TP.h:115

◆ d0()

float tmtt::TP::d0 ( ) const
inline

Definition at line 63 of file TP.h.

References d0_.

63 { return d0_; }
float d0_
Definition: TP.h:125

◆ dphi()

float tmtt::TP::dphi ( float  rad) const
inline

Definition at line 66 of file TP.h.

References charge_, tmtt::Settings::invPtToDphi(), pt_, and settings_.

Referenced by trkPhiAtR(), and trkPhiAtStub().

66 { return asin(settings_->invPtToDphi() * rad * charge_ / pt_); }
double invPtToDphi() const
Definition: Settings.h:397
int charge_
Definition: TP.h:115
float pt_
Definition: TP.h:117
const Settings * settings_
Definition: TP.h:110

◆ eta()

float tmtt::TP::eta ( void  ) const
inline

Definition at line 54 of file TP.h.

References eta_.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), fillNearestJetInfo(), Jet.Jet::jetID(), datamodel.Object::p4(), and Jet.Jet::puJetId().

54 { return eta_; }
float eta_
Definition: TP.h:118

◆ fillNearestJetInfo()

void tmtt::TP::fillNearestJetInfo ( const reco::GenJetCollection genJets)

Definition at line 166 of file TP.cc.

References funct::abs(), reco::deltaR(), PbPb_ZMuSkimMuonDPG_cff::deltaR, eta(), reco::LeafCandidate::eta(), nanoDQM_cfi::GenJet, l1tCaloJetHTTProducer_cfi::genJets, razorScouting_cff::maxEta, HLT_2023v12_cff::minDR, PV_cfg::minPt, nearestJetPt_, reco::LeafCandidate::phi(), phi0(), reco::LeafCandidate::pt(), and tpInJet_.

166  {
167  double minDR = 999.;
168  double ptOfNearestJet = -1;
169 
170  reco::GenJetCollection::const_iterator iterGenJet;
171  for (iterGenJet = genJets->begin(); iterGenJet != genJets->end(); ++iterGenJet) {
172  reco::GenJet myJet = reco::GenJet(*iterGenJet);
173 
174  // Don't consider GenJets failing these cuts.
175  constexpr float minPt = 30.0;
176  constexpr float maxEta = 2.5;
177 
178  if (myJet.pt() > minPt && std::abs(myJet.eta()) > maxEta) {
179  double deltaR = reco::deltaR(this->eta(), this->phi0(), myJet.eta(), myJet.phi());
180 
181  if (deltaR < minDR) {
182  minDR = deltaR;
183  ptOfNearestJet = myJet.pt();
184  }
185  }
186  }
187 
188  // Only consider GenJets within this distance of TP.
189  constexpr float cutDR = 0.4;
190  tpInJet_ = (minDR < cutDR);
191  nearestJetPt_ = tpInJet_ ? ptOfNearestJet : -1.;
192  }
double pt() const final
transverse momentum
float phi0() const
Definition: TP.h:57
minPt
Definition: PV_cfg.py:223
float eta() const
Definition: TP.h:54
float nearestJetPt_
Definition: TP.h:136
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
Jets made from MC generator particles.
Definition: GenJet.h:23
bool tpInJet_
Definition: TP.h:135
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity

◆ fillTruth()

void tmtt::TP::fillTruth ( const std::list< Stub > &  vStubs)

Definition at line 45 of file TP.cc.

References assocStubs_, calcNumLayers(), fillUseForAlgEff(), index(), and alignCSCRings::s.

45  {
46  for (const Stub& s : vStubs) {
47  for (const TP* tp_i : s.assocTPs()) {
48  if (tp_i->index() == this->index())
49  assocStubs_.push_back(&s);
50  }
51  }
52 
53  this->fillUseForAlgEff(); // Fill useForAlgEff_ flag.
54 
55  this->calcNumLayers(); // Calculate number of tracker layers this TP has stubs in.
56  }
void calcNumLayers()
Definition: TP.h:103
unsigned int index() const
Definition: TP.h:39
TP(const TrackingParticlePtr &tpPtr, unsigned int index_in_vTPs, const Settings *settings)
Definition: TP.cc:16
void fillUseForAlgEff()
Definition: TP.cc:134
std::vector< const Stub * > assocStubs_
Definition: TP.h:128

◆ fillUse()

void tmtt::TP::fillUse ( )
private

Definition at line 61 of file TP.cc.

References funct::abs(), l1pfProducerBarrel_cfi::etaExtra, ALCARECOTkAlBeamHalo_cff::etaMax, tmtt::Settings::etaRegions(), tmtt::Settings::genMaxAbsEta(), tmtt::Settings::genMaxVertR(), tmtt::Settings::genMaxVertZ(), tmtt::Settings::genMinPt(), tmtt::Settings::houghMinPt(), SiStripPI::max, SiStripPI::min, AlignmentTrackSelector_cfi::ptMax, ptMin, settings_, trackingParticlePtr_, trackingParticleSelector_cfi::trackingParticleSelector, and use_.

Referenced by TP().

61  {
62  constexpr bool useOnlyInTimeParticles = false;
63  constexpr bool useOnlyTPfromPhysicsCollisionFalse = false;
64  // Use looser cuts here those those used for tracking efficiency measurement.
65  // Keep only those TP that have a chance (allowing for finite track resolution) of being reconstructed as L1 tracks. L1 tracks not matching these TP will be defined as fake.
66 
67  // Include all possible particle types here, as if some are left out, L1 tracks matching one of missing types will be declared fake.
68  constexpr std::array<int, 5> genPdgIdsAllUnsigned = {{11, 13, 211, 321, 2212}};
69  vector<int> genPdgIdsAll;
70  for (const int& iPdg : genPdgIdsAllUnsigned) {
71  genPdgIdsAll.push_back(iPdg);
72  genPdgIdsAll.push_back(-iPdg);
73  }
74 
75  // Range big enough to include all TP needed to measure tracking efficiency
76  // and big enough to include any TP that might be reconstructed for fake rate measurement.
77  constexpr float ptMinScale = 0.7;
78  const float ptMin = min(settings_->genMinPt(), ptMinScale * settings_->houghMinPt());
79  constexpr double ptMax = 9.9e9;
80  const float etaExtra = 0.2;
82  constexpr double fixedVertRcut = 10.;
83  constexpr double fixedVertZcut = 35.;
84 
86  ptMax,
87  -etaMax,
88  etaMax,
89  max(fixedVertRcut, settings_->genMaxVertR()),
90  max(fixedVertZcut, settings_->genMaxVertZ()),
91  0,
92  useOnlyTPfromPhysicsCollisionFalse,
93  useOnlyInTimeParticles,
94  true,
95  false,
96  genPdgIdsAll);
97 
99  }
double genMaxAbsEta() const
Definition: Settings.h:49
constexpr float ptMin
double genMinPt() const
Definition: Settings.h:48
double genMaxVertR() const
Definition: Settings.h:50
TrackingParticlePtr trackingParticlePtr_
Definition: TP.h:106
double genMaxVertZ() const
Definition: Settings.h:51
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const Settings * settings_
Definition: TP.h:110
bool use_
Definition: TP.h:131
double houghMinPt() const
Definition: Settings.h:135
const std::vector< double > & etaRegions() const
Definition: Settings.h:124

◆ fillUseForAlgEff()

void tmtt::TP::fillUseForAlgEff ( )
private

Definition at line 134 of file TP.cc.

References assocStubs_, tmtt::Utility::countLayers(), tmtt::Settings::genMinStubLayers(), settings_, useForAlgEff_, and useForEff_.

Referenced by fillTruth().

134  {
135  useForAlgEff_ = false;
136  if (useForEff_) {
138  }
139  }
bool useForEff_
Definition: TP.h:132
bool useForAlgEff_
Definition: TP.h:133
const Settings * settings_
Definition: TP.h:110
unsigned int genMinStubLayers() const
Definition: Settings.h:56
unsigned int countLayers(const Settings *settings, const std::vector< const Stub *> &stubs, bool disableReducedLayerID=false, bool onlyPS=false)
Definition: Utility.cc:25
std::vector< const Stub * > assocStubs_
Definition: TP.h:128

◆ fillUseForEff()

void tmtt::TP::fillUseForEff ( )
private

Definition at line 103 of file TP.cc.

References funct::abs(), d0_, tmtt::Settings::genMaxAbsEta(), tmtt::Settings::genMaxD0(), tmtt::Settings::genMaxVertR(), tmtt::Settings::genMaxVertZ(), tmtt::Settings::genMaxZ0(), tmtt::Settings::genMinPt(), tmtt::Settings::genPdgIds(), AlignmentTrackSelector_cfi::ptMax, settings_, trackingParticlePtr_, trackingParticleSelector_cfi::trackingParticleSelector, use_, useForEff_, and z0_.

Referenced by TP().

103  {
104  useForEff_ = false;
105  if (use_) {
106  constexpr bool useOnlyInTimeParticles = true;
107  constexpr bool useOnlyTPfromPhysicsCollision = true;
108  constexpr double ptMax = 9.9e9;
110  ptMax,
115  0,
116  useOnlyTPfromPhysicsCollision,
117  useOnlyInTimeParticles,
118  true,
119  false,
120  settings_->genPdgIds());
121 
123 
124  // Add additional cut on particle transverse impact parameter.
125  if (std::abs(d0_) > settings_->genMaxD0())
126  useForEff_ = false;
127  if (std::abs(z0_) > settings_->genMaxZ0())
128  useForEff_ = false;
129  }
130  }
double genMaxZ0() const
Definition: Settings.h:53
double genMaxAbsEta() const
Definition: Settings.h:49
bool useForEff_
Definition: TP.h:132
double genMinPt() const
Definition: Settings.h:48
double genMaxVertR() const
Definition: Settings.h:50
const std::vector< int > & genPdgIds() const
Definition: Settings.h:54
TrackingParticlePtr trackingParticlePtr_
Definition: TP.h:106
double genMaxVertZ() const
Definition: Settings.h:51
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const Settings * settings_
Definition: TP.h:110
bool use_
Definition: TP.h:131
double genMaxD0() const
Definition: Settings.h:52
float d0_
Definition: TP.h:125
float z0_
Definition: TP.h:126

◆ index()

unsigned int tmtt::TP::index ( ) const
inline

Definition at line 39 of file TP.h.

References index_in_vTPs_.

Referenced by tmtt::L1track3D::cheat(), fillTruth(), and operator==().

39 { return index_in_vTPs_; }
unsigned int index_in_vTPs_
Definition: TP.h:108

◆ inTimeBx()

bool tmtt::TP::inTimeBx ( ) const
inline

Definition at line 43 of file TP.h.

References inTimeBx_.

43 { return inTimeBx_; }
bool inTimeBx_
Definition: TP.h:113

◆ mass()

float tmtt::TP::mass ( ) const
inline

Definition at line 47 of file TP.h.

References mass_.

Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), and datamodel.Object::p4().

47 { return mass_; }
float mass_
Definition: TP.h:116

◆ nearestJetPt()

float tmtt::TP::nearestJetPt ( ) const
inline

Definition at line 95 of file TP.h.

References nearestJetPt_.

95 { return nearestJetPt_; } // -ve if no nearest jet.
float nearestJetPt_
Definition: TP.h:136

◆ numAssocStubs()

unsigned int tmtt::TP::numAssocStubs ( ) const
inline

Definition at line 82 of file TP.h.

References assocStubs_.

82 { return assocStubs_.size(); }
std::vector< const Stub * > assocStubs_
Definition: TP.h:128

◆ numLayers()

unsigned int tmtt::TP::numLayers ( ) const
inline

Definition at line 83 of file TP.h.

References nLayersWithStubs_.

83 { return nLayersWithStubs_; }
unsigned int nLayersWithStubs_
Definition: TP.h:129

◆ operator==()

bool tmtt::TP::operator== ( const TP tpOther) const
inline

Definition at line 31 of file TP.h.

References index().

31 { return (this->index() == tpOther.index()); }
unsigned int index() const
Definition: TP.h:39

◆ pdgId()

int tmtt::TP::pdgId ( ) const
inline

Definition at line 41 of file TP.h.

References pdgId_.

Referenced by Particle.Particle::__str__().

41 { return pdgId_; }
int pdgId_
Definition: TP.h:112

◆ phi0()

float tmtt::TP::phi0 ( ) const
inline

Definition at line 57 of file TP.h.

References phi0_.

Referenced by fillNearestJetInfo(), and tmtt::SimpleLR4::fit().

57 { return phi0_; }
float phi0_
Definition: TP.h:121

◆ physicsCollision()

bool tmtt::TP::physicsCollision ( ) const
inline

Definition at line 45 of file TP.h.

References physicsCollision_.

45 { return physicsCollision_; }
bool physicsCollision_
Definition: TP.h:114

◆ pt()

float tmtt::TP::pt ( ) const
inline

◆ qOverPt()

float tmtt::TP::qOverPt ( ) const
inline

Definition at line 50 of file TP.h.

References charge_, and pt_.

Referenced by tmtt::SimpleLR4::fit().

50  {
51  constexpr float big = 9.9e9;
52  return (pt_ > 0) ? charge_ / pt_ : big;
53  }
int charge_
Definition: TP.h:115
float pt_
Definition: TP.h:117
Definition: big.h:8

◆ tanLambda()

float tmtt::TP::tanLambda ( ) const
inline

Definition at line 56 of file TP.h.

References tanLambda_.

56 { return tanLambda_; }
float tanLambda_
Definition: TP.h:120

◆ theta()

float tmtt::TP::theta ( void  ) const
inline

Definition at line 55 of file TP.h.

References theta_.

Referenced by Tau.Tau::zImpact().

55 { return theta_; }
float theta_
Definition: TP.h:119

◆ tpInJet()

float tmtt::TP::tpInJet ( float  genJetPtCut = 30.) const
inline

Definition at line 94 of file TP.h.

References nearestJetPt_, and tpInJet_.

94 { return (tpInJet_ && nearestJetPt_ > genJetPtCut); }
float nearestJetPt_
Definition: TP.h:136
bool tpInJet_
Definition: TP.h:135

◆ trackingParticlePtr()

const TrackingParticlePtr& tmtt::TP::trackingParticlePtr ( ) const
inline

Definition at line 29 of file TP.h.

References trackingParticlePtr_.

29 { return trackingParticlePtr_; }
TrackingParticlePtr trackingParticlePtr_
Definition: TP.h:106

◆ trkPhiAtR()

float tmtt::TP::trkPhiAtR ( float  rad) const
inline

Definition at line 68 of file TP.h.

References d0_, reco::deltaPhi(), dphi(), and phi0_.

68 { return reco::deltaPhi(phi0_ - this->dphi(rad) - d0_ / rad, 0.); }
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
float phi0_
Definition: TP.h:121
float dphi(float rad) const
Definition: TP.h:66
float d0_
Definition: TP.h:125

◆ trkPhiAtStub()

float tmtt::TP::trkPhiAtStub ( const Stub stub) const

Definition at line 143 of file TP.cc.

References dphi(), phi0_, run3scouting_cff::trkPhi, and trkRAtStub().

143  {
144  float trkPhi = phi0_ - this->dphi(this->trkRAtStub(stub));
145  return trkPhi;
146  }
float phi0_
Definition: TP.h:121
float dphi(float rad) const
Definition: TP.h:66
float trkRAtStub(const Stub *stub) const
Definition: TP.cc:152

◆ trkRAtStub()

float tmtt::TP::trkRAtStub ( const Stub stub) const

Definition at line 152 of file TP.cc.

References tmtt::Stub::barrel(), tmtt::Stub::r(), tanLambda_, tmtt::Stub::z(), and z0_.

Referenced by trkPhiAtStub().

152  {
153  float rTrk = (stub->barrel()) ? stub->r() : (stub->z() - z0_) / tanLambda_;
154  return rTrk;
155  }
float z0_
Definition: TP.h:126
float tanLambda_
Definition: TP.h:120

◆ trkZAtR()

float tmtt::TP::trkZAtR ( float  rad) const
inline

Definition at line 70 of file TP.h.

References tanLambda_, and vz_.

70 { return (vz_ + rad * tanLambda_); }
float vz_
Definition: TP.h:124
float tanLambda_
Definition: TP.h:120

◆ trkZAtStub()

float tmtt::TP::trkZAtStub ( const Stub stub) const

Definition at line 161 of file TP.cc.

References tmtt::Stub::barrel(), tmtt::Stub::r(), tanLambda_, tmtt::Stub::z(), and z0_.

161  {
162  float zTrk = (stub->barrel()) ? z0_ + tanLambda_ * stub->r() : stub->z();
163  return zTrk;
164  }
float z0_
Definition: TP.h:126
float tanLambda_
Definition: TP.h:120

◆ use()

bool tmtt::TP::use ( ) const
inline

Definition at line 85 of file TP.h.

References use_.

85 { return use_; }
bool use_
Definition: TP.h:131

◆ useForAlgEff()

bool tmtt::TP::useForAlgEff ( ) const
inline

Definition at line 89 of file TP.h.

References useForAlgEff_.

Referenced by tmtt::L1track3D::cheat().

89 { return useForAlgEff_; }
bool useForAlgEff_
Definition: TP.h:133

◆ useForEff()

bool tmtt::TP::useForEff ( ) const
inline

Definition at line 87 of file TP.h.

References useForEff_.

87 { return useForEff_; }
bool useForEff_
Definition: TP.h:132

◆ vx()

float tmtt::TP::vx ( ) const
inline

Definition at line 59 of file TP.h.

References vx_.

59 { return vx_; }
float vx_
Definition: TP.h:122

◆ vy()

float tmtt::TP::vy ( ) const
inline

Definition at line 60 of file TP.h.

References vy_.

60 { return vy_; }
float vy_
Definition: TP.h:123

◆ vz()

float tmtt::TP::vz ( ) const
inline

Definition at line 61 of file TP.h.

References vz_.

61 { return vz_; }
float vz_
Definition: TP.h:124

◆ z0()

float tmtt::TP::z0 ( ) const
inline

Definition at line 64 of file TP.h.

References z0_.

64 { return z0_; }
float z0_
Definition: TP.h:126

Member Data Documentation

◆ assocStubs_

std::vector<const Stub*> tmtt::TP::assocStubs_
private

Definition at line 128 of file TP.h.

Referenced by assocStubs(), calcNumLayers(), fillTruth(), fillUseForAlgEff(), and numAssocStubs().

◆ charge_

int tmtt::TP::charge_
private

Definition at line 115 of file TP.h.

Referenced by charge(), dphi(), and qOverPt().

◆ d0_

float tmtt::TP::d0_
private

Definition at line 125 of file TP.h.

Referenced by d0(), fillUseForEff(), and trkPhiAtR().

◆ eta_

float tmtt::TP::eta_
private

Definition at line 118 of file TP.h.

Referenced by eta().

◆ index_in_vTPs_

unsigned int tmtt::TP::index_in_vTPs_
private

Definition at line 108 of file TP.h.

Referenced by index().

◆ inTimeBx_

bool tmtt::TP::inTimeBx_
private

Definition at line 113 of file TP.h.

Referenced by inTimeBx(), and TP().

◆ mass_

float tmtt::TP::mass_
private

Definition at line 116 of file TP.h.

Referenced by mass().

◆ nearestJetPt_

float tmtt::TP::nearestJetPt_
private

Definition at line 136 of file TP.h.

Referenced by fillNearestJetInfo(), nearestJetPt(), and tpInJet().

◆ nLayersWithStubs_

unsigned int tmtt::TP::nLayersWithStubs_
private

Definition at line 129 of file TP.h.

Referenced by calcNumLayers(), and numLayers().

◆ pdgId_

int tmtt::TP::pdgId_
private

Definition at line 112 of file TP.h.

Referenced by pdgId().

◆ phi0_

float tmtt::TP::phi0_
private

Definition at line 121 of file TP.h.

Referenced by phi0(), trkPhiAtR(), and trkPhiAtStub().

◆ physicsCollision_

bool tmtt::TP::physicsCollision_
private

Definition at line 114 of file TP.h.

Referenced by physicsCollision(), and TP().

◆ pt_

float tmtt::TP::pt_
private

Definition at line 117 of file TP.h.

Referenced by dphi(), pt(), and qOverPt().

◆ settings_

const Settings* tmtt::TP::settings_
private

Definition at line 110 of file TP.h.

Referenced by calcNumLayers(), dphi(), fillUse(), fillUseForAlgEff(), and fillUseForEff().

◆ tanLambda_

float tmtt::TP::tanLambda_
private

Definition at line 120 of file TP.h.

Referenced by tanLambda(), trkRAtStub(), trkZAtR(), and trkZAtStub().

◆ theta_

float tmtt::TP::theta_
private

Definition at line 119 of file TP.h.

Referenced by theta().

◆ tpInJet_

bool tmtt::TP::tpInJet_
private

Definition at line 135 of file TP.h.

Referenced by fillNearestJetInfo(), and tpInJet().

◆ trackingParticlePtr_

TrackingParticlePtr tmtt::TP::trackingParticlePtr_
private

Definition at line 106 of file TP.h.

Referenced by fillUse(), fillUseForEff(), and trackingParticlePtr().

◆ use_

bool tmtt::TP::use_
private

Definition at line 131 of file TP.h.

Referenced by fillUse(), fillUseForEff(), and use().

◆ useForAlgEff_

bool tmtt::TP::useForAlgEff_
private

Definition at line 133 of file TP.h.

Referenced by fillUseForAlgEff(), and useForAlgEff().

◆ useForEff_

bool tmtt::TP::useForEff_
private

Definition at line 132 of file TP.h.

Referenced by fillUseForAlgEff(), fillUseForEff(), and useForEff().

◆ vx_

float tmtt::TP::vx_
private

Definition at line 122 of file TP.h.

Referenced by vx().

◆ vy_

float tmtt::TP::vy_
private

Definition at line 123 of file TP.h.

Referenced by vy().

◆ vz_

float tmtt::TP::vz_
private

Definition at line 124 of file TP.h.

Referenced by trkZAtR(), and vz().

◆ z0_

float tmtt::TP::z0_
private

Definition at line 126 of file TP.h.

Referenced by fillUseForEff(), trkRAtStub(), trkZAtStub(), and z0().