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 132 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 134 of file L1TrackSelectionProducer.cc.

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

Member Function Documentation

◆ operator()()

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

Definition at line 136 of file L1TrackSelectionProducer.cc.

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

136  {
137  TTTrack_TrackWord::tanl_t etaEmulationBits = t.getTanlWord();
138  ap_fixed<TrackBitWidths::kEtaSize, TrackBitWidths::kEtaMagSize> etaEmulation;
139  etaEmulation.V = etaEmulationBits.range();
140  return std::abs(etaEmulation.to_double()) <= absEtaMax_;
141  }
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 144 of file L1TrackSelectionProducer.cc.

Referenced by operator()().