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< std::string > associators
 
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 out
 
std::string parametersDefiner
 
std::string sim
 
bool skipHistoFit
 
edm::ESHandle< MagneticFieldtheMF
 

Detailed Description

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

Author
cerati

Definition at line 42 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, label_tv, labelToken, labelTokenSeed, out, parametersDefiner, skipHistoFit, and AlCaHLTBitMon_QueryRunRegistry::string.

3  {
4  //dbe_ = edm::Service<DQMStore>().operator->();
5 
6  associators = pset.getParameter< std::vector<std::string> >("associators");
10  label_pileupinfo = iC.consumes<std::vector<PileupSummaryInfo> >(pset.getParameter< edm::InputTag >("label_pileupinfo"));
11  sim = pset.getParameter<std::string>("sim");
12  parametersDefiner = pset.getParameter<std::string>("parametersDefiner");
13 
14 
15  label = pset.getParameter< std::vector<edm::InputTag> >("label");
16  if (isSeed) {
17  for (auto itag : label) labelTokenSeed.push_back(iC.consumes<edm::View<TrajectorySeed> >(itag));
18  } else {
19  for (auto itag : label) labelToken.push_back(iC.consumes<edm::View<reco::Track> >(itag));
20  }
21  bsSrc = iC.consumes<reco::BeamSpot>(pset.getParameter<edm::InputTag>( "beamSpot" ));
22 
23  out = pset.getParameter<std::string>("outputFile");
24 
25  ignoremissingtkcollection_ = pset.getUntrackedParameter<bool>("ignoremissingtrackcollection",false);
26  skipHistoFit = pset.getUntrackedParameter<bool>("skipHistoFit",false);
27 
28 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > label_pileupinfo
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
std::vector< TrackingParticle > TrackingParticleCollection
edm::EDGetTokenT< TrackingParticleCollection > label_tp_effic
edm::EDGetTokenT< TrackingVertexCollection > label_tv
Definition: sim.h:19
edm::EDGetTokenT< reco::BeamSpot > bsSrc
std::vector< edm::InputTag > label
std::vector< edm::EDGetTokenT< edm::View< TrajectorySeed > > > labelTokenSeed
std::vector< TrackingVertex > TrackingVertexCollection
std::vector< std::string > associators
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > labelToken
edm::EDGetTokenT< TrackingParticleCollection > label_tp_fake
virtual MultiTrackValidatorBase::~MultiTrackValidatorBase ( )
inlinevirtual

Destructor.

Definition at line 49 of file MultiTrackValidatorBase.h.

49 { }

Member Data Documentation

std::vector<std::string> 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::out
protected

Definition at line 73 of file MultiTrackValidatorBase.h.

Referenced by MultiTrackValidatorBase().

std::string MultiTrackValidatorBase::parametersDefiner
protected
std::string MultiTrackValidatorBase::sim
protected

Definition at line 64 of file MultiTrackValidatorBase.h.

bool MultiTrackValidatorBase::skipHistoFit
protected
edm::ESHandle<MagneticField> MultiTrackValidatorBase::theMF
protected