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