CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HPartVSPt Class Reference

#include <Histograms.h>

Inherits Histograms.

Public Member Functions

void Clear () override
 
void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.) override
 
void Fill (const CLHEP::HepLorentzVector &momentum, const double &weight=1.) override
 
 HPartVSPt (const TString &name)
 
void Write () override
 
 ~HPartVSPt () override
 

Public Attributes

TH2F * hMassVSPt_
 
TProfile * hMassVSPt_prof_
 

Detailed Description

Definition at line 744 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSPt::HPartVSPt ( const TString &  name)
inline

Definition at line 747 of file Histograms.h.

References dataset::name.

747  {
748  name_ = name;
749  hMassVSPt_ = new TH2F( name+"_MassVSPt", "mass vs transverse momentum",
750  12, -6, 6, 40, 70, 110 );
751  // TD profile histograms
752  hMassVSPt_prof_ = new TProfile( name+"_MassVSPt_prof", "mass vs transverse momentum",
753  12, -3, 3, 86, 116 );
754  }
TProfile * hMassVSPt_prof_
Definition: Histograms.h:787
TH2F * hMassVSPt_
Definition: Histograms.h:786
HPartVSPt::~HPartVSPt ( )
inlineoverride

Definition at line 756 of file Histograms.h.

756  {
757  delete hMassVSPt_;
758  delete hMassVSPt_prof_;
759  }
TProfile * hMassVSPt_prof_
Definition: Histograms.h:787
TH2F * hMassVSPt_
Definition: Histograms.h:786

Member Function Documentation

void HPartVSPt::Clear ( )
inlineoverride

Definition at line 780 of file Histograms.h.

780  {
781  hMassVSPt_->Clear();
782  hMassVSPt_prof_->Clear();
783  }
TProfile * hMassVSPt_prof_
Definition: Histograms.h:787
TH2F * hMassVSPt_
Definition: Histograms.h:786
void HPartVSPt::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
)
inlineoverride

Definition at line 761 of file Histograms.h.

References HcalObjRepresent::Fill().

761  {
762  Fill(CLHEP::HepLorentzVector(p4.x(),p4.y(),p4.z(),p4.t()), weight);
763  }
Definition: weight.py:1
double p4[4]
Definition: TauolaWrapper.h:92
void Fill(const reco::Particle::LorentzVector &p4, const double &weight=1.) override
Definition: Histograms.h:761
void HPartVSPt::Fill ( const CLHEP::HepLorentzVector &  momentum,
const double &  weight = 1. 
)
inlineoverride

Definition at line 765 of file Histograms.h.

References mps_merge::weight.

765  {
766  hMassVSPt_->Fill(momentum.eta(),momentum.m(), weight);
767  hMassVSPt_prof_->Fill(momentum.eta(),momentum.m(), weight);
768  }
TProfile * hMassVSPt_prof_
Definition: Histograms.h:787
TH2F * hMassVSPt_
Definition: Histograms.h:786
void HPartVSPt::Write ( )
inlineoverride

Definition at line 770 of file Histograms.h.

770  {
771  hMassVSPt_->Write();
772  hMassVSPt_prof_->Write();
773 
774 // std::vector<TGraphErrors*> graphs( (MuScleFitUtils::fitMass(hMassVSPt_)) );
775 // for(std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++){
776 // (*graph)->Write();
777 // }
778  }
TProfile * hMassVSPt_prof_
Definition: Histograms.h:787
TH2F * hMassVSPt_
Definition: Histograms.h:786

Member Data Documentation

TH2F* HPartVSPt::hMassVSPt_

Definition at line 786 of file Histograms.h.

TProfile* HPartVSPt::hMassVSPt_prof_

Definition at line 787 of file Histograms.h.