CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
MultiTrackValidatorBase Class Reference

#include <MultiTrackValidatorBase.h>

Inheritance diagram for MultiTrackValidatorBase:
MultiTrackValidator MultiTrackValidatorGenPs

Public Member Functions

 MultiTrackValidatorBase (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC, bool isSeed=false)
 Constructor. More...
 
virtual ~MultiTrackValidatorBase ()(false)
 Destructor. More...
 

Protected Attributes

std::vector< edm::InputTagassociators
 
edm::EDGetTokenT< reco::BeamSpotbsSrc
 
bool ignoremissingtkcollection_
 
std::vector< edm::InputTaglabel
 
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > label_pileupinfo
 
edm::EDGetTokenT< TrackingParticleCollectionlabel_tp_effic
 
edm::EDGetTokenT< TrackingParticleRefVectorlabel_tp_effic_refvector
 
edm::EDGetTokenT< TrackingParticleCollectionlabel_tp_fake
 
edm::EDGetTokenT< TrackingParticleRefVectorlabel_tp_fake_refvector
 
edm::EDGetTokenT< TrackingVertexCollectionlabel_tv
 
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > labelToken
 
std::vector< edm::EDGetTokenT< edm::View< TrajectorySeed > > > labelTokenSeed
 
edm::EDGetTokenT< edm::ValueMap< reco::DeDxData > > m_dEdx1Tag
 
edm::EDGetTokenT< edm::ValueMap< reco::DeDxData > > m_dEdx2Tag
 
std::string parametersDefiner
 
std::vector< edm::EDGetTokenT< std::vector< PSimHit > > > simHitTokens_
 

Detailed Description

Base class for analyzers that produces histrograms to validate Track Reconstruction performances

Author
cerati

Definition at line 41 of file MultiTrackValidatorBase.h.

Constructor & Destructor Documentation

MultiTrackValidatorBase::MultiTrackValidatorBase ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  iC,
bool  isSeed = false 
)

Constructor.

Definition at line 3 of file MultiTrackValidatorBase.cc.

References associators, bsSrc, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), ignoremissingtkcollection_, label, label_pileupinfo, label_tp_effic, label_tp_effic_refvector, label_tp_fake, label_tp_fake_refvector, labelToken, labelTokenSeed, parametersDefiner, simHitTokens_, AlCaHLTBitMon_QueryRunRegistry::string, and GlobalPosition_Frontier_DevDB_cff::tag.

3  {
4  //dbe_ = edm::Service<DQMStore>().operator->();
5 
6  associators = pset.getUntrackedParameter< std::vector<edm::InputTag> >("associators");
7 
8  const edm::InputTag& label_tp_effic_tag = pset.getParameter< edm::InputTag >("label_tp_effic");
9  const edm::InputTag& label_tp_fake_tag = pset.getParameter< edm::InputTag >("label_tp_fake");
10 
11  if(pset.getParameter<bool>("label_tp_effic_refvector")) {
13  }
14  else {
15  label_tp_effic = iC.consumes<TrackingParticleCollection>(label_tp_effic_tag);
16  }
17  if(pset.getParameter<bool>("label_tp_fake_refvector")) {
19  }
20  else {
21  label_tp_fake = iC.consumes<TrackingParticleCollection>(label_tp_fake_tag);
22  }
23  label_pileupinfo = iC.consumes<std::vector<PileupSummaryInfo> >(pset.getParameter< edm::InputTag >("label_pileupinfo"));
24  for(const auto& tag: pset.getParameter<std::vector<edm::InputTag>>("sim")) {
25  simHitTokens_.push_back(iC.consumes<std::vector<PSimHit>>(tag));
26  }
27 
28  parametersDefiner = pset.getParameter<std::string>("parametersDefiner");
29 
30 
31  label = pset.getParameter< std::vector<edm::InputTag> >("label");
32  if (isSeed) {
33  for (auto& itag : label) labelTokenSeed.push_back(iC.consumes<edm::View<TrajectorySeed> >(itag));
34  } else {
35  for (auto& itag : label) labelToken.push_back(iC.consumes<edm::View<reco::Track> >(itag));
36  }
37  bsSrc = iC.consumes<reco::BeamSpot>(pset.getParameter<edm::InputTag>( "beamSpot" ));
38 
39  ignoremissingtkcollection_ = pset.getUntrackedParameter<bool>("ignoremissingtrackcollection",false);
40 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< edm::InputTag > associators
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > label_pileupinfo
std::vector< TrackingParticle > TrackingParticleCollection
edm::EDGetTokenT< TrackingParticleCollection > label_tp_effic
edm::EDGetTokenT< TrackingParticleRefVector > label_tp_fake_refvector
edm::EDGetTokenT< TrackingParticleRefVector > label_tp_effic_refvector
edm::EDGetTokenT< reco::BeamSpot > bsSrc
std::vector< edm::InputTag > label
std::vector< edm::EDGetTokenT< edm::View< TrajectorySeed > > > labelTokenSeed
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > labelToken
std::vector< edm::EDGetTokenT< std::vector< PSimHit > > > simHitTokens_
edm::EDGetTokenT< TrackingParticleCollection > label_tp_fake
virtual MultiTrackValidatorBase::~MultiTrackValidatorBase ( )
inlinevirtual

Destructor.

Definition at line 48 of file MultiTrackValidatorBase.h.

48 { }

Member Data Documentation

std::vector<edm::InputTag> MultiTrackValidatorBase::associators
protected
edm::EDGetTokenT<reco::BeamSpot> MultiTrackValidatorBase::bsSrc
protected
bool MultiTrackValidatorBase::ignoremissingtkcollection_
protected
std::vector<edm::InputTag> MultiTrackValidatorBase::label
protected
edm::EDGetTokenT<std::vector<PileupSummaryInfo> > MultiTrackValidatorBase::label_pileupinfo
protected
edm::EDGetTokenT<TrackingParticleCollection> MultiTrackValidatorBase::label_tp_effic
protected
edm::EDGetTokenT<TrackingParticleRefVector> MultiTrackValidatorBase::label_tp_effic_refvector
protected
edm::EDGetTokenT<TrackingParticleCollection> MultiTrackValidatorBase::label_tp_fake
protected
edm::EDGetTokenT<TrackingParticleRefVector> MultiTrackValidatorBase::label_tp_fake_refvector
protected
edm::EDGetTokenT<TrackingVertexCollection> MultiTrackValidatorBase::label_tv
protected
std::vector<edm::EDGetTokenT<edm::View<reco::Track> > > MultiTrackValidatorBase::labelToken
protected
std::vector<edm::EDGetTokenT<edm::View<TrajectorySeed> > > MultiTrackValidatorBase::labelTokenSeed
protected

Definition at line 71 of file MultiTrackValidatorBase.h.

Referenced by MultiTrackValidatorBase().

edm::EDGetTokenT<edm::ValueMap<reco::DeDxData> > MultiTrackValidatorBase::m_dEdx1Tag
protected
edm::EDGetTokenT<edm::ValueMap<reco::DeDxData> > MultiTrackValidatorBase::m_dEdx2Tag
protected
std::string MultiTrackValidatorBase::parametersDefiner
protected
std::vector<edm::EDGetTokenT<std::vector<PSimHit> > > MultiTrackValidatorBase::simHitTokens_
protected

Definition at line 65 of file MultiTrackValidatorBase.h.

Referenced by MultiTrackValidatorBase().