1 #ifndef MuonTrackValidator_h 2 #define MuonTrackValidator_h 28 tpset.getParameter<
double>(
"ptMax"),
29 tpset.getParameter<
double>(
"minRapidity"),
30 tpset.getParameter<
double>(
"maxRapidity"),
31 tpset.getParameter<
double>(
"tip"),
32 tpset.getParameter<
double>(
"lip"),
33 tpset.getParameter<
int>(
"minHit"),
34 tpset.getParameter<
bool>(
"signalOnly"),
35 tpset.getParameter<
bool>(
"intimeOnly"),
36 tpset.getParameter<
bool>(
"chargedOnly"),
37 tpset.getParameter<
bool>(
"stableOnly"),
38 tpset.getParameter<std::vector<int> >(
"pdgId"));
41 tpset.getParameter<
double>(
"minRapidity"),
42 tpset.getParameter<
double>(
"maxRapidity"),
43 tpset.getParameter<
double>(
"tip"),
44 tpset.getParameter<
double>(
"lip"),
45 tpset.getParameter<
int>(
"minHit"),
46 tpset.getParameter<
bool>(
"chargedOnly"),
47 tpset.getParameter<std::vector<int> >(
"pdgId"));
59 for (
unsigned int www=0;www<
label.size();www++){
68 if (!UseAssociators) {
83 <<
"\n usetracker = TRUE : Tracker SimHits WILL be counted";
85 <<
"\n usetracker = FALSE : Tracker SimHits WILL NOT be counted";
87 <<
" usemuon = TRUE : Muon SimHits WILL be counted";
89 <<
" usemuon = FALSE : Muon SimHits WILL NOT be counted"<<std::endl;
92 for (
unsigned int www=0;www<
label.size();www++) {
97 if (recoTracksLabel==
"generalTracks" ||
98 (recoTracksLabel.find(
"cutsRecoTracks") != std::string::npos) ||
99 recoTracksLabel==
"ctfWithMaterialTracksP5LHCNavigation" ||
100 recoTracksLabel==
"hltL3TkTracksFromL2" ||
101 (recoTracksLabel==
"hltL3Muons" && recoTracksInstance==
"L2Seeded"))
105 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
label[www]
106 <<
"\n with usemuon == true"<<
"\n ---> please change to usemuon == false ";
110 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
label[www]
111 <<
"\n with usetracker == false"<<
"\n ---> please change to usetracker == true ";
116 else if (recoTracksLabel==
"standAloneMuons" ||
117 recoTracksLabel==
"standAloneSETMuons" ||
118 recoTracksLabel==
"cosmicMuons" ||
119 recoTracksLabel==
"hltL2Muons")
123 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
label[www]
124 <<
"\n with usetracker == true"<<
"\n ---> please change to usetracker == false ";
128 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
label[www]
129 <<
"\n with usemuon == false"<<
"\n ---> please change to usemuon == true ";
T getParameter(std::string const &) const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Method called at the end of the event loop.
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > track_Collection_Token
std::string dump(unsigned int indent=0) const
edm::InputTag label_pileupinfo
edm::EDGetTokenT< SimHitTPAssociationProducer::SimHitTPAssociationList > _simHitTpMapTag
SingleObjectSelector< TrackingParticleCollection,::TrackingParticleSelector > TrackingParticleSelector
edm::InputTag label_tp_fake
CosmicTrackingParticleSelector cosmictpSelector
edm::EDGetTokenT< TrackingParticleCollection > tp_fake_Token
std::vector< edm::InputTag > label
~MuonTrackValidator() override
Destructor.
MuonTrackValidator(const edm::ParameterSet &pset)
Constructor.
ObjectSelector< CosmicTrackingParticleSelector > CosmicTrackingParticleSelector
edm::InputTag label_tp_effic
edm::EDGetTokenT< reco::RecoToSimCollection > recoToSimCollection_Token
edm::EDGetTokenT< reco::SimToRecoCollection > simToRecoCollection_Token
TrackingParticleSelector tpSelector
edm::InputTag associatormap
void analyze(const edm::Event &, const edm::EventSetup &) override
Method called before the event loop.
std::vector< std::string > associators
bool BiDirectional_RecoToSim_association
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupinfo_Token
edm::EDGetTokenT< TrackingParticleCollection > tp_effic_Token
edm::EDGetTokenT< reco::BeamSpot > bsSrc_Token