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

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

Member Function Documentation

◆ operator()()

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

Definition at line 111 of file L1TrackSelectionProducer.cc.

References ptMin_, and submitPVValidationJobs::t.

111  {
112  ap_uint<TrackBitWidths::kPtSize> ptEmulationBits = t.getTrackWord()(
113  TTTrack_TrackWord::TrackBitLocations::kRinvMSB - 1, TTTrack_TrackWord::TrackBitLocations::kRinvLSB);
114  ap_ufixed<TrackBitWidths::kPtSize, TrackBitWidths::kPtMagSize> ptEmulation;
115  ptEmulation.V = ptEmulationBits.range();
116  //edm::LogInfo("L1TrackSelectionProducer") << "produce::Emulation track properties::ap_uint(bits) = " << ptEmulationBits.to_string(2)
117  // << " ap_ufixed(bits) = " << ptEmulation.to_string(2) << " ap_ufixed(float) = " << ptEmulation.to_double();
118  return ptEmulation.to_double() >= ptMin_;
119  }

Member Data Documentation

◆ ptMin_

double L1TrackSelectionProducer::TTTrackWordPtMinSelector::ptMin_
private

Definition at line 122 of file L1TrackSelectionProducer.cc.

Referenced by operator()().