#include <Histograms.h>
Inherits Histograms.
|
void | Clear () override |
|
void | Fill (const CLHEP::HepLorentzVector &momentum, const int charge, const double &weight=1.) override |
|
void | Fill (const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.) override |
|
void | Fill (unsigned int number) override |
|
| HParticle (const TString &name, const double &minMass=0., const double &maxMass=200., const double &maxPt=100.) |
|
| HParticle (const TString &name, TFile *file) |
|
| HParticle (TFile *outputFile, const TString &name, const double &minMass=0., const double &maxMass=200., const double &maxPt=100.) |
| Constructor that puts the histograms inside a TDirectory. More...
|
|
void | Write () override |
|
| ~HParticle () override |
|
Definition at line 244 of file Histograms.h.
◆ HParticle() [1/3]
HParticle::HParticle |
( |
const TString & |
name, |
|
|
const double & |
minMass = 0. , |
|
|
const double & |
maxMass = 200. , |
|
|
const double & |
maxPt = 100. |
|
) |
| |
|
inline |
Definition at line 246 of file Histograms.h.
249 hPt_(
new TH1F(
name +
"_Pt",
"transverse momentum", 100, 0,
maxPt)),
250 hPtVsEta_(
new TH2F(
name +
"_PtVsEta",
"transverse momentum vs #eta", 100, 0,
maxPt, 100, -3.0, 3.0)),
252 hCurvVsEtaNeg_(
new TProfile(
name +
"_CurvVsEtaNeg",
"q/pT vs #eta neg.", 64, -3.2, 3.2, -1., 0.)),
253 hCurvVsEtaPos_(
new TProfile(
name +
"_CurvVsEtaPos",
"q/pT vs #eta pos.", 64, -3.2, 3.2, 0., 1.)),
254 hCurvVsPhiNeg_(
new TProfile(
name +
"_CurvVsPhiNeg",
"q/pT vs #phi neg.", 32, -3.2, 3.2, -1., 0.)),
255 hCurvVsPhiPos_(
new TProfile(
name +
"_CurvVsPhiPos",
"q/pT vs #phi pos.", 32, -3.2, 3.2, 0., 1.)),
257 hPtVsPhiNeg_(
new TProfile(
name +
"_PtVsPhiNeg",
"pT vs #phi neg.", 32, -3.2, 3.2, 0., 100)),
258 hPtVsPhiPos_(
new TProfile(
name +
"_PtVsPhiPos",
"pT vs #phi pos.", 32, -3.2, 3.2, 0., 100)),
260 hEta_(
new TH1F(
name +
"_Eta",
"pseudorapidity", 64, -3.2, 3.2)),
261 hPhi_(
new TH1F(
name +
"_Phi",
"phi angle", 64, -3.2, 3.2)),
263 hNumber_(
new TH1F(
name +
"_Number",
"number", 20, -0.5, 19.5)) {}
◆ HParticle() [2/3]
HParticle::HParticle |
( |
TFile * |
outputFile, |
|
|
const TString & |
name, |
|
|
const double & |
minMass = 0. , |
|
|
const double & |
maxMass = 200. , |
|
|
const double & |
maxPt = 100. |
|
) |
| |
|
inline |
Constructor that puts the histograms inside a TDirectory.
Definition at line 266 of file Histograms.h.
273 hPt_ =
new TH1F(
name +
"_Pt",
"transverse momentum", 100, 0,
maxPt);
274 hPtVsEta_ =
new TH2F(
name +
"_PtVsEta",
"transverse momentum vs #eta", 100, 0,
maxPt, 100, -3.0, 3.0);
276 hPtVsEta_ =
new TH2F(
name +
"_PtVsEta",
"transverse momentum vs #eta", 100, 0,
maxPt, 100, -3.0, 3.0);
278 hCurvVsEtaNeg_ =
new TProfile(
name +
"_CurvVsEtaNeg",
"q/pT vs #eta neg.", 100, -3.0, 3.0, -1., 0.);
279 hCurvVsEtaPos_ =
new TProfile(
name +
"_CurvVsEtaPos",
"q/pT vs #eta pos.", 100, -3.0, 3.0, 0., 1.);
280 hCurvVsPhiNeg_ =
new TProfile(
name +
"_CurvVsPhiNeg",
"q/pT vs #phi neg.", 32, -3.2, 3.2, -1., 0.);
281 hCurvVsPhiPos_ =
new TProfile(
name +
"_CurvVsPhiPos",
"q/pT vs #phi pos.", 32, -3.2, 3.2, 0., 1.);
283 hPtVsPhiNeg_ =
new TProfile(
name +
"_PtVsPhiNeg",
"pT vs #phi neg.", 32, -3.2, 3.2, 0., 100);
284 hPtVsPhiPos_ =
new TProfile(
name +
"_PtVsPhiPos",
"pT vs #phi pos.", 32, -3.2, 3.2, 0., 100);
288 hEta_ =
new TH1F(
name +
"_Eta",
"pseudorapidity", 64, -3.2, 3.2);
289 hPhi_ =
new TH1F(
name +
"_Phi",
"phi angle", 64, -3.2, 3.2);
291 hNumber_ =
new TH1F(
name +
"_Number",
"number", 20, -0.5, 19.5);
References hCurvVsEtaNeg_, hCurvVsEtaPos_, hCurvVsPhiNeg_, hCurvVsPhiPos_, hEta_, hMass_, hNumber_, hPhi_, hPt_, hPtVsEta_, hPtVsPhiNeg_, hPtVsPhiPos_, B2GTnPMonitor_cfi::maxMass, L1TrackerEtMissProducer_cfi::maxPt, B2GTnPMonitor_cfi::minMass, and Skims_PA_cff::name.
◆ HParticle() [3/3]
HParticle::HParticle |
( |
const TString & |
name, |
|
|
TFile * |
file |
|
) |
| |
|
inline |
◆ ~HParticle()
HParticle::~HParticle |
( |
| ) |
|
|
inlineoverride |
Definition at line 313 of file Histograms.h.
References hCurvVsEtaNeg_, hCurvVsEtaPos_, hCurvVsPhiNeg_, hCurvVsPhiPos_, hEta_, hMass_, hNumber_, hPhi_, hPt_, hPtVsEta_, hPtVsPhiNeg_, and hPtVsPhiPos_.
◆ Clear()
void HParticle::Clear |
( |
| ) |
|
|
inlineoverride |
Definition at line 384 of file Histograms.h.
References hCurvVsEtaNeg_, hCurvVsEtaPos_, hCurvVsPhiNeg_, hCurvVsPhiPos_, hEta_, hMass_, hNumber_, hPhi_, hPt_, hPtVsEta_, hPtVsPhiNeg_, and hPtVsPhiPos_.
◆ Fill() [1/3]
void HParticle::Fill |
( |
const CLHEP::HepLorentzVector & |
momentum, |
|
|
const int |
charge, |
|
|
const double & |
weight = 1. |
|
) |
| |
|
inlineoverride |
Definition at line 336 of file Histograms.h.
References ALCARECOTkAlJpsiMuMu_cff::charge, hCurvVsEtaNeg_, hCurvVsEtaPos_, hCurvVsPhiNeg_, hCurvVsPhiPos_, hEta_, hMass_, hPhi_, hPt_, hPtVsEta_, hPtVsPhiNeg_, hPtVsPhiPos_, and mps_merge::weight.
◆ Fill() [2/3]
◆ Fill() [3/3]
void HParticle::Fill |
( |
unsigned int |
number | ) |
|
|
inlineoverride |
◆ Write()
void HParticle::Write |
( |
| ) |
|
|
inlineoverride |
Definition at line 363 of file Histograms.h.
364 if (histoDir_ !=
nullptr)
References hCurvVsEtaNeg_, hCurvVsEtaPos_, hCurvVsPhiNeg_, hCurvVsPhiPos_, hEta_, hMass_, hNumber_, hPhi_, hPt_, hPtVsEta_, hPtVsPhiNeg_, and hPtVsPhiPos_.
◆ hCurvVsEtaNeg_
TProfile* HParticle::hCurvVsEtaNeg_ |
|
protected |
◆ hCurvVsEtaPos_
TProfile* HParticle::hCurvVsEtaPos_ |
|
protected |
◆ hCurvVsPhiNeg_
TProfile* HParticle::hCurvVsPhiNeg_ |
|
protected |
◆ hCurvVsPhiPos_
TProfile* HParticle::hCurvVsPhiPos_ |
|
protected |
◆ hEta_
◆ hMass_
◆ hNumber_
TH1F* HParticle::hNumber_ |
|
protected |
◆ hPhi_
◆ hPt_
◆ hPtVsEta_
TH2F* HParticle::hPtVsEta_ |
|
protected |
◆ hPtVsPhiNeg_
TProfile* HParticle::hPtVsPhiNeg_ |
|
protected |
◆ hPtVsPhiPos_
TProfile* HParticle::hPtVsPhiPos_ |
|
protected |
TProfile * hCurvVsPhiNeg_
TProfile * hCurvVsPhiPos_
void Fill(const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.) override
TProfile * hCurvVsEtaPos_
TProfile * hCurvVsEtaNeg_