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 129 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 131 of file L1TrackSelectionProducer.cc.

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

Member Function Documentation

◆ operator()()

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

Definition at line 133 of file L1TrackSelectionProducer.cc.

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

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

Referenced by operator()().