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