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
HPartVSEta Class Reference

#include <Histograms.h>

Inheritance diagram for HPartVSEta:
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.)
 
 HPartVSEta (const TString &name, const double &minMass=0., const double &maxMass=100., const double &maxPt=100.)
 
virtual void Write ()
 
 ~HPartVSEta ()
 
- 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

TProfile * hCurvVSEta_prof_
 
TH2F * hMassVSEta_
 
TProfile * hMassVSEta_prof_
 
TH2F * hPtVSEta_
 
TProfile * hPtVSEta_prof_
 

Additional Inherited Members

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

Detailed Description

Definition at line 523 of file Histograms.h.

Constructor & Destructor Documentation

HPartVSEta::HPartVSEta ( const TString &  name,
const double &  minMass = 0.,
const double &  maxMass = 100.,
const double &  maxPt = 100. 
)
inline

Definition at line 526 of file Histograms.h.

References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, hPtVSEta_prof_, mergeVDriftHistosByStation::name, and Histograms::name_.

527  {
528  name_ = name;
529  hPtVSEta_ = new TH2F( name+"_PtVSEta", "transverse momentum vs pseudorapidity",
530  32, -3.2, 3.2, 200, 0, maxPt );
531  hMassVSEta_ = new TH2F( name+"_MassVSEta", "mass vs pseudorapidity",
532  32, -3.2, 3.2, 40, minMass, maxMass );
533  // TD profile histograms
534  // ---------------------
535  hPtVSEta_prof_ = new TProfile( name+"_PtVSEta_prof", "mass vs pseudorapidity",
536  32, -3.2, 3.2, 0, maxPt );
537  hMassVSEta_prof_ = new TProfile( name+"_MassVSEta_prof", "mass vs pseudorapidity",
538  32, -3.2, 3.2, minMass, maxMass );
539  hCurvVSEta_prof_ = new TProfile( name+"_CurvVSEta_prof", "curvature vs pseudorapidity",
540  32, -3.2, 3.2, 0, 1. );
541  }
TProfile * hPtVSEta_prof_
Definition: Histograms.h:591
TProfile * hCurvVSEta_prof_
Definition: Histograms.h:592
TString name_
Definition: Histograms.h:121
TH2F * hPtVSEta_
Definition: Histograms.h:588
TProfile * hMassVSEta_prof_
Definition: Histograms.h:590
TH2F * hMassVSEta_
Definition: Histograms.h:589
HPartVSEta::~HPartVSEta ( )
inline

Definition at line 543 of file Histograms.h.

References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.

543  {
544  delete hPtVSEta_;
545  delete hMassVSEta_;
546  delete hPtVSEta_prof_;
547  delete hMassVSEta_prof_;
548  delete hCurvVSEta_prof_;
549  }
TProfile * hPtVSEta_prof_
Definition: Histograms.h:591
TProfile * hCurvVSEta_prof_
Definition: Histograms.h:592
TH2F * hPtVSEta_
Definition: Histograms.h:588
TProfile * hMassVSEta_prof_
Definition: Histograms.h:590
TH2F * hMassVSEta_
Definition: Histograms.h:589

Member Function Documentation

virtual void HPartVSEta::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 577 of file Histograms.h.

References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.

577  {
578  hPtVSEta_->Clear();
579  hPtVSEta_prof_->Clear();
580  hCurvVSEta_prof_->Clear();
581  hMassVSEta_->Clear();
582  hMassVSEta_prof_->Clear();
583 
584  }
TProfile * hPtVSEta_prof_
Definition: Histograms.h:591
TProfile * hCurvVSEta_prof_
Definition: Histograms.h:592
TH2F * hPtVSEta_
Definition: Histograms.h:588
TProfile * hMassVSEta_prof_
Definition: Histograms.h:590
TH2F * hMassVSEta_
Definition: Histograms.h:589
virtual void HPartVSEta::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 551 of file Histograms.h.

References histoStyle::weight.

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

Reimplemented from Histograms.

Definition at line 555 of file Histograms.h.

References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, hPtVSEta_prof_, and histoStyle::weight.

555  {
556  hPtVSEta_->Fill(momentum.eta(),momentum.perp(), weight);
557  hPtVSEta_prof_->Fill(momentum.eta(),momentum.perp(), weight);
558 
559  hMassVSEta_->Fill(momentum.eta(),momentum.m(), weight);
560  hMassVSEta_prof_->Fill(momentum.eta(),momentum.m(), weight);
561  hCurvVSEta_prof_->Fill(momentum.eta(),1/momentum.perp(), weight);
562  }
TProfile * hPtVSEta_prof_
Definition: Histograms.h:591
TProfile * hCurvVSEta_prof_
Definition: Histograms.h:592
TH2F * hPtVSEta_
Definition: Histograms.h:588
TProfile * hMassVSEta_prof_
Definition: Histograms.h:590
int weight
Definition: histoStyle.py:50
TH2F * hMassVSEta_
Definition: Histograms.h:589
virtual void HPartVSEta::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 564 of file Histograms.h.

References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.

564  {
565  hPtVSEta_->Write();
566  hPtVSEta_prof_->Write();
567  hCurvVSEta_prof_->Write();
568  hMassVSEta_->Write();
569  hMassVSEta_prof_->Write();
570 
571  // std::vector<TGraphErrors*> graphs( (MuScleFitUtils::fitMass(hMassVSEta_)) );
572  // for (std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++) {
573  // (*graph)->Write();
574  // }
575  }
TProfile * hPtVSEta_prof_
Definition: Histograms.h:591
TProfile * hCurvVSEta_prof_
Definition: Histograms.h:592
TH2F * hPtVSEta_
Definition: Histograms.h:588
TProfile * hMassVSEta_prof_
Definition: Histograms.h:590
TH2F * hMassVSEta_
Definition: Histograms.h:589

Member Data Documentation

TProfile* HPartVSEta::hCurvVSEta_prof_

Definition at line 592 of file Histograms.h.

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

TH2F* HPartVSEta::hMassVSEta_

Definition at line 589 of file Histograms.h.

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

TProfile* HPartVSEta::hMassVSEta_prof_

Definition at line 590 of file Histograms.h.

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

TH2F* HPartVSEta::hPtVSEta_

Definition at line 588 of file Histograms.h.

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

TProfile* HPartVSEta::hPtVSEta_prof_

Definition at line 591 of file Histograms.h.

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