CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
TrackListMerger Class Reference
Inheritance diagram for TrackListMerger:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

struct  TkEDGetTokenss
 

Public Member Functions

virtual void produce (edm::Event &e, const edm::EventSetup &c) override
 
 TrackListMerger (const edm::ParameterSet &conf)
 
virtual ~TrackListMerger ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel)
 
virtual ~ProducerBase () noexcept(false)
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Types

using MVACollection = std::vector< float >
 
using QualityMaskCollection = std::vector< unsigned char >
 

Private Member Functions

TkEDGetTokenss edTokens (const edm::InputTag &tag, const edm::InputTag &seltag, const edm::InputTag &mvatag)
 
TkEDGetTokenss edTokens (const edm::InputTag &tag, const edm::InputTag &mvatag)
 

Private Attributes

bool allowFirstHitShare_
 
bool copyExtras_
 
bool copyMVA_
 
float epsilon_
 
float foundHitBonus_
 
std::vector< int > hasSelector_
 
std::vector< double > indivShareFrac_
 
std::vector< std::vector< int > > listsToMerge_
 
float lostHitPenalty_
 
bool makeReKeyedSeeds_
 
double maxNormalizedChisq_
 
unsigned int minFound_
 
double minPT_
 
std::unique_ptr< TrajectorySeedCollectionoutputSeeds
 
std::unique_ptr< std::vector< Trajectory > > outputTrajs
 
std::unique_ptr< reco::TrackExtraCollectionoutputTrkExtras
 
std::unique_ptr< TrackingRecHitCollectionoutputTrkHits
 
std::unique_ptr< reco::TrackCollectionoutputTrks
 
std::unique_ptr< TrajTrackAssociationCollectionoutputTTAss
 
std::string priorityName_
 
std::vector< bool > promoteQuality_
 
reco::TrackBase::TrackQuality qualityToSet_
 
edm::RefProd< std::vector< Trajectory > > refTrajs
 
edm::RefProd< TrajectorySeedCollectionrefTrajSeeds
 
reco::TrackExtraRefProd refTrkExtras
 
TrackingRecHitRefProd refTrkHits
 
reco::TrackRefProd refTrks
 
float shareFrac_
 
std::vector< TkEDGetTokensstrackProducers_
 
bool trkQualMod_
 
bool use_sharesInput_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 32 of file TrackListMerger.cc.

Member Typedef Documentation

using TrackListMerger::MVACollection = std::vector<float>
private

Definition at line 44 of file TrackListMerger.cc.

using TrackListMerger::QualityMaskCollection = std::vector<unsigned char>
private

Definition at line 45 of file TrackListMerger.cc.

Constructor & Destructor Documentation

TrackListMerger::TrackListMerger ( const edm::ParameterSet conf)
explicit

Definition at line 208 of file TrackListMerger.cc.

References Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, createfilelist::int, diffTwoXMLs::label, convertSQLiteXML::ok, reco::TrackBase::qualityByName(), TrackValidation_cff::selectors, hiMuonIterativeTk_cff::setsToMerge, AlCaHLTBitMon_QueryRunRegistry::string, and reco::TrackBase::undefQuality.

208  {
209  copyExtras_ = conf.getUntrackedParameter<bool>("copyExtras", true);
210 
211  std::vector<edm::InputTag> trackProducerTags(conf.getParameter<std::vector<edm::InputTag> >("TrackProducers"));
212  //which of these do I need to turn into vectors?
213  maxNormalizedChisq_ = conf.getParameter<double>("MaxNormalizedChisq");
214  minPT_ = conf.getParameter<double>("MinPT");
215  minFound_ = (unsigned int)conf.getParameter<int>("MinFound");
216  epsilon_ = conf.getParameter<double>("Epsilon");
217  shareFrac_ = conf.getParameter<double>("ShareFrac");
218  allowFirstHitShare_ = conf.getParameter<bool>("allowFirstHitShare");
219  foundHitBonus_ = conf.getParameter<double>("FoundHitBonus");
220  lostHitPenalty_ = conf.getParameter<double>("LostHitPenalty");
221  indivShareFrac_=conf.getParameter<std::vector<double> >("indivShareFrac");
222  std::string qualityStr = conf.getParameter<std::string>("newQuality");
223 
224  if (qualityStr != "") {
226  }
227  else
229 
230  use_sharesInput_ = true;
231  if ( epsilon_ > 0.0 )use_sharesInput_ = false;
232 
234 
235  for ( unsigned int i=0; i<setsToMerge.size(); i++) {
236  listsToMerge_.push_back(setsToMerge[i].getParameter<std::vector< int> >("tLists"));
237  promoteQuality_.push_back(setsToMerge[i].getParameter<bool>("pQual"));
238  }
239  hasSelector_ = conf.getParameter<std::vector<int> > ("hasSelector");
240  copyMVA_ = conf.getParameter<bool>("copyMVA");
241 
242  std::vector<edm::InputTag> selectors(conf.getParameter<std::vector<edm::InputTag> >("selectedTrackQuals"));
243  std::vector<edm::InputTag> mvaStores;
244  if(conf.exists("mvaValueTags")){
245  mvaStores = conf.getParameter<std::vector<edm::InputTag> >("mvaValueTags");
246  }else{
247  for (int i = 0; i < (int)selectors.size(); i++){
248  edm::InputTag ntag(selectors[i].label(),"MVAVals");
249  mvaStores.push_back(ntag);
250  }
251  }
252  unsigned int numTrkColl = trackProducerTags.size();
253  if (numTrkColl != hasSelector_.size() || numTrkColl != selectors.size()) {
254  throw cms::Exception("Inconsistent size") << "need same number of track collections and selectors";
255  }
256  if (numTrkColl != hasSelector_.size() || numTrkColl != mvaStores.size()) {
257  throw cms::Exception("Inconsistent size") << "need same number of track collections and MVA stores";
258  }
259  for (unsigned int i = indivShareFrac_.size(); i < numTrkColl; i++) {
260  // edm::LogWarning("TrackListMerger") << "No indivShareFrac for " << trackProducersTags <<". Using default value of 1";
261  indivShareFrac_.push_back(1.0);
262  }
263 
264  trkQualMod_=conf.getParameter<bool>("writeOnlyTrkQuals");
265  if ( trkQualMod_) {
266  bool ok=true;
267  for ( unsigned int i=1; i<numTrkColl; i++) {
268  if (!(trackProducerTags[i]==trackProducerTags[0])) ok=false;
269  }
270  if ( !ok) {
271  throw cms::Exception("Bad input") << "to use writeOnlyTrkQuals=True all input InputTags must be the same";
272  }
273  produces<edm::ValueMap<int> >();
274  produces<QualityMaskCollection>("QualityMasks");
275  }
276  else{
277  produces<reco::TrackCollection>();
278 
279  makeReKeyedSeeds_ = conf.getUntrackedParameter<bool>("makeReKeyedSeeds",false);
280  if (makeReKeyedSeeds_){
281  copyExtras_=true;
282  produces<TrajectorySeedCollection>();
283  }
284 
285  if (copyExtras_) {
286  produces<reco::TrackExtraCollection>();
287  produces<TrackingRecHitCollection>();
288  }
289  produces< std::vector<Trajectory> >();
290  produces< TrajTrackAssociationCollection >();
291  }
292  produces<edm::ValueMap<float> >("MVAVals");
293  produces<MVACollection>("MVAValues");
294 
295  // Do all the consumes
296  trackProducers_.resize(numTrkColl);
297  for (unsigned int i = 0; i < numTrkColl; ++i) {
298  trackProducers_[i] = hasSelector_[i]>0 ? edTokens(trackProducerTags[i], selectors[i], mvaStores[i]) : edTokens(trackProducerTags[i], mvaStores[i]);
299  }
300 
301  priorityName_ = conf.getParameter<std::string>("trackAlgoPriorityOrder");
302 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< bool > promoteQuality_
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:33
reco::TrackBase::TrackQuality qualityToSet_
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::vector< double > indivShareFrac_
TkEDGetTokenss edTokens(const edm::InputTag &tag, const edm::InputTag &seltag, const edm::InputTag &mvatag)
std::vector< int > hasSelector_
double maxNormalizedChisq_
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:125
unsigned int minFound_
std::vector< TkEDGetTokenss > trackProducers_
std::string priorityName_
std::vector< std::vector< int > > listsToMerge_
TrackListMerger::~TrackListMerger ( )
virtual

Definition at line 306 of file TrackListMerger.cc.

306 { }

Member Function Documentation

TkEDGetTokenss TrackListMerger::edTokens ( const edm::InputTag tag,
const edm::InputTag seltag,
const edm::InputTag mvatag 
)
inlineprivate

Definition at line 76 of file TrackListMerger.cc.

76  {
77  return TkEDGetTokenss(tag, consumes<reco::TrackCollection>(tag),
78  consumes<std::vector<Trajectory> >(tag), consumes<TrajTrackAssociationCollection >(tag),
80  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
TkEDGetTokenss TrackListMerger::edTokens ( const edm::InputTag tag,
const edm::InputTag mvatag 
)
inlineprivate

Definition at line 81 of file TrackListMerger.cc.

81  {
82  return TkEDGetTokenss(tag, consumes<reco::TrackCollection>(tag),
83  consumes<std::vector<Trajectory> >(tag), consumes<TrajTrackAssociationCollection >(tag),
85  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void TrackListMerger::produce ( edm::Event e,
const edm::EventSetup c 
)
overridevirtual

Definition at line 309 of file TrackListMerger.cc.

References funct::abs(), patPFMETCorrections_cff::algo, reco::TrackBase::algo(), edm::OwnVector< T, P >::back(), begin, reco::TrackBase::chi2(), edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >::const_iterator, constexpr, DEFINE_FWK_MODULE, delta, TrajectorySeed::direction(), end, edm::AssociationMap< Tag >::end(), reco::Track::extra(), edm::HandleBase::failedToGet(), objects.autophobj::filler, spr::find(), edm::AssociationMap< Tag >::find(), plotBeamSpotDB::first, objects.autophobj::float, TrackingRecHit::geographicalId(), edm::EventSetup::get(), edm::Event::getByLabel(), edm::Event::getByToken(), edm::Event::getProvenance(), edm::Event::getRefBeforePut(), reco::TrackBase::highPurity, reco::TrackBase::hitPattern(), mps_fire::i, edm::ProductID::id(), edm::Ref< C, T, F >::id(), cuy::ii, reco::Track::innerDetId(), reco::Track::innerMomentum(), reco::Track::innerOk(), reco::Track::innerPosition(), reco::Track::innerStateCovariance(), TrackingRecHit::isValid(), findQualityFiles::jj, edm::Ref< C, T, F >::key(), likely, TrackingRecHit::localPosition(), reco::TrackBase::loose, cutsCKF_cfi::lostHits, match(), hpstanc_transforms::max, min(), edm::Provenance::moduleLabel(), eostools::move(), RecoTauHPSTancTauProdcuer_cfi::mvas, gen::n, TrajectorySeed::nHits(), reco::TrackBase::numberOfLostHits(), reco::TrackBase::numberOfValidHits(), reco::HitPattern::numberOfValidPixelHits(), reco::Track::outerDetId(), reco::Track::outerMomentum(), reco::Track::outerOk(), reco::Track::outerPosition(), reco::Track::outerStateCovariance(), edm::Provenance::processName(), edm::Provenance::productInstanceName(), edm::OwnVector< T, P >::push_back(), edm::Event::put(), lumiQueryAPI::q, TrackingRecHit::rawId(), TrajectorySeed::recHits(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), reco::TrackExtraBase::recHitsSize(), reco::Track::recHitsSize(), ClusterRemovalRefSetter::reKey(), edm::OwnVector< T, P >::reserve(), reco::Track::residuals(), offlineSlimmedPrimaryVertices_cfi::score, reco::Track::seedDirection(), reco::Track::seedRef(), reco::TrackExtraBase::setHits(), reco::TrackExtra::setResiduals(), reco::TrackExtraBase::setTrajParams(), TrackingRecHit::some, TrajectorySeed::startingState(), DetId::subdetId(), reco::TrackBase::tight, HiIsolationCommonParameters_cff::track, trackAlgoPriorityOrder, reco::TrackExtraBase::trajParams(), reco::TrackBase::undefAlgorithm, unlikely, and PV3DBase< T, PVType, FrameType >::x().

310  {
311  // extract tracker geometry
312  //
313  //edm::ESHandle<TrackerGeometry> theG;
314  //es.get<TrackerDigiGeometryRecord>().get(theG);
315 
316  // using namespace reco;
317 
319  es.get<CkfComponentsRecord>().get(priorityName_, priorityH);
320  auto const & trackAlgoPriorityOrder = *priorityH;
321 
322  // get Inputs
323  // if 1 input list doesn't exist, make an empty list, issue a warning, and continue
324  // this allows TrackListMerger to be used as a cleaner only if handed just one list
325  // if both input lists don't exist, will issue 2 warnings and generate an empty output collection
326  //
327  static const reco::TrackCollection s_empty;
328 
329  std::vector<const reco::TrackCollection *> trackColls;
330  std::vector<edm::Handle<reco::TrackCollection> > trackHandles(trackProducers_.size());
331  for ( unsigned int i=0; i<trackProducers_.size(); i++) {
332  trackColls.push_back(0);
333  //edm::Handle<reco::TrackCollection> trackColl;
334  e.getByToken(trackProducers_[i].tk, trackHandles[i]);
335  if (trackHandles[i].isValid()) {
336  trackColls[i]= trackHandles[i].product();
337  } else {
338  edm::LogWarning("TrackListMerger") << "TrackCollection " << trackProducers_[i].tag <<" not found";
339  trackColls[i]=&s_empty;
340  }
341  }
342 
343  unsigned int collsSize =trackColls.size();
344  unsigned int rSize=0;
345  unsigned int trackCollSizes[collsSize];
346  unsigned int trackCollFirsts[collsSize];
347  for (unsigned int i=0; i!=collsSize; i++) {
348  trackCollSizes[i]=trackColls[i]->size();
349  trackCollFirsts[i]=rSize;
350  rSize+=trackCollSizes[i];
351  }
352 
353  statCount.begin(rSize);
354 
355  //
356  // quality cuts first
357  //
358  int i=-1;
359 
360  int selected[rSize];
361  int indexG[rSize];
362  bool trkUpdated[rSize];
363  int trackCollNum[rSize];
364  int trackQuals[rSize];
365  float trackMVAs[rSize];
366  reco::TrackBase::TrackAlgorithm oriAlgo[rSize];
367  std::vector<reco::TrackBase::AlgoMask> algoMask(rSize);
368  for (unsigned int j=0; j<rSize;j++) {
369  indexG[j]=-1; selected[j]=1; trkUpdated[j]=false; trackCollNum[j]=0; trackQuals[j]=0;trackMVAs[j] = -998.0;oriAlgo[j]=reco::TrackBase::undefAlgorithm;
370  }
371 
372  int ngood=0;
373  for (unsigned int j=0; j!= collsSize; j++) {
374  const reco::TrackCollection *tC1=trackColls[j];
375 
376  edm::Handle<edm::ValueMap<int> > trackSelColl;
377  edm::Handle<edm::ValueMap<float> > trackMVAStore;
378  if ( copyMVA_ )
379  e.getByToken(trackProducers_[j].tmva, trackMVAStore);
380  if ( hasSelector_[j]>0 ){
381  e.getByToken(trackProducers_[j].tsel, trackSelColl);
382  }
383 
384  if ( 0<tC1->size() ){
385  unsigned int iC=0;
386  for (reco::TrackCollection::const_iterator track=tC1->begin(); track!=tC1->end(); track++){
387  i++;
388  trackCollNum[i]=j;
389  trackQuals[i]=track->qualityMask();
390  oriAlgo[i]=track->originalAlgo();
391  algoMask[i]=track->algoMask();
392 
393  reco::TrackRef trkRef=reco::TrackRef(trackHandles[j],iC);
394  if ( copyMVA_ )
395  if( (*trackMVAStore).contains(trkRef.id()) ) trackMVAs[i] = (*trackMVAStore)[trkRef];
396  if ( hasSelector_[j]>0 ) {
397  int qual=(*trackSelColl)[trkRef];
398  if ( qual < 0 ) {
399  selected[i]=0;
400  iC++;
401  continue;
402  }else{
403  trackQuals[i]=qual;
404  }
405  }
406  iC++;
407  selected[i]=trackQuals[i]+10;//10 is magic number used throughout...
408  if ((short unsigned)track->ndof() < 1){
409  selected[i]=0;
410  continue;
411  }
412  if (track->normalizedChi2() > maxNormalizedChisq_){
413  selected[i]=0;
414  continue;
415  }
416  if (track->found() < minFound_){
417  selected[i]=0;
418  continue;
419  }
420  if (track->pt() < minPT_){
421  selected[i]=0;
422  continue;
423  }
424  // good!
425  indexG[i] = ngood++;
426  //if ( beVerb) std::cout << "inverb " << track->pt() << " " << selected[i] << std::endl;
427  }//end loop over tracks
428  }//end more than 0 track
429  } // loop over trackcolls
430 
431 
432  statCount.pre(ngood);
433 
434  //cache the id and rechits of valid hits
435  typedef std::pair<unsigned int, const TrackingRecHit*> IHit;
436  std::vector<std::vector<IHit>> rh1(ngood); // "not an array" of vectors!
437  //const TrackingRecHit* fh1[ngood]; // first hit...
439  float score[ngood];
440 
441 
442  for ( unsigned int j=0; j<rSize; j++) {
443  if (selected[j]==0) continue;
444  int i = indexG[j];
445  assert(i>=0);
446  unsigned int collNum=trackCollNum[j];
447  unsigned int trackNum=j-trackCollFirsts[collNum];
448  const reco::Track *track=&((trackColls[collNum])->at(trackNum));
449 
450  algo[i]=track->algo();
451  int validHits=track->numberOfValidHits();
452  int validPixelHits=track->hitPattern().numberOfValidPixelHits();
453  int lostHits=track->numberOfLostHits();
454  score[i] = foundHitBonus_*validPixelHits+foundHitBonus_*validHits - lostHitPenalty_*lostHits - track->chi2();
455 
456 
457  rh1[i].reserve(validHits) ;
458  auto compById = [](IHit const & h1, IHit const & h2) {return h1.first < h2.first;};
459  for (trackingRecHit_iterator it = track->recHitsBegin(); it != track->recHitsEnd(); ++it) {
460  const TrackingRecHit* hit = (*it);
461  unsigned int id = hit->rawId() ;
462  if(hit->geographicalId().subdetId()>2) id &= (~3); // mask mono/stereo in strips...
463  if likely(hit->isValid()) { rh1[i].emplace_back(id,hit); std::push_heap(rh1[i].begin(),rh1[i].end(),compById); }
464  }
465  std::sort_heap(rh1[i].begin(),rh1[i].end(),compById);
466  }
467 
468  //DL here
469  if likely(ngood>1 && collsSize>1)
470  for ( unsigned int ltm=0; ltm<listsToMerge_.size(); ltm++) {
471  int saveSelected[rSize];
472  bool notActive[collsSize];
473  for (unsigned int cn=0;cn!=collsSize;++cn)
474  notActive[cn]= find(listsToMerge_[ltm].begin(),listsToMerge_[ltm].end(),cn)==listsToMerge_[ltm].end();
475 
476  for ( unsigned int i=0; i<rSize; i++) saveSelected[i]=selected[i];
477 
478  //DL protect against 0 tracks?
479  for ( unsigned int i=0; i<rSize-1; i++) {
480  if (selected[i]==0) continue;
481  unsigned int collNum=trackCollNum[i];
482 
483  //check that this track is in one of the lists for this iteration
484  if (notActive[collNum]) continue;
485 
486  int k1 = indexG[i];
487  unsigned int nh1=rh1[k1].size();
488  int qualityMaskT1 = trackQuals[i];
489 
490  int nhit1 = nh1; // validHits[k1];
491  float score1 = score[k1];
492 
493  // start at next collection
494  for ( unsigned int j=i+1; j<rSize; j++) {
495  if (selected[j]==0) continue;
496  unsigned int collNum2=trackCollNum[j];
497  if ( (collNum == collNum2) && indivShareFrac_[collNum] > 0.99) continue;
498  //check that this track is in one of the lists for this iteration
499  if (notActive[collNum2]) continue;
500 
501  int k2 = indexG[j];
502 
503  int newQualityMask = -9; //avoid resetting quality mask if not desired 10+ -9 =1
504  if (promoteQuality_[ltm]) {
505  int maskT1= saveSelected[i]>1? saveSelected[i]-10 : qualityMaskT1;
506  int maskT2= saveSelected[j]>1? saveSelected[j]-10 : trackQuals[j];
507  newQualityMask =(maskT1 | maskT2); // take OR of trackQuality
508  }
509  unsigned int nh2=rh1[k2].size();
510  int nhit2 = nh2;
511 
512 
513  auto share = use_sharesInput_ ?
514  [](const TrackingRecHit* it,const TrackingRecHit* jt, float)->bool { return it->sharesInput(jt,TrackingRecHit::some); } :
515  [](const TrackingRecHit* it,const TrackingRecHit* jt, float eps)->bool {
516  float delta = std::abs ( it->localPosition().x()-jt->localPosition().x() );
517  return (it->geographicalId()==jt->geographicalId())&&(delta<eps);
518  };
519 
520  statCount.start();
521 
522  //loop over rechits
523  int noverlap=0;
524  int firstoverlap=0;
525  // check first hit (should use REAL first hit?)
526  if unlikely(allowFirstHitShare_ && rh1[k1][0].first==rh1[k2][0].first ) {
527  const TrackingRecHit* it = rh1[k1][0].second;
528  const TrackingRecHit* jt = rh1[k2][0].second;
529  if (share(it,jt,epsilon_)) firstoverlap=1;
530  }
531 
532 
533  // exploit sorting
534  unsigned int jh=0;
535  unsigned int ih=0;
536  while (ih!=nh1 && jh!=nh2) {
537  // break if not enough to go...
538  // if ( nprecut-noverlap+firstoverlap > int(nh1-ih)) break;
539  // if ( nprecut-noverlap+firstoverlap > int(nh2-jh)) break;
540  auto const id1 = rh1[k1][ih].first;
541  auto const id2 = rh1[k2][jh].first;
542  if (id1<id2) ++ih;
543  else if (id2<id1) ++jh;
544  else {
545  // in case of split-hit do full conbinatorics
546  auto li=ih; while( (++li)!=nh1 && id1 == rh1[k1][li].first);
547  auto lj=jh; while( (++lj)!=nh2 && id2 == rh1[k2][lj].first);
548  for (auto ii=ih; ii!=li; ++ii)
549  for (auto jj=jh; jj!=lj; ++jj) {
550  const TrackingRecHit* it = rh1[k1][ii].second;
551  const TrackingRecHit* jt = rh1[k2][jj].second;
552  if (share(it,jt,epsilon_)) noverlap++;
553  }
554  jh=lj; ih=li;
555  } // equal ids
556 
557  } //loop over ih & jh
558 
559  bool dupfound = (collNum != collNum2) ? (noverlap-firstoverlap) > (std::min(nhit1,nhit2)-firstoverlap)*shareFrac_ :
560  (noverlap-firstoverlap) > (std::min(nhit1,nhit2)-firstoverlap)*indivShareFrac_[collNum];
561 
562  auto seti = [&](unsigned int ii, unsigned int jj) {
563  selected[jj]=0;
564  selected[ii]=10+newQualityMask; // add 10 to avoid the case where mask = 1
565  trkUpdated[ii]=true;
566  if (trackAlgoPriorityOrder.priority(oriAlgo[jj]) < trackAlgoPriorityOrder.priority(oriAlgo[ii])) oriAlgo[ii] = oriAlgo[jj];
567  algoMask[ii] |= algoMask[jj];
568  algoMask[jj] = algoMask[ii]; // in case we keep discarded
569  };
570 
571  if ( dupfound ) {
572  float score2 = score[k2];
573  constexpr float almostSame = 0.01f; // difference rather than ratio due to possible negative values for score
574  if ( score1 - score2 > almostSame ) {
575  seti(i,j);
576  } else if ( score2 - score1 > almostSame ) {
577  seti(j,i);
578  }else{
579  // If tracks from both iterations are virtually identical, choose the one with the best quality or with lower algo
582  //same quality, pick earlier algo
583  if (trackAlgoPriorityOrder.priority(algo[k1]) <= trackAlgoPriorityOrder.priority(algo[k2])) {
584  seti(i,j);
585  } else {
586  seti(j,i);
587  }
588  } else if ((trackQuals[j] & (1<<reco::TrackBase::loose|1<<reco::TrackBase::tight|1<<reco::TrackBase::highPurity) ) <
590  seti(i,j);
591  }else{
592  seti(j,i);
593  }
594  }//end fi < fj
595  statCount.overlap();
596  /*
597  if (at0[k1]&&at0[k2]) {
598  statCount.dp(dphi);
599  if (dz<1.f) statCount.de(deta);
600  }
601  */
602  }//end got a duplicate
603  else {
604  statCount.noOverlap();
605  }
606  //stop if the ith track is now unselected
607  if (selected[i]==0) break;
608  }//end track2 loop
609  }//end track loop
610  } //end loop over track list sets
611 
612 
613 
614  auto vmMVA = std::make_unique<edm::ValueMap<float>>();
615  edm::ValueMap<float>::Filler fillerMVA(*vmMVA);
616 
617 
618 
619  // special case - if just doing the trkquals
620  if (trkQualMod_) {
621  unsigned int tSize=trackColls[0]->size();
622  auto vm = std::make_unique<edm::ValueMap<int>>();
624 
625  std::vector<int> finalQuals(tSize,-1); //default is unselected
626  for ( unsigned int i=0; i<rSize; i++) {
627  unsigned int tNum=i%tSize;
628 
629  if (selected[i]>1 ) {
630  finalQuals[tNum]=selected[i]-10;
631  if (trkUpdated[i])
632  finalQuals[tNum]=(finalQuals[tNum] | (1<<qualityToSet_));
633  }
634  if ( selected[i]==1 )
635  finalQuals[tNum]=trackQuals[i];
636  }
637 
638  filler.insert(trackHandles[0], finalQuals.begin(),finalQuals.end());
639  filler.fill();
640 
641  e.put(std::move(vm));
642  for (auto & q : finalQuals) q=std::max(q,0);
643  auto quals = std::make_unique<QualityMaskCollection>(finalQuals.begin(),finalQuals.end());
644  e.put(std::move(quals),"QualityMasks");
645 
646  std::vector<float> mvaVec(tSize,-99);
647 
648  for(unsigned int i = 0; i < rSize; i++){
649  unsigned int tNum = i % tSize;
650  mvaVec[tNum] = trackMVAs[tNum];
651  }
652 
653  fillerMVA.insert(trackHandles[0],mvaVec.begin(),mvaVec.end());
654  fillerMVA.fill();
655  if ( copyMVA_) {
656  e.put(std::move(vmMVA),"MVAVals");
657  auto mvas = std::make_unique<MVACollection>(mvaVec.begin(),mvaVec.end());
658  e.put(std::move(mvas),"MVAValues");
659  }
660  return;
661  }
662 
663 
664  //
665  // output selected tracks - if any
666  //
667 
668  std::vector<reco::TrackRef> trackRefs(rSize);
669  std::vector<edm::RefToBase<TrajectorySeed>> seedsRefs(rSize);
670 
671  unsigned int nToWrite=0;
672  for ( unsigned int i=0; i<rSize; i++)
673  if (selected[i]!=0) nToWrite++;
674 
675  std::vector<float> mvaVec;
676 
677  outputTrks = std::make_unique<reco::TrackCollection>();
678  outputTrks->reserve(nToWrite);
680 
681  if (copyExtras_) {
682  outputTrkExtras = std::make_unique<reco::TrackExtraCollection>();
683  outputTrkExtras->reserve(nToWrite);
685  outputTrkHits = std::make_unique<TrackingRecHitCollection>();
686  outputTrkHits->reserve(nToWrite*25);
688  if (makeReKeyedSeeds_){
689  outputSeeds = std::make_unique<TrajectorySeedCollection>();
690  outputSeeds->reserve(nToWrite);
692  }
693  }
694 
695 
696  outputTrajs = std::make_unique<std::vector<Trajectory>>();
697  outputTrajs->reserve(rSize);
698 
699  for ( unsigned int i=0; i<rSize; i++) {
700  if (selected[i]==0) {
701  trackRefs[i]=reco::TrackRef();
702  continue;
703  }
704 
705  unsigned int collNum=trackCollNum[i];
706  unsigned int trackNum=i-trackCollFirsts[collNum];
707  const reco::Track *track=&((trackColls[collNum])->at(trackNum));
708  outputTrks->push_back( reco::Track( *track ) );
709  mvaVec.push_back(trackMVAs[i]);
710  if (selected[i]>1 ) {
711  outputTrks->back().setQualityMask(selected[i]-10);
712  if (trkUpdated[i])
713  outputTrks->back().setQuality(qualityToSet_);
714  }
715  //might duplicate things, but doesnt hurt
716  if ( selected[i]==1 )
717  outputTrks->back().setQualityMask(trackQuals[i]);
718  outputTrks->back().setOriginalAlgorithm(oriAlgo[i]);
719  outputTrks->back().setAlgoMask(algoMask[i]);
720 
721  // if ( beVerb ) std::cout << "selected " << outputTrks->back().pt() << " " << outputTrks->back().qualityMask() << " " << selected[i] << std::endl;
722 
723  //fill the TrackCollection
724  if (copyExtras_) {
725  edm::RefToBase<TrajectorySeed> origSeedRef = track->seedRef();
726  //creating a seed with rekeyed clusters if required
727  if (makeReKeyedSeeds_){
728  bool doRekeyOnThisSeed=false;
729 
730  edm::InputTag clusterRemovalInfos("");
731  //grab on of the hits of the seed
732  if (origSeedRef->nHits()!=0){
733  TrajectorySeed::const_iterator firstHit=origSeedRef->recHits().first;
734  const TrackingRecHit *hit = &*firstHit;
735  if (firstHit->isValid()){
736  edm::ProductID pID=clusterProductB(hit);
737  // the cluster collection either produced a removalInfo or mot
738  //get the clusterremoval info from the provenance: will rekey if this is found
740  edm::Provenance prov=e.getProvenance(pID);
741  clusterRemovalInfos=edm::InputTag(prov.moduleLabel(),
742  prov.productInstanceName(),
743  prov.processName());
744  doRekeyOnThisSeed=e.getByLabel(clusterRemovalInfos,CRIh);
745  }//valid hit
746  }//nhit!=0
747 
748  if (doRekeyOnThisSeed && !(clusterRemovalInfos==edm::InputTag(""))) {
749  ClusterRemovalRefSetter refSetter(e,clusterRemovalInfos);
750  TrajectorySeed::recHitContainer newRecHitContainer;
751  newRecHitContainer.reserve(origSeedRef->nHits());
752  TrajectorySeed::const_iterator iH=origSeedRef->recHits().first;
753  TrajectorySeed::const_iterator iH_end=origSeedRef->recHits().second;
754  for (;iH!=iH_end;++iH){
755  newRecHitContainer.push_back(*iH);
756  refSetter.reKey(&newRecHitContainer.back());
757  }
758  outputSeeds->push_back( TrajectorySeed( origSeedRef->startingState(),
759  newRecHitContainer,
760  origSeedRef->direction()));
761  }
762  //doRekeyOnThisSeed=true
763  else{
764  //just copy the one we had before
765  outputSeeds->push_back( TrajectorySeed(*origSeedRef));
766  }
768  origSeedRef=edm::RefToBase<TrajectorySeed>( pureRef);
769  }//creating a new seed and rekeying it rechit clusters.
770 
771  // Fill TrackExtra collection
772  outputTrkExtras->push_back( reco::TrackExtra(
773  track->outerPosition(), track->outerMomentum(), track->outerOk(),
774  track->innerPosition(), track->innerMomentum(), track->innerOk(),
775  track->outerStateCovariance(), track->outerDetId(),
776  track->innerStateCovariance(), track->innerDetId(),
777  track->seedDirection(), origSeedRef ) );
778  seedsRefs[i]=origSeedRef;
779  outputTrks->back().setExtra( reco::TrackExtraRef( refTrkExtras, outputTrkExtras->size() - 1) );
780  reco::TrackExtra & tx = outputTrkExtras->back();
781  tx.setResiduals(track->residuals());
782 
783  // fill TrackingRecHits
784  unsigned nh1=track->recHitsSize();
785  tx.setHits(refTrkHits,outputTrkHits->size(),nh1);
786  tx.setTrajParams(track->extra()->trajParams(),track->extra()->chi2sX5());
787  assert(tx.trajParams().size()==tx.recHitsSize());
788  for (auto hh = track->recHitsBegin(), eh=track->recHitsEnd(); hh!=eh; ++hh ) {
789  outputTrkHits->push_back( (*hh)->clone() );
790  }
791  }
792  trackRefs[i] = reco::TrackRef(refTrks, outputTrks->size() - 1);
793 
794 
795  }//end faux loop over tracks
796 
797  //Fill the trajectories, etc. for 1st collection
798  refTrajs = e.getRefBeforePut< std::vector<Trajectory> >();
799 
800  outputTTAss = std::make_unique<TrajTrackAssociationCollection>(refTrajs, refTrks);
801 
802  for (unsigned int ti=0; ti<trackColls.size(); ti++) {
805  e.getByToken(trackProducers_[ti].traj, hTraj1);
806  e.getByToken(trackProducers_[ti].tass, hTTAss1);
807 
808  if (hTraj1.failedToGet() || hTTAss1.failedToGet()) continue;
809 
810  for (size_t i = 0, n = hTraj1->size(); i < n; ++i) {
811  edm::Ref< std::vector<Trajectory> > trajRef(hTraj1, i);
813  if (match != hTTAss1->end()) {
814  const edm::Ref<reco::TrackCollection> &trkRef = match->val;
815  uint32_t oldKey = trackCollFirsts[ti]+static_cast<uint32_t>(trkRef.key());
816  if (trackRefs[oldKey].isNonnull()) {
817  outputTrajs->push_back( *trajRef );
818  //if making extras and the seeds at the same time, change the seed ref on the trajectory
820  outputTrajs->back().setSeedRef( seedsRefs[oldKey] );
821  outputTTAss->insert ( edm::Ref< std::vector<Trajectory> >(refTrajs, outputTrajs->size() - 1),
822  trackRefs[oldKey] );
823  }
824  }
825  }
826  }
827 
828  statCount.end(outputTrks->size());
829 
830  edm::ProductID nPID = refTrks.id();
832  fillerMVA.insert(outHandle,mvaVec.begin(),mvaVec.end());
833  fillerMVA.fill();
834 
836  if ( copyMVA_ ) {
837  e.put(std::move(vmMVA),"MVAVals");
838  auto mvas = std::make_unique<MVACollection>(mvaVec.begin(),mvaVec.end());
839  e.put(std::move(mvas),"MVAValues");
840  }
841  if (copyExtras_) {
843  e.put(std::move(outputTrkHits));
844  if (makeReKeyedSeeds_)
846  }
847  e.put(std::move(outputTrajs));
848  e.put(std::move(outputTTAss));
849  return;
850 
851  }//end produce
PropagationDirection direction() const
size
Write out results.
dbl * delta
Definition: mlp_gen.cc:36
const edm::RefToBase< TrajectorySeed > & seedRef() const
Definition: Track.h:213
std::unique_ptr< TrajTrackAssociationCollection > outputTTAss
reference back()
Definition: OwnVector.h:395
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:122
std::vector< bool > promoteQuality_
const TrackExtraRef & extra() const
reference to "extra" object
Definition: Track.h:189
const_iterator end() const
last iterator over the map (read only)
reco::TrackRefProd refTrks
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
edm::RefProd< std::vector< Trajectory > > refTrajs
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
Definition: Track.h:119
void setHits(TrackingRecHitRefProd const &prod, unsigned firstH, unsigned int nH)
const_iterator find(const key_type &k) const
find element with specified reference key
size_type size() const
Definition: OwnVector.h:264
reco::TrackBase::TrackQuality qualityToSet_
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
bool innerOk() const
return true if the innermost hit is valid
Definition: Track.h:50
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
Definition: TrackBase.h:821
std::unique_ptr< TrajectorySeedCollection > outputSeeds
key_type key() const
Accessor for product key.
Definition: Ref.h:264
std::string const & processName() const
Definition: Provenance.h:52
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
const math::XYZPoint & outerPosition() const
position of the outermost hit
Definition: Track.h:65
edm::RefProd< TrajectorySeedCollection > refTrajSeeds
std::unique_ptr< std::vector< Trajectory > > outputTrajs
#define constexpr
ProductID id() const
Accessor for product ID.
Definition: Ref.h:258
TrackAlgorithm
track algorithm
Definition: TrackBase.h:99
TrackingRecHitRefProd refTrkHits
std::vector< double > indivShareFrac_
const math::XYZPoint & innerPosition() const
position of the innermost hit
Definition: Track.h:55
TrackAlgorithm algo() const
Definition: TrackBase.h:492
#define unlikely(x)
#define likely(x)
void push_back(D *&d)
Definition: OwnVector.h:290
std::unique_ptr< TrackingRecHitCollection > outputTrkHits
std::vector< TrajectorySeed > TrajectorySeedCollection
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:544
recHitContainer::const_iterator const_iterator
unsigned int recHitsSize() const
number of RecHits
TrajParams const & trajParams() const
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition: Track.h:75
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
Definition: Track.h:94
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
unsigned short numberOfValidHits() const
number of valid hits found
Definition: TrackBase.h:815
#define end
Definition: vmac.h:37
T min(T a, T b)
Definition: MathUtil.h:58
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Definition: Track.h:104
virtual LocalPoint localPosition() const =0
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:416
RefProd< PROD > getRefBeforePut()
Definition: Event.h:134
std::unique_ptr< reco::TrackExtraCollection > outputTrkExtras
std::vector< int > hasSelector_
ii
Definition: cuy.py:588
ProductID id() const
Accessor for product ID.
Definition: RefProd.h:137
bool failedToGet() const
Definition: HandleBase.h:78
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
Definition: TrackExtraFwd.h:11
double maxNormalizedChisq_
PTrajectoryStateOnDet const & startingState() const
const math::XYZVector & outerMomentum() const
momentum vector at the outermost hit position
Definition: Track.h:70
bool outerOk() const
return true if the outermost hit is valid
Definition: Track.h:45
const PropagationDirection & seedDirection() const
direction of how the hits were sorted in the original seed
Definition: Track.h:204
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:445
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:20
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
Definition: Track.h:80
range recHits() const
bool isValid() const
std::string const & moduleLabel() const
Definition: Provenance.h:50
unsigned int nHits() const
#define begin
Definition: vmac.h:30
unsigned int minFound_
std::vector< TkEDGetTokenss > trackProducers_
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
Definition: Track.h:60
const TrackResiduals & residuals() const
get the residuals
Definition: Track.h:218
int numberOfValidPixelHits() const
Definition: HitPattern.h:838
std::unique_ptr< reco::TrackCollection > outputTrks
std::array< unsigned int, reco::TrackBase::algoSize > trackAlgoPriorityOrder
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
DetId geographicalId() const
std::string const & productInstanceName() const
Definition: Provenance.h:53
std::string priorityName_
std::vector< std::vector< int > > listsToMerge_
Provenance getProvenance(BranchID const &theID) const
Definition: Event.cc:81
T x() const
Definition: PV3DBase.h:62
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
Definition: Track.h:99
def move(src, dest)
Definition: eostools.py:510
id_type rawId() const
void reserve(size_t)
Definition: OwnVector.h:284
void setTrajParams(TrajParams tmps, Chi2sFive chi2s)
reco::TrackExtraRefProd refTrkExtras
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
Definition: Track.h:109
void setResiduals(const TrackResiduals &r)
set the residuals
Definition: TrackExtra.h:174

Member Data Documentation

bool TrackListMerger::allowFirstHitShare_
private

Definition at line 104 of file TrackListMerger.cc.

bool TrackListMerger::copyExtras_
private

Definition at line 60 of file TrackListMerger.cc.

bool TrackListMerger::copyMVA_
private

Definition at line 102 of file TrackListMerger.cc.

float TrackListMerger::epsilon_
private

Definition at line 93 of file TrackListMerger.cc.

float TrackListMerger::foundHitBonus_
private

Definition at line 95 of file TrackListMerger.cc.

std::vector<int> TrackListMerger::hasSelector_
private

Definition at line 101 of file TrackListMerger.cc.

std::vector<double> TrackListMerger::indivShareFrac_
private

Definition at line 97 of file TrackListMerger.cc.

std::vector< std::vector< int> > TrackListMerger::listsToMerge_
private

Definition at line 99 of file TrackListMerger.cc.

float TrackListMerger::lostHitPenalty_
private

Definition at line 96 of file TrackListMerger.cc.

bool TrackListMerger::makeReKeyedSeeds_
private

Definition at line 61 of file TrackListMerger.cc.

double TrackListMerger::maxNormalizedChisq_
private

Definition at line 90 of file TrackListMerger.cc.

unsigned int TrackListMerger::minFound_
private

Definition at line 92 of file TrackListMerger.cc.

double TrackListMerger::minPT_
private

Definition at line 91 of file TrackListMerger.cc.

std::unique_ptr<TrajectorySeedCollection > TrackListMerger::outputSeeds
private

Definition at line 52 of file TrackListMerger.cc.

std::unique_ptr<std::vector<Trajectory> > TrackListMerger::outputTrajs
private

Definition at line 50 of file TrackListMerger.cc.

std::unique_ptr<reco::TrackExtraCollection> TrackListMerger::outputTrkExtras
private

Definition at line 48 of file TrackListMerger.cc.

std::unique_ptr<TrackingRecHitCollection> TrackListMerger::outputTrkHits
private

Definition at line 49 of file TrackListMerger.cc.

std::unique_ptr<reco::TrackCollection> TrackListMerger::outputTrks
private

Definition at line 47 of file TrackListMerger.cc.

std::unique_ptr<TrajTrackAssociationCollection > TrackListMerger::outputTTAss
private

Definition at line 51 of file TrackListMerger.cc.

std::string TrackListMerger::priorityName_
private

Definition at line 88 of file TrackListMerger.cc.

std::vector<bool> TrackListMerger::promoteQuality_
private

Definition at line 100 of file TrackListMerger.cc.

reco::TrackBase::TrackQuality TrackListMerger::qualityToSet_
private

Definition at line 105 of file TrackListMerger.cc.

edm::RefProd< std::vector<Trajectory> > TrackListMerger::refTrajs
private

Definition at line 57 of file TrackListMerger.cc.

edm::RefProd< TrajectorySeedCollection > TrackListMerger::refTrajSeeds
private

Definition at line 58 of file TrackListMerger.cc.

reco::TrackExtraRefProd TrackListMerger::refTrkExtras
private

Definition at line 55 of file TrackListMerger.cc.

TrackingRecHitRefProd TrackListMerger::refTrkHits
private

Definition at line 56 of file TrackListMerger.cc.

reco::TrackRefProd TrackListMerger::refTrks
private

Definition at line 54 of file TrackListMerger.cc.

float TrackListMerger::shareFrac_
private

Definition at line 94 of file TrackListMerger.cc.

std::vector<TkEDGetTokenss> TrackListMerger::trackProducers_
private

Definition at line 86 of file TrackListMerger.cc.

bool TrackListMerger::trkQualMod_
private

Definition at line 107 of file TrackListMerger.cc.

bool TrackListMerger::use_sharesInput_
private

Definition at line 106 of file TrackListMerger.cc.