CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MultiTrackValidatorBase.cc
Go to the documentation of this file.
2 
4  //dbe_ = edm::Service<DQMStore>().operator->();
5 
6  associators = pset.getUntrackedParameter< std::vector<edm::InputTag> >("associators");
7  label_tp_effic = iC.consumes<TrackingParticleCollection>(pset.getParameter< edm::InputTag >("label_tp_effic"));
8  label_tp_fake = iC.consumes<TrackingParticleCollection>(pset.getParameter< edm::InputTag >("label_tp_fake"));
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 }
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
MultiTrackValidatorBase(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC, bool isSeed=false)
Constructor.
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > labelToken
std::vector< edm::EDGetTokenT< std::vector< PSimHit > > > simHitTokens_
edm::EDGetTokenT< TrackingParticleCollection > label_tp_fake