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 152 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 160 of file L1TrackVertexAssociationProducer.cc.

References heavyIonCSV_trainingSettings::idx, and processedTracksPerLink_.

161  : fwNTrackSetsTVA_(cfg.template getParameter<unsigned int>("fwNTrackSetsTVA")) {
162  for (int idx = 0; idx < 18; idx++) {
163  processedTracksPerLink_.push_back(0);
164  }
165  }

Member Function Documentation

◆ log()

void L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::log ( )
inline

Definition at line 175 of file L1TrackVertexAssociationProducer.cc.

References heavyIonCSV_trainingSettings::idx, processedTracksPerLink_, and truncatedTracksPerLink_.

Referenced by L1TrackVertexAssociationProducer::produce().

175  {
176  edm::LogInfo log("L1TrackVertexAssociationProducer");
177  log << "Processed track link counters:\t[";
178  for (int idx = 0; idx < 18; idx++) {
179  if (idx > 0)
180  log << ", ";
182  }
183  log << "]\n";
184  log << "Truncated track link counters:\t[";
185  for (int idx = 0; idx < 18; idx++) {
186  if (idx > 0)
187  log << ", ";
189  }
190  log << "]\n";
191  }

◆ operator()()

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

Definition at line 166 of file L1TrackVertexAssociationProducer.cc.

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

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

Member Data Documentation

◆ fwNTrackSetsTVA_

unsigned int L1TrackVertexAssociationProducer::TTTrackWordLinkLimitSelector::fwNTrackSetsTVA_
private

Definition at line 194 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