#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.) |
HPartVSPt (const TString &name) | |
virtual void | Write () |
~HPartVSPt () | |
Public Attributes | |
TH2F * | hMassVSPt_ |
TProfile * | hMassVSPt_prof_ |
Definition at line 640 of file Histograms.h.
HPartVSPt::HPartVSPt | ( | const TString & | name | ) | [inline] |
Definition at line 643 of file Histograms.h.
References hMassVSPt_, hMassVSPt_prof_, mergeVDriftHistosByStation::name, and Histograms::name_.
{ name_ = name; hMassVSPt_ = new TH2F( name+"_MassVSPt", "mass vs transverse momentum", 12, -6, 6, 40, 70, 110 ); // TD profile histograms hMassVSPt_prof_ = new TProfile( name+"_MassVSPt_prof", "mass vs transverse momentum", 12, -3, 3, 86, 116 ); }
HPartVSPt::~HPartVSPt | ( | ) | [inline] |
Definition at line 652 of file Histograms.h.
References hMassVSPt_, and hMassVSPt_prof_.
{ delete hMassVSPt_; delete hMassVSPt_prof_; }
virtual void HPartVSPt::Clear | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 676 of file Histograms.h.
References hMassVSPt_, and hMassVSPt_prof_.
{ hMassVSPt_->Clear(); hMassVSPt_prof_->Clear(); }
virtual void HPartVSPt::Fill | ( | const CLHEP::HepLorentzVector & | momentum, |
const double & | weight = 1. |
||
) | [inline, virtual] |
Reimplemented from Histograms.
Definition at line 661 of file Histograms.h.
References hMassVSPt_, hMassVSPt_prof_, and CommonMethods::weight().
{ hMassVSPt_->Fill(momentum.eta(),momentum.m(), weight); hMassVSPt_prof_->Fill(momentum.eta(),momentum.m(), weight); }
virtual void HPartVSPt::Fill | ( | const reco::Particle::LorentzVector & | p4, |
const double & | weight = 1. |
||
) | [inline, virtual] |
Reimplemented from Histograms.
Definition at line 657 of file Histograms.h.
References CommonMethods::weight().
virtual void HPartVSPt::Write | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 666 of file Histograms.h.
References hMassVSPt_, and hMassVSPt_prof_.
{ hMassVSPt_->Write(); hMassVSPt_prof_->Write(); // std::vector<TGraphErrors*> graphs( (MuScleFitUtils::fitMass(hMassVSPt_)) ); // for(std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++){ // (*graph)->Write(); // } }
TH2F* HPartVSPt::hMassVSPt_ |
Definition at line 682 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSPt(), Write(), and ~HPartVSPt().
TProfile* HPartVSPt::hMassVSPt_prof_ |
Definition at line 683 of file Histograms.h.
Referenced by Clear(), Fill(), HPartVSPt(), Write(), and ~HPartVSPt().