CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector Struct Reference

Public Member Functions

void log ()
 
bool operator() (const TTTrackType &t)
 
 TTTrackWordLinkLimitSelector (const unsigned int fwNTrackSetsTVA)
 
 TTTrackWordLinkLimitSelector (const edm::ParameterSet &cfg)
 

Private Attributes

unsigned int fwNTrackSetsTVA_
 
std::vector< unsigned int > processedTracksPerLink_
 
std::vector< unsigned int > truncatedTracksPerLink_
 

Detailed Description

Definition at line 224 of file L1TrackVertexAssociationProducer.cc.

Constructor & Destructor Documentation

◆ TTTrackWordLinkLimitSelector() [1/2]

L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::TTTrackWordLinkLimitSelector ( const unsigned int  fwNTrackSetsTVA)
inline

◆ TTTrackWordLinkLimitSelector() [2/2]

L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::TTTrackWordLinkLimitSelector ( const edm::ParameterSet cfg)
inline

Definition at line 232 of file L1TrackVertexAssociationProducer.cc.

References heavyIonCSV_trainingSettings::idx, and processedTracksPerLink_.

233  : fwNTrackSetsTVA_(cfg.template getParameter<unsigned int>("fwNTrackSetsTVA")) {
234  for (int idx = 0; idx < 18; idx++) {
235  processedTracksPerLink_.push_back(0);
236  }
237  }

Member Function Documentation

◆ log()

void L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::log ( )
inline

Definition at line 247 of file L1TrackVertexAssociationProducer.cc.

References heavyIonCSV_trainingSettings::idx, processedTracksPerLink_, and truncatedTracksPerLink_.

Referenced by L1TrackVertexAssociationProducer::produce().

247  {
248  edm::LogInfo log("L1TrackVertexAssociationProducer");
249  log << "Processed track link counters:\t[";
250  for (int idx = 0; idx < 18; idx++) {
251  if (idx > 0)
252  log << ", ";
254  }
255  log << "]\n";
256  log << "Truncated track link counters:\t[";
257  for (int idx = 0; idx < 18; idx++) {
258  if (idx > 0)
259  log << ", ";
261  }
262  log << "]\n";
263  }

◆ operator()()

bool L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::operator() ( const TTTrackType t)
inline

Definition at line 238 of file L1TrackVertexAssociationProducer.cc.

References fwNTrackSetsTVA_, l1t::demo::codecs::gttLinkID(), processedTracksPerLink_, submitPVValidationJobs::t, and truncatedTracksPerLink_.

238  {
239  unsigned int gttLinkID = l1t::demo::codecs::gttLinkID(t);
240  //increment the counter of processed tracks
242  //fwNTrackSetsTVA_ tracks may be processed in firmware, no more (<= used intentionally to match the off-by-one indexing versus LibHLS)
243  if ((processedTracksPerLink_[gttLinkID] > fwNTrackSetsTVA_) && (t.getValidWord()))
246  }
unsigned int gttLinkID(T track)
Definition: tracks.h:20

Member Data Documentation

◆ fwNTrackSetsTVA_

unsigned int L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::fwNTrackSetsTVA_
private

Definition at line 266 of file L1TrackVertexAssociationProducer.cc.

Referenced by operator()().

◆ processedTracksPerLink_

std::vector<unsigned int> L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::processedTracksPerLink_
private

◆ truncatedTracksPerLink_

std::vector<unsigned int> L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::truncatedTracksPerLink_
private