CMS 3D CMS Logo

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

Public Member Functions

bool operator() (const L1Track &t) const
 
 TTTrackWordAbsEtaMaxSelector (double absEtaMax)
 
 TTTrackWordAbsEtaMaxSelector (const edm::ParameterSet &cfg)
 

Private Attributes

double absEtaMax_
 

Detailed Description

Definition at line 130 of file L1TrackSelectionProducer.cc.

Constructor & Destructor Documentation

◆ TTTrackWordAbsEtaMaxSelector() [1/2]

L1TrackSelectionProducer::TTTrackWordAbsEtaMaxSelector::TTTrackWordAbsEtaMaxSelector ( double  absEtaMax)
inline

◆ TTTrackWordAbsEtaMaxSelector() [2/2]

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

Definition at line 132 of file L1TrackSelectionProducer.cc.

133  : absEtaMax_(cfg.template getParameter<double>("absEtaMax")) {}

Member Function Documentation

◆ operator()()

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

Definition at line 134 of file L1TrackSelectionProducer.cc.

References funct::abs(), absEtaMax_, and submitPVValidationJobs::t.

134  {
135  TTTrack_TrackWord::tanl_t etaEmulationBits = t.getTanlWord();
136  ap_fixed<TrackBitWidths::kEtaSize, TrackBitWidths::kEtaMagSize> etaEmulation;
137  etaEmulation.V = etaEmulationBits.range();
138  return std::abs(etaEmulation.to_double()) <= absEtaMax_;
139  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
ap_uint< TrackBitWidths::kTanlSize > tanl_t

Member Data Documentation

◆ absEtaMax_

double L1TrackSelectionProducer::TTTrackWordAbsEtaMaxSelector::absEtaMax_
private

Definition at line 142 of file L1TrackSelectionProducer.cc.

Referenced by operator()().