10 dqmDir_(cfg.getParameter<std::
string>(
"dqmDir")),
11 srcGenParticles_(cfg.getParameter<edm::InputTag>(
"srcGenParticles")),
12 hPtPosPtNeg_(
NULL), hEtaPosEtaNeg_(
NULL), hPtPosEtaPos_(
NULL), hPtNegEtaNeg_(
NULL)
25 hPtPosPtNeg_ =
dbe_->
book2DD(
"PtPosPtNeg",
"Positive muon transverse momentum vs. negative muon transverse momentum;p_{T}^{+};p_{T}^{-}", 500, 0.0, 500.0, 500, 0.0, 500.0);
26 hEtaPosEtaNeg_ =
dbe_->
book2DD(
"EtaPosEtaNeg",
"Positive muon pseudorapdity vs. negative muon pseudorapidity;#eta^{+};#eta^{-}", 500, -2.5, 2.5, 500, -2.5, 2.5);
27 hPtPosEtaPos_ =
dbe_->
book2DD(
"PtPosEtaPos",
"Positive muon transverse momentum vs. positive muon pseudorapidity;p_{T}^{+};#eta^{+}", 500, 0.0, 500.0, 500, -2.5, 2.5);
28 hPtNegEtaNeg_ =
dbe_->
book2DD(
"PtNegEtaNeg",
"Negative muon transverse momentum vs. negative muon pseudorapidity;p_{T}^{-};#eta^{-}", 500, 0.0, 500.0, 500, -2.5, 2.5);
53 for(
unsigned int i = 0;
i < genParticles->size(); ++
i)
67 if(genPosMuonME && genNegMuonME)
80 { genPosMuon = daughter;
break; }
95 { genNegMuon = daughter;
break; }
105 if(genPosMuon->
status() == 1 && genNegMuon->
status() == 1)
void analyze(const edm::Event &, const edm::EventSetup &)
virtual int pdgId() const GCC11_FINAL
PDG identifier.
#define DEFINE_FWK_MODULE(type)
MonitorElement * book2DD(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D double histogram.
AcceptanceHistoProducer(const edm::ParameterSet &cfg)
MonitorElement * hEtaPosEtaNeg_
virtual int status() const GCC11_FINAL
status word
MonitorElement * hPtNegEtaNeg_
MonitorElement * hPtPosPtNeg_
virtual size_t numberOfDaughters() const
number of daughters
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
Abs< T >::type abs(const T &t)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
MonitorElement * hPtPosEtaPos_
virtual int charge() const GCC11_FINAL
electric charge
virtual ~AcceptanceHistoProducer()
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
edm::InputTag srcGenParticles_
virtual float pt() const GCC11_FINAL
transverse momentum
void setCurrentFolder(const std::string &fullpath)