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 743 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSPt::HPartVSPt ( const TString &  name)
inline

Definition at line 746 of file Histograms.h.

References hMassVSPt_, hMassVSPt_prof_, mergeVDriftHistosByStation::name, and Histograms::name_.

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

Definition at line 755 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Member Function Documentation

virtual void HPartVSPt::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 779 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Reimplemented from Histograms.

Definition at line 760 of file Histograms.h.

References histoStyle::weight.

760  {
761  Fill(CLHEP::HepLorentzVector(p4.x(),p4.y(),p4.z(),p4.t()), weight);
762  }
double p4[4]
Definition: TauolaWrapper.h:92
virtual void Fill(const reco::Particle::LorentzVector &p4, const double &weight=1.)
Definition: Histograms.h:760
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 764 of file Histograms.h.

References hMassVSPt_, hMassVSPt_prof_, and histoStyle::weight.

764  {
765  hMassVSPt_->Fill(momentum.eta(),momentum.m(), weight);
766  hMassVSPt_prof_->Fill(momentum.eta(),momentum.m(), weight);
767  }
TProfile * hMassVSPt_prof_
Definition: Histograms.h:786
TH2F * hMassVSPt_
Definition: Histograms.h:785
int weight
Definition: histoStyle.py:50
virtual void HPartVSPt::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 769 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Member Data Documentation

TH2F* HPartVSPt::hMassVSPt_

Definition at line 785 of file Histograms.h.

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

TProfile* HPartVSPt::hMassVSPt_prof_

Definition at line 786 of file Histograms.h.

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