44 pt_ =
book1D(b,
"pt_",
"pt_;p_{T} (GeV)", ptPS.
n, ptPS.
m, ptPS.
M);
45 eta_ =
book1D(b,
"eta_",
"eta_;#eta", etaPS.
n, etaPS.
m, etaPS.
M);
46 phi_ =
book1D(b,
"phi_",
"phi_;#phi", phiPS.
n, phiPS.
m, phiPS.
M);
65 if (etaPS.getParameter<
bool>(
"switchOn")) {
66 eta_ =
book1D(b,
"eta_",
"#eta;#eta", etaPS.getParameter<int32_t>(
"nBin"),
67 etaPS.getParameter<
double>(
"xMin"),
68 etaPS.getParameter<
double>(
"xMax"));
70 if (phiPS.getParameter<
bool>(
"switchOn")) {
71 phi_ =
book1D(b,
"phi_",
"#phi;#phi", phiPS.getParameter<int32_t>(
"nBin"),
72 phiPS.getParameter<
double>(
"xMin"),
73 phiPS.getParameter<
double>(
"xMax"));
75 if (chPS.getParameter<
bool>(
"switchOn")) {
76 charge_ =
book1D(b,
"charge_",
"charge;charge",chPS.getParameter<int32_t>(
"nBin"),
77 chPS.getParameter<
double>(
"xMin"),
78 chPS.getParameter<
double>(
"xMax"));
T getParameter(std::string const &) const
TH1F * book1D(DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child ...
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
CandidateBenchmark(Mode mode)
TH1F * pdgId_
COLIN add this histo.
virtual double eta() const =0
momentum pseudorapidity
virtual double pt() const =0
transverse momentum
virtual int charge() const =0
electric charge
void setup(DQMStore::IBooker &b)
book histograms
~CandidateBenchmark() override
bool isInRange(float pt, float eta, float phi) const
virtual double phi() const =0
momentum azimuthal angle
ParameterSet const & parameterSet(Provenance const &provenance)