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 
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")) {
12  label_tp_effic_refvector = iC.consumes<TrackingParticleRefVector>(label_tp_effic_tag);
13  }
14  else {
15  label_tp_effic = iC.consumes<TrackingParticleCollection>(label_tp_effic_tag);
16  }
17  if(pset.getParameter<bool>("label_tp_fake_refvector")) {
18  label_tp_fake_refvector = iC.consumes<TrackingParticleRefVector>(label_tp_fake_tag);
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 }
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
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