CMS 3D CMS Logo

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

Public Member Functions

bool operator() (const L1Track &t) const
 
 TTTrackWordPtMinSelector (double ptMin)
 
 TTTrackWordPtMinSelector (const edm::ParameterSet &cfg)
 

Private Attributes

double ptMin_
 

Detailed Description

Definition at line 107 of file L1TrackSelectionProducer.cc.

Constructor & Destructor Documentation

◆ TTTrackWordPtMinSelector() [1/2]

L1TrackSelectionProducer::TTTrackWordPtMinSelector::TTTrackWordPtMinSelector ( double  ptMin)
inline

◆ TTTrackWordPtMinSelector() [2/2]

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

Definition at line 109 of file L1TrackSelectionProducer.cc.

109 : ptMin_(cfg.template getParameter<double>("ptMin")) {}

Member Function Documentation

◆ operator()()

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

Definition at line 110 of file L1TrackSelectionProducer.cc.

References ptMin_, and submitPVValidationJobs::t.

110  {
111  ap_uint<TrackBitWidths::kPtSize> ptEmulationBits = t.getTrackWord()(
112  TTTrack_TrackWord::TrackBitLocations::kRinvMSB - 1, TTTrack_TrackWord::TrackBitLocations::kRinvLSB);
113  ap_ufixed<TrackBitWidths::kPtSize, TrackBitWidths::kPtMagSize> ptEmulation;
114  ptEmulation.V = ptEmulationBits.range();
115  return ptEmulation.to_double() >= ptMin_;
116  }

Member Data Documentation

◆ ptMin_

double L1TrackSelectionProducer::TTTrackWordPtMinSelector::ptMin_
private

Definition at line 119 of file L1TrackSelectionProducer.cc.

Referenced by operator()().