#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 242 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 244 of file Histograms.h.
247 hPt_(
new TH1F(
name +
"_Pt",
"transverse momentum", 100, 0,
maxPt)),
248 hPtVsEta_(
new TH2F(
name +
"_PtVsEta",
"transverse momentum vs #eta", 100, 0,
maxPt, 100, -3.0, 3.0)),
250 hCurvVsEtaNeg_(
new TProfile(
name +
"_CurvVsEtaNeg",
"q/pT vs #eta neg.", 64, -3.2, 3.2, -1., 0.)),
251 hCurvVsEtaPos_(
new TProfile(
name +
"_CurvVsEtaPos",
"q/pT vs #eta pos.", 64, -3.2, 3.2, 0., 1.)),
252 hCurvVsPhiNeg_(
new TProfile(
name +
"_CurvVsPhiNeg",
"q/pT vs #phi neg.", 32, -3.2, 3.2, -1., 0.)),
253 hCurvVsPhiPos_(
new TProfile(
name +
"_CurvVsPhiPos",
"q/pT vs #phi pos.", 32, -3.2, 3.2, 0., 1.)),
255 hPtVsPhiNeg_(
new TProfile(
name +
"_PtVsPhiNeg",
"pT vs #phi neg.", 32, -3.2, 3.2, 0., 100)),
256 hPtVsPhiPos_(
new TProfile(
name +
"_PtVsPhiPos",
"pT vs #phi pos.", 32, -3.2, 3.2, 0., 100)),
258 hEta_(
new TH1F(
name +
"_Eta",
"pseudorapidity", 64, -3.2, 3.2)),
259 hPhi_(
new TH1F(
name +
"_Phi",
"phi angle", 64, -3.2, 3.2)),
261 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 264 of file Histograms.h.
271 hPt_ =
new TH1F(
name +
"_Pt",
"transverse momentum", 100, 0,
maxPt);
272 hPtVsEta_ =
new TH2F(
name +
"_PtVsEta",
"transverse momentum vs #eta", 100, 0,
maxPt, 100, -3.0, 3.0);
274 hPtVsEta_ =
new TH2F(
name +
"_PtVsEta",
"transverse momentum vs #eta", 100, 0,
maxPt, 100, -3.0, 3.0);
276 hCurvVsEtaNeg_ =
new TProfile(
name +
"_CurvVsEtaNeg",
"q/pT vs #eta neg.", 100, -3.0, 3.0, -1., 0.);
277 hCurvVsEtaPos_ =
new TProfile(
name +
"_CurvVsEtaPos",
"q/pT vs #eta pos.", 100, -3.0, 3.0, 0., 1.);
278 hCurvVsPhiNeg_ =
new TProfile(
name +
"_CurvVsPhiNeg",
"q/pT vs #phi neg.", 32, -3.2, 3.2, -1., 0.);
279 hCurvVsPhiPos_ =
new TProfile(
name +
"_CurvVsPhiPos",
"q/pT vs #phi pos.", 32, -3.2, 3.2, 0., 1.);
281 hPtVsPhiNeg_ =
new TProfile(
name +
"_PtVsPhiNeg",
"pT vs #phi neg.", 32, -3.2, 3.2, 0., 100);
282 hPtVsPhiPos_ =
new TProfile(
name +
"_PtVsPhiPos",
"pT vs #phi pos.", 32, -3.2, 3.2, 0., 100);
286 hEta_ =
new TH1F(
name +
"_Eta",
"pseudorapidity", 64, -3.2, 3.2);
287 hPhi_ =
new TH1F(
name +
"_Phi",
"phi angle", 64, -3.2, 3.2);
289 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, MuonErrorMatrixAnalyzer_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 311 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 382 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 334 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 361 of file Histograms.h.
362 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_