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