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);
68 if (etaPS.getParameter<
bool>(
"switchOn")) {
69 eta_ =
book1D(
"eta_",
"#eta;#eta", etaPS.getParameter<int32_t>(
"nBin"),
70 etaPS.getParameter<
double>(
"xMin"),
71 etaPS.getParameter<
double>(
"xMax"));
73 if (phiPS.getParameter<
bool>(
"switchOn")) {
74 phi_ =
book1D(
"phi_",
"#phi;#phi", phiPS.getParameter<int32_t>(
"nBin"),
75 phiPS.getParameter<
double>(
"xMin"),
76 phiPS.getParameter<
double>(
"xMax"));
78 if (chPS.getParameter<
bool>(
"switchOn")) {
79 charge_ =
book1D(
"charge_",
"charge;charge",chPS.getParameter<int32_t>(
"nBin"),
80 chPS.getParameter<
double>(
"xMin"),
81 chPS.getParameter<
double>(
"xMax"));
T getParameter(std::string const &) const
virtual float eta() const =0
momentum pseudorapidity
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
void setup()
book histograms
virtual float phi() const =0
momentum azimuthal angle
CandidateBenchmark(Mode mode)
TH1F * pdgId_
COLIN add this histo.
virtual ~CandidateBenchmark()
virtual float pt() const =0
transverse momentum
virtual int charge() const =0
electric charge
bool isInRange(float pt, float eta, float phi) const
ParameterSet const & parameterSet(Provenance const &provenance)
TH1F * book1D(const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root.