CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
MultiTrackValidatorBase Class Reference

#include <MultiTrackValidatorBase.h>

Inheritance diagram for MultiTrackValidatorBase:
MultiTrackValidator TrackerSeedValidator MultiTrackValidatorGenPs

Public Member Functions

 MultiTrackValidatorBase (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC, bool isSeed=false)
 Constructor. More...
 
virtual ~MultiTrackValidatorBase ()
 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
< TrackingParticleCollection
label_tp_effic
 
edm::EDGetTokenT
< TrackingParticleCollection
label_tp_fake
 
edm::EDGetTokenT
< TrackingVertexCollection
label_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_fake, 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");
9  label_pileupinfo = iC.consumes<std::vector<PileupSummaryInfo> >(pset.getParameter< edm::InputTag >("label_pileupinfo"));
10  for(const auto& tag: pset.getParameter<std::vector<edm::InputTag>>("sim")) {
11  simHitTokens_.push_back(iC.consumes<std::vector<PSimHit>>(tag));
12  }
13 
14  parametersDefiner = pset.getParameter<std::string>("parametersDefiner");
15 
16 
17  label = pset.getParameter< std::vector<edm::InputTag> >("label");
18  if (isSeed) {
19  for (auto& itag : label) labelTokenSeed.push_back(iC.consumes<edm::View<TrajectorySeed> >(itag));
20  } else {
21  for (auto& itag : label) labelToken.push_back(iC.consumes<edm::View<reco::Track> >(itag));
22  }
23  bsSrc = iC.consumes<reco::BeamSpot>(pset.getParameter<edm::InputTag>( "beamSpot" ));
24 
25  ignoremissingtkcollection_ = pset.getUntrackedParameter<bool>("ignoremissingtrackcollection",false);
26 }
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< 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<TrackingParticleCollection> MultiTrackValidatorBase::label_tp_fake
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
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