44 pt_ =
book1D(
"pt_",
"pt_;p_{T} (GeV)", ptPS.
n, ptPS.
m, ptPS.
M);
46 eta_ =
book1D(
"eta_",
"eta_;#eta", etaPS.
n, etaPS.
m, etaPS.
M);
48 phi_ =
book1D(
"phi_",
"phi_;#phi", phiPS.
n, phiPS.
m, phiPS.
M);
69 if (etaPS.getParameter<
bool>(
"switchOn")) {
70 eta_ =
book1D(
"eta_",
"eta_;#eta", etaPS.getParameter<int32_t>(
"nBin"),
71 etaPS.getParameter<
double>(
"xMin"),
72 etaPS.getParameter<
double>(
"xMax"));
74 if (phiPS.getParameter<
bool>(
"switchOn")) {
75 phi_ =
book1D(
"phi_",
"phi_;#phi", phiPS.getParameter<int32_t>(
"nBin"),
76 phiPS.getParameter<
double>(
"xMin"),
77 phiPS.getParameter<
double>(
"xMax"));
79 if (chPS.getParameter<
bool>(
"switchOn")) {
80 charge_ =
book1D(
"charge_",
"charge_;charge",chPS.getParameter<int32_t>(
"nBin"),
81 chPS.getParameter<
double>(
"xMin"),
82 chPS.getParameter<
double>(
"xMax"));
T getParameter(std::string const &) const
virtual double pt() const =0
transverse momentum
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
void setup()
book histograms
CandidateBenchmark(Mode mode)
TH1F * pdgId_
COLIN add this histo.
virtual ~CandidateBenchmark()
virtual int charge() const =0
electric charge
bool isInRange(float pt, float eta, float phi) const
TH1F * book1D(const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root.
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity