CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1TrackSelectionProducer::TTTrackWordAbsZ0MaxSelector Struct Reference

Public Member Functions

bool operator() (const L1Track &t) const
 
 TTTrackWordAbsZ0MaxSelector (double absZ0Max)
 
 TTTrackWordAbsZ0MaxSelector (const edm::ParameterSet &cfg)
 

Private Attributes

double absZ0Max_
 

Detailed Description

Definition at line 152 of file L1TrackSelectionProducer.cc.

Constructor & Destructor Documentation

◆ TTTrackWordAbsZ0MaxSelector() [1/2]

L1TrackSelectionProducer::TTTrackWordAbsZ0MaxSelector::TTTrackWordAbsZ0MaxSelector ( double  absZ0Max)
inline

◆ TTTrackWordAbsZ0MaxSelector() [2/2]

L1TrackSelectionProducer::TTTrackWordAbsZ0MaxSelector::TTTrackWordAbsZ0MaxSelector ( const edm::ParameterSet cfg)
inline

Definition at line 154 of file L1TrackSelectionProducer.cc.

155  : absZ0Max_(cfg.template getParameter<double>("absZ0Max")) {}

Member Function Documentation

◆ operator()()

bool L1TrackSelectionProducer::TTTrackWordAbsZ0MaxSelector::operator() ( const L1Track t) const
inline

Definition at line 156 of file L1TrackSelectionProducer.cc.

References funct::abs(), absZ0Max_, l1ct::Scales::floatZ0(), TTTrack_TrackWord::stepZ0, and submitPVValidationJobs::t.

156  {
157  double floatZ0 = t.undigitizeSignedValue(
158  t.getZ0Bits(), TTTrack_TrackWord::TrackBitWidths::kZ0Size, TTTrack_TrackWord::stepZ0, 0.0);
159  return std::abs(floatZ0) <= absZ0Max_;
160  }
float floatZ0(z0_t z0)
Definition: datatypes.h:171
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
static constexpr double stepZ0

Member Data Documentation

◆ absZ0Max_

double L1TrackSelectionProducer::TTTrackWordAbsZ0MaxSelector::absZ0Max_
private

Definition at line 163 of file L1TrackSelectionProducer.cc.

Referenced by operator()().