1 #ifndef MuonTrackValidator_h 2 #define MuonTrackValidator_h 35 tpset.getParameter<
double>(
"ptMax"),
36 tpset.getParameter<
double>(
"minRapidity"),
37 tpset.getParameter<
double>(
"maxRapidity"),
38 tpset.getParameter<
double>(
"tip"),
39 tpset.getParameter<
double>(
"lip"),
40 tpset.getParameter<
int>(
"minHit"),
41 tpset.getParameter<
bool>(
"signalOnly"),
42 tpset.getParameter<
bool>(
"intimeOnly"),
43 tpset.getParameter<
bool>(
"chargedOnly"),
44 tpset.getParameter<
bool>(
"stableOnly"),
45 tpset.getParameter<std::vector<int> >(
"pdgId"));
48 tpset.getParameter<
double>(
"minRapidity"),
49 tpset.getParameter<
double>(
"maxRapidity"),
50 tpset.getParameter<
double>(
"tip"),
51 tpset.getParameter<
double>(
"lip"),
52 tpset.getParameter<
int>(
"minHit"),
53 tpset.getParameter<
bool>(
"chargedOnly"),
54 tpset.getParameter<std::vector<int> >(
"pdgId"));
68 for (
unsigned int www = 0; www <
label.size(); www++) {
82 _simHitTpMapTag = mayConsume<SimHitTPAssociationProducer::SimHitTPAssociationList>(
102 edm::LogVerbatim(
"MuonTrackValidator") <<
"\n usetracker = TRUE : Tracker SimHits WILL be counted";
104 edm::LogVerbatim(
"MuonTrackValidator") <<
"\n usetracker = FALSE : Tracker SimHits WILL NOT be counted";
106 edm::LogVerbatim(
"MuonTrackValidator") <<
" usemuon = TRUE : Muon SimHits WILL be counted";
108 edm::LogVerbatim(
"MuonTrackValidator") <<
" usemuon = FALSE : Muon SimHits WILL NOT be counted" << std::endl;
111 for (
unsigned int www = 0; www <
label.size(); www++) {
116 if (recoTracksLabel ==
"generalTracks" || recoTracksLabel ==
"probeTracks" ||
117 recoTracksLabel ==
"displacedTracks" || recoTracksLabel ==
"extractGemMuons" ||
118 recoTracksLabel ==
"extractMe0Muons" || recoTracksLabel ==
"ctfWithMaterialTracksP5LHCNavigation" ||
119 recoTracksLabel ==
"ctfWithMaterialTracksP5" ||
120 recoTracksLabel ==
"hltIterL3OIMuonTrackSelectionHighPurity" || recoTracksLabel ==
"hltIterL3MuonMerged" ||
121 recoTracksLabel ==
"hltIterL3MuonAndMuonFromL1Merged") {
124 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usemuon == true" 125 <<
"\n ---> resetting to usemuon == false ";
130 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usetracker == false" 131 <<
"\n ---> resetting to usetracker == true ";
137 else if (recoTracksLabel ==
"seedsOfSTAmuons" || recoTracksLabel ==
"standAloneMuons" ||
138 recoTracksLabel ==
"seedsOfDisplacedSTAmuons" || recoTracksLabel ==
"displacedStandAloneMuons" ||
139 recoTracksLabel ==
"refittedStandAloneMuons" || recoTracksLabel ==
"cosmicMuons" ||
140 recoTracksLabel ==
"cosmicMuons1Leg" || recoTracksLabel ==
"hltL2Muons") {
143 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usetracker == true" 144 <<
"\n ---> resetting to usetracker == false ";
149 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usemuon == false" 150 <<
"\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::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
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