|
|
Go to the documentation of this file. 1 #ifndef MuonTrackValidator_h
2 #define MuonTrackValidator_h
42 tpset.getParameter<
double>(
"ptMax"),
43 tpset.getParameter<
double>(
"minRapidity"),
44 tpset.getParameter<
double>(
"maxRapidity"),
45 tpset.getParameter<
double>(
"tip"),
46 tpset.getParameter<
double>(
"lip"),
47 tpset.getParameter<
int>(
"minHit"),
48 tpset.getParameter<
bool>(
"signalOnly"),
49 tpset.getParameter<
bool>(
"intimeOnly"),
50 tpset.getParameter<
bool>(
"chargedOnly"),
51 tpset.getParameter<
bool>(
"stableOnly"),
52 tpset.getParameter<std::vector<int> >(
"pdgId"));
55 tpset.getParameter<
double>(
"minRapidity"),
56 tpset.getParameter<
double>(
"maxRapidity"),
57 tpset.getParameter<
double>(
"tip"),
58 tpset.getParameter<
double>(
"lip"),
59 tpset.getParameter<
int>(
"minHit"),
60 tpset.getParameter<
bool>(
"chargedOnly"),
61 tpset.getParameter<std::vector<int> >(
"pdgId"));
75 for (
unsigned int www = 0; www <
label.size(); www++) {
81 _simHitTpMapTag = mayConsume<SimHitTPAssociationProducer::SimHitTPAssociationList>(
101 edm::LogVerbatim(
"MuonTrackValidator") <<
"\n usetracker = TRUE : Tracker SimHits WILL be counted";
103 edm::LogVerbatim(
"MuonTrackValidator") <<
"\n usetracker = FALSE : Tracker SimHits WILL NOT be counted";
105 edm::LogVerbatim(
"MuonTrackValidator") <<
" usemuon = TRUE : Muon SimHits WILL be counted";
107 edm::LogVerbatim(
"MuonTrackValidator") <<
" usemuon = FALSE : Muon SimHits WILL NOT be counted" << std::endl;
110 for (
unsigned int www = 0; www <
label.size(); www++) {
115 if (recoTracksLabel ==
"generalTracks" || recoTracksLabel ==
"probeTracks" ||
116 recoTracksLabel ==
"displacedTracks" || recoTracksLabel ==
"extractGemMuons" ||
117 recoTracksLabel ==
"extractMe0Muons" || recoTracksLabel ==
"ctfWithMaterialTracksP5LHCNavigation" ||
118 recoTracksLabel ==
"ctfWithMaterialTracksP5" ||
119 recoTracksLabel ==
"hltIterL3OIMuonTrackSelectionHighPurity" || recoTracksLabel ==
"hltIterL3MuonMerged" ||
120 recoTracksLabel ==
"hltIterL3MuonAndMuonFromL1Merged") {
123 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usemuon == true"
124 <<
"\n ---> resetting to usemuon == false ";
129 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usetracker == false"
130 <<
"\n ---> resetting to usetracker == true ";
136 else if (recoTracksLabel ==
"seedsOfSTAmuons" || recoTracksLabel ==
"standAloneMuons" ||
137 recoTracksLabel ==
"seedsOfDisplacedSTAmuons" || recoTracksLabel ==
"displacedStandAloneMuons" ||
138 recoTracksLabel ==
"refittedStandAloneMuons" || recoTracksLabel ==
"cosmicMuons" ||
139 recoTracksLabel ==
"cosmicMuons1Leg" || recoTracksLabel ==
"hltL2Muons") {
142 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usetracker == true"
143 <<
"\n ---> resetting to usetracker == false ";
148 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
label[www] <<
"\n with usemuon == false"
149 <<
"\n ---> resetting to usemuon == true ";
std::vector< edm::InputTag > label
edm::EDGetTokenT< reco::RecoToSimCollection > recoToSimCollection_Token
edm::EDGetTokenT< TrackingParticleCollection > tp_Token
void bookHistograms(DQMEDAnalyzer::DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
~MuonTrackValidator() override
Destructor.
const edm::ESGetToken< CosmicParametersDefinerForTP, TrackAssociatorRecord > cosmictpDefinerEsToken
Log< level::Warning, false > LogWarning
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupinfo_Token
edm::EDGetTokenT< SimHitTPAssociationProducer::SimHitTPAssociationList > _simHitTpMapTag
edm::EDGetTokenT< TrackingParticleRefVector > tp_refvector_Token
SingleObjectSelector< TrackingParticleCollection, ::TrackingParticleSelector > TrackingParticleSelector
edm::EDGetTokenT< reco::BeamSpot > bsSrc_Token
edm::InputTag associatormap
ObjectSelector< CosmicTrackingParticleSelector > CosmicTrackingParticleSelector
CosmicTrackingParticleSelector cosmictpSelector
std::vector< std::string > associators
MuonTrackValidator(const edm::ParameterSet &pset)
Constructor.
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > track_Collection_Token
std::string parametersDefiner
edm::EDGetTokenT< reco::SimToRecoCollection > simToRecoCollection_Token
edm::InputTag label_pileupinfo
const edm::ESGetToken< ParametersDefinerForTP, TrackAssociatorRecord > tpDefinerEsToken
Log< level::Info, true > LogVerbatim
bool BiDirectional_RecoToSim_association
TrackingParticleSelector tpSelector
void analyze(const edm::Event &, const edm::EventSetup &) override