38 pt_ =
book1D(b,
"pt_",
"pt_;p_{T} (GeV)", ptPS.
n, ptPS.
m, ptPS.
M);
39 eta_ =
book1D(b,
"eta_",
"eta_;#eta", etaPS.
n, etaPS.
m, etaPS.
M);
40 phi_ =
book1D(b,
"phi_",
"phi_;#phi", phiPS.
n, phiPS.
m, phiPS.
M);
41 charge_ =
book1D(b,
"charge_",
"charge_;charge", 3, -1.5, 1.5);
62 if (etaPS.getParameter<
bool>(
"switchOn")) {
66 etaPS.getParameter<int32_t>(
"nBin"),
67 etaPS.getParameter<
double>(
"xMin"),
68 etaPS.getParameter<
double>(
"xMax"));
70 if (phiPS.getParameter<
bool>(
"switchOn")) {
74 phiPS.getParameter<int32_t>(
"nBin"),
75 phiPS.getParameter<
double>(
"xMin"),
76 phiPS.getParameter<
double>(
"xMax"));
78 if (chPS.getParameter<
bool>(
"switchOn")) {
82 chPS.getParameter<int32_t>(
"nBin"),
83 chPS.getParameter<
double>(
"xMin"),
84 chPS.getParameter<
double>(
"xMax"));
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 ...
virtual double pt() const =0
transverse momentum
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
CandidateBenchmark(Mode mode)
TH1F * pdgId_
COLIN add this histo.
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
virtual int charge() const =0
electric charge
T getParameter(std::string const &) const
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
virtual double eta() const =0
momentum pseudorapidity