CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
HPartVSPt Class Reference

#include <Histograms.h>

Inheritance diagram for HPartVSPt:
Histograms

Public Member Functions

virtual void Clear ()
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum, const double &weight=1.)
 
 HPartVSPt (const TString &name)
 
virtual void Write ()
 
 ~HPartVSPt ()
 
- Public Member Functions inherited from Histograms
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum, const int charge, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &genValue, const double recValue, const int charge)
 
virtual void Fill (const unsigned int number)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const int charge2, const reco::Particle::LorentzVector &genP2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &recoP2, const int charge2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const reco::Particle::LorentzVector &genP2)
 
virtual void Fill (const double &x, const double &y)
 
virtual void Fill (const double &x, const double &y, const double &a, const double &b)
 
virtual void Fill (const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const reco::Particle::LorentzVector &p4Res, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const CLHEP::HepLorentzVector &momentumRes, const double &weight=1.)
 
virtual double Get (const reco::Particle::LorentzVector &recoP1, const TString &covarianceName)
 
virtual TString GetName ()
 
 Histograms ()
 
 Histograms (const TString &name)
 
 Histograms (TFile *outputFile, const TString &name)
 
virtual void SetWeight (double weight)
 
virtual ~Histograms ()
 

Public Attributes

TH2F * hMassVSPt_
 
TProfile * hMassVSPt_prof_
 

Additional Inherited Members

- Protected Attributes inherited from Histograms
TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

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 hMassVSPt_, hMassVSPt_prof_, mergeVDriftHistosByStation::name, and Histograms::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
TString name_
Definition: Histograms.h:122
TH2F * hMassVSPt_
Definition: Histograms.h:786
HPartVSPt::~HPartVSPt ( )
inline

Definition at line 756 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

virtual void HPartVSPt::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 780 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Reimplemented from Histograms.

Definition at line 761 of file Histograms.h.

References histoStyle::weight.

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

Reimplemented from Histograms.

Definition at line 765 of file Histograms.h.

References hMassVSPt_, hMassVSPt_prof_, and histoStyle::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
int weight
Definition: histoStyle.py:50
virtual void HPartVSPt::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 770 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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.

Referenced by Clear(), Fill(), HPartVSPt(), Write(), and ~HPartVSPt().

TProfile* HPartVSPt::hMassVSPt_prof_

Definition at line 787 of file Histograms.h.

Referenced by Clear(), Fill(), HPartVSPt(), Write(), and ~HPartVSPt().