1 #ifndef MuonTrackValidator_h
2 #define MuonTrackValidator_h
36 tpset.getParameter<
double>(
"ptMax"),
37 tpset.getParameter<
double>(
"minRapidity"),
38 tpset.getParameter<
double>(
"maxRapidity"),
39 tpset.getParameter<
double>(
"tip"),
40 tpset.getParameter<
double>(
"lip"),
41 tpset.getParameter<
int>(
"minHit"),
42 tpset.getParameter<
bool>(
"signalOnly"),
43 tpset.getParameter<
bool>(
"intimeOnly"),
44 tpset.getParameter<
bool>(
"chargedOnly"),
45 tpset.getParameter<
bool>(
"stableOnly"),
46 tpset.getParameter<std::vector<int> >(
"pdgId"));
49 tpset.getParameter<
double>(
"minRapidity"),
50 tpset.getParameter<
double>(
"maxRapidity"),
51 tpset.getParameter<
double>(
"tip"),
52 tpset.getParameter<
double>(
"lip"),
53 tpset.getParameter<
int>(
"minHit"),
54 tpset.getParameter<
bool>(
"chargedOnly"),
55 tpset.getParameter<std::vector<int> >(
"pdgId"));
69 for (
unsigned int www = 0; www <
label.size(); www++) {
83 _simHitTpMapTag = mayConsume<SimHitTPAssociationProducer::SimHitTPAssociationList>(
87 if (!UseAssociators) {
97 consumes<reco::TrackToTrackingParticleAssociator>(
edm::InputTag(associator));
103 edm::LogVerbatim(
"MuonTrackValidator") <<
"\n usetracker = TRUE : Tracker SimHits WILL be counted";
105 edm::LogVerbatim(
"MuonTrackValidator") <<
"\n usetracker = FALSE : Tracker SimHits WILL NOT be counted";
107 edm::LogVerbatim(
"MuonTrackValidator") <<
" usemuon = TRUE : Muon SimHits WILL be counted";
109 edm::LogVerbatim(
"MuonTrackValidator") <<
" usemuon = FALSE : Muon SimHits WILL NOT be counted" << std::endl;
112 for (
unsigned int www = 0; www <
label.size(); www++) {
117 if (recoTracksLabel ==
"generalTracks" || recoTracksLabel ==
"probeTracks" ||
118 recoTracksLabel ==
"displacedTracks" || recoTracksLabel ==
"extractGemMuons" ||
119 recoTracksLabel ==
"extractMe0Muons" || recoTracksLabel ==
"ctfWithMaterialTracksP5LHCNavigation" ||
120 recoTracksLabel ==
"ctfWithMaterialTracksP5" ||
121 recoTracksLabel ==
"hltIterL3OIMuonTrackSelectionHighPurity" || recoTracksLabel ==
"hltIterL3MuonMerged" ||
122 recoTracksLabel ==
"hltIterL3MuonAndMuonFromL1Merged") {
125 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usemuon == true"
126 <<
"\n ---> resetting to usemuon == false ";
131 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usetracker == false"
132 <<
"\n ---> resetting to usetracker == true ";
138 else if (recoTracksLabel ==
"seedsOfSTAmuons" || recoTracksLabel ==
"standAloneMuons" ||
139 recoTracksLabel ==
"seedsOfDisplacedSTAmuons" || recoTracksLabel ==
"displacedStandAloneMuons" ||
140 recoTracksLabel ==
"refittedStandAloneMuons" || recoTracksLabel ==
"cosmicMuons" ||
141 recoTracksLabel ==
"cosmicMuons1Leg" || recoTracksLabel ==
"hltL2Muons") {
144 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usetracker == true"
145 <<
"\n ---> resetting to usetracker == false ";
150 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usemuon == false"
151 <<
"\n ---> resetting to usemuon == true ";
Log< level::Info, true > LogVerbatim
edm::EDGetTokenT< TrackingParticleRefVector > tp_refvector_Token
std::unique_ptr< CosmicParametersDefinerForTP > cosmicParametersDefinerTP_
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > track_Collection_Token
std::string dump(unsigned int indent=0) const
std::unique_ptr< ParametersDefinerForTP > lhcParametersDefinerTP_
std::string parametersDefiner
edm::InputTag label_pileupinfo
edm::EDGetTokenT< SimHitTPAssociationProducer::SimHitTPAssociationList > _simHitTpMapTag
CosmicTrackingParticleSelector cosmictpSelector
std::vector< edm::InputTag > label
~MuonTrackValidator() override
Destructor.
MuonTrackValidator(const edm::ParameterSet &pset)
Constructor.
ObjectSelector< CosmicTrackingParticleSelector > CosmicTrackingParticleSelector
edm::EDGetTokenT< reco::RecoToSimCollection > recoToSimCollection_Token
edm::EDGetTokenT< TrackingParticleCollection > tp_Token
edm::EDGetTokenT< reco::SimToRecoCollection > simToRecoCollection_Token
T getParameter(std::string const &) const
TrackingParticleSelector tpSelector
void bookHistograms(DQMEDAnalyzer::DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::InputTag associatormap
void analyze(const edm::Event &, const edm::EventSetup &) override
Log< level::Warning, false > LogWarning
std::vector< std::string > associators
bool BiDirectional_RecoToSim_association
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupinfo_Token
SingleObjectSelector< TrackingParticleCollection,::TrackingParticleSelector > TrackingParticleSelector
edm::EDGetTokenT< reco::BeamSpot > bsSrc_Token