Go to the documentation of this file. 1 #ifndef MuonPFAnalyzer_H
2 #define MuonPFAnalyzer_H
32 typedef std::pair<const reco::Muon *, const reco::GenParticle *>
RecoGenPair;
58 inline float fDeltaPhi(
float phi1,
float phi2);
80 std::map<std::string, std::map<std::string, MonitorElement *> >
thePlots;
edm::EDGetTokenT< reco::GenParticleCollection > theGenLabel_
void fillInRange(MonitorElement *plot, int nAxis, double x, double y=0)
std::pair< const reco::Muon *, const reco::GenParticle * > RecoGenPair
float fDeltaPhi(float phi1, float phi2)
void recoToGenMatch(edm::Handle< reco::MuonCollection > &reco, edm::Handle< reco::GenParticleCollection > &gen)
const reco::Vertex getPrimaryVertex(edm::Handle< reco::VertexCollection > &vertex, edm::Handle< reco::BeamSpot > &beamSpot)
std::vector< std::string > theMuonKinds
MuonPFAnalyzer(const edm::ParameterSet &)
Constructor.
std::map< std::string, std::map< std::string, MonitorElement * > > thePlots
RecoGenCollection theRecoGen
MonitorElement * getPlot(const std::string &group, const std::string &type)
void bookHistos(DQMStore::IBooker &, const std::string &)
int muonTrackType(const reco::Muon *muon, bool usePF)
std::vector< RecoGenPair > RecoGenCollection
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_
~MuonPFAnalyzer() override
Destructor.
float combRelIso(const reco::Muon *muon)
edm::EDGetTokenT< reco::MuonCollection > theRecoLabel_
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
void analyze(const edm::Event &, const edm::EventSetup &) override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void setCodeLabels(MonitorElement *plot, int nAxis)