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 106 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 108 of file L1TrackSelectionProducer.cc.

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

Member Function Documentation

◆ operator()()

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

Definition at line 109 of file L1TrackSelectionProducer.cc.

References ptMin_, and submitPVValidationJobs::t.

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

Member Data Documentation

◆ ptMin_

double L1TrackSelectionProducer::TTTrackWordPtMinSelector::ptMin_
private

Definition at line 118 of file L1TrackSelectionProducer.cc.

Referenced by operator()().