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

Constructor & Destructor Documentation

HPartVSPt::HPartVSPt ( const TString &  name)
inline

Definition at line 748 of file Histograms.h.

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

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

Definition at line 757 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Member Function Documentation

virtual void HPartVSPt::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 781 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Reimplemented from Histograms.

Definition at line 762 of file Histograms.h.

References histoStyle::weight.

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

References hMassVSPt_, hMassVSPt_prof_, and histoStyle::weight.

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

Implements Histograms.

Definition at line 771 of file Histograms.h.

References hMassVSPt_, and hMassVSPt_prof_.

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

Member Data Documentation

TH2F* HPartVSPt::hMassVSPt_

Definition at line 787 of file Histograms.h.

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

TProfile* HPartVSPt::hMassVSPt_prof_

Definition at line 788 of file Histograms.h.

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