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
void declareHistograms ()
 
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.)
 
void fillEventInfo (int proc, int strk, int ntrkr)
 
void fillRecHistograms (const RecTrack_t &r)
 
void fillSimHistograms (const SimTrack_t &s)
 
void fillVzeroHistograms (const RecVzero_t &r, int part)
 
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)
 
 Histograms (const edm::ParameterSet &pset)
 
virtual void SetWeight (double weight)
 
void writeHistograms ()
 
virtual ~Histograms ()
 
 ~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 746 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSPt::HPartVSPt ( const TString &  name)
inline

Definition at line 749 of file Histograms.h.

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

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

Definition at line 758 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

758  {
759  delete hMassVSPt_;
760  delete hMassVSPt_prof_;
761  }
TProfile * hMassVSPt_prof_
Definition: Histograms.h:789
TH2F * hMassVSPt_
Definition: Histograms.h:788

Member Function Documentation

virtual void HPartVSPt::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 782 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Reimplemented from Histograms.

Definition at line 763 of file Histograms.h.

References CommonMethods::weight().

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

Reimplemented from Histograms.

Definition at line 767 of file Histograms.h.

References hMassVSPt_, hMassVSPt_prof_, and CommonMethods::weight().

767  {
768  hMassVSPt_->Fill(momentum.eta(),momentum.m(), weight);
769  hMassVSPt_prof_->Fill(momentum.eta(),momentum.m(), weight);
770  }
TProfile * hMassVSPt_prof_
Definition: Histograms.h:789
TH2F * hMassVSPt_
Definition: Histograms.h:788
virtual void HPartVSPt::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 772 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Member Data Documentation

TH2F* HPartVSPt::hMassVSPt_

Definition at line 788 of file Histograms.h.

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

TProfile* HPartVSPt::hMassVSPt_prof_

Definition at line 789 of file Histograms.h.

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