#include <Histograms.h>
Public Member Functions | |
virtual void | Clear () |
virtual void | Fill (const CLHEP::HepLorentzVector &momentum, const double &weight=1.) |
virtual void | Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.) |
HPartVSEta (const TString &name, const double &minMass=0., const double &maxMass=100., const double &maxPt=100.) | |
virtual void | Write () |
~HPartVSEta () | |
Public Attributes | |
TProfile * | hCurvVSEta_prof_ |
TH2F * | hMassVSEta_ |
TProfile * | hMassVSEta_prof_ |
TH2F * | hPtVSEta_ |
TProfile * | hPtVSEta_prof_ |
Definition at line 525 of file Histograms.h.
HPartVSEta::HPartVSEta | ( | const TString & | name, |
const double & | minMass = 0. , |
||
const double & | maxMass = 100. , |
||
const double & | maxPt = 100. |
||
) | [inline] |
Definition at line 528 of file Histograms.h.
References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, hPtVSEta_prof_, mergeVDriftHistosByStation::name, and Histograms::name_.
{ name_ = name; hPtVSEta_ = new TH2F( name+"_PtVSEta", "transverse momentum vs pseudorapidity", 32, -3.2, 3.2, 200, 0, maxPt ); hMassVSEta_ = new TH2F( name+"_MassVSEta", "mass vs pseudorapidity", 32, -3.2, 3.2, 40, minMass, maxMass ); // TD profile histograms // --------------------- hPtVSEta_prof_ = new TProfile( name+"_PtVSEta_prof", "mass vs pseudorapidity", 32, -3.2, 3.2, 0, maxPt ); hMassVSEta_prof_ = new TProfile( name+"_MassVSEta_prof", "mass vs pseudorapidity", 32, -3.2, 3.2, minMass, maxMass ); hCurvVSEta_prof_ = new TProfile( name+"_CurvVSEta_prof", "curvature vs pseudorapidity", 32, -3.2, 3.2, 0, 1. ); }
HPartVSEta::~HPartVSEta | ( | ) | [inline] |
Definition at line 545 of file Histograms.h.
References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.
{ delete hPtVSEta_; delete hMassVSEta_; delete hPtVSEta_prof_; delete hMassVSEta_prof_; delete hCurvVSEta_prof_; }
virtual void HPartVSEta::Clear | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 579 of file Histograms.h.
References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.
{ hPtVSEta_->Clear(); hPtVSEta_prof_->Clear(); hCurvVSEta_prof_->Clear(); hMassVSEta_->Clear(); hMassVSEta_prof_->Clear(); }
virtual void HPartVSEta::Fill | ( | const CLHEP::HepLorentzVector & | momentum, |
const double & | weight = 1. |
||
) | [inline, virtual] |
Reimplemented from Histograms.
Definition at line 557 of file Histograms.h.
References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, hPtVSEta_prof_, and histoStyle::weight.
{ hPtVSEta_->Fill(momentum.eta(),momentum.perp(), weight); hPtVSEta_prof_->Fill(momentum.eta(),momentum.perp(), weight); hMassVSEta_->Fill(momentum.eta(),momentum.m(), weight); hMassVSEta_prof_->Fill(momentum.eta(),momentum.m(), weight); hCurvVSEta_prof_->Fill(momentum.eta(),1/momentum.perp(), weight); }
virtual void HPartVSEta::Fill | ( | const reco::Particle::LorentzVector & | p4, |
const double & | weight = 1. |
||
) | [inline, virtual] |
Reimplemented from Histograms.
Definition at line 553 of file Histograms.h.
References histoStyle::weight.
virtual void HPartVSEta::Write | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 566 of file Histograms.h.
References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.
{ hPtVSEta_->Write(); hPtVSEta_prof_->Write(); hCurvVSEta_prof_->Write(); hMassVSEta_->Write(); hMassVSEta_prof_->Write(); // std::vector<TGraphErrors*> graphs( (MuScleFitUtils::fitMass(hMassVSEta_)) ); // for (std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++) { // (*graph)->Write(); // } }
TProfile* HPartVSEta::hCurvVSEta_prof_ |
Definition at line 594 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSEta(), Write(), and ~HPartVSEta().
TH2F* HPartVSEta::hMassVSEta_ |
Definition at line 591 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSEta(), Write(), and ~HPartVSEta().
TProfile* HPartVSEta::hMassVSEta_prof_ |
Definition at line 592 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSEta(), Write(), and ~HPartVSEta().
TH2F* HPartVSEta::hPtVSEta_ |
Definition at line 590 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSEta(), Write(), and ~HPartVSEta().
TProfile* HPartVSEta::hPtVSEta_prof_ |
Definition at line 593 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSEta(), Write(), and ~HPartVSEta().