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)
virtual int pdgId() const
PDG identifier.
void analyze(const edm::Event &, const edm::EventSetup &)
#define DEFINE_FWK_MODULE(type)
virtual int status() const
status word
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)
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
MonitorElement * hEtaPosEtaNeg_
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) ...
virtual int charge() const
electric charge
Abs< T >::type abs(const T &t)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * hPtPosEtaPos_
virtual ~AcceptanceHistoProducer()
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
edm::InputTag srcGenParticles_
void setCurrentFolder(const std::string &fullpath)