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 153 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 155 of file L1TrackSelectionProducer.cc.

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

Member Function Documentation

◆ operator()()

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

Definition at line 157 of file L1TrackSelectionProducer.cc.

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

157  {
158  double floatZ0 = t.undigitizeSignedValue(
159  t.getZ0Bits(), TTTrack_TrackWord::TrackBitWidths::kZ0Size, TTTrack_TrackWord::stepZ0, 0.0);
160  return std::abs(floatZ0) <= absZ0Max_;
161  }
float floatZ0(z0_t z0)
Definition: datatypes.h:163
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 164 of file L1TrackSelectionProducer.cc.

Referenced by operator()().