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
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

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

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

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

Definition at line 545 of file Histograms.h.

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

545  {
546  delete hPtVSEta_;
547  delete hMassVSEta_;
548  delete hPtVSEta_prof_;
549  delete hMassVSEta_prof_;
550  delete hCurvVSEta_prof_;
551  }
TProfile * hPtVSEta_prof_
Definition: Histograms.h:593
TProfile * hCurvVSEta_prof_
Definition: Histograms.h:594
TH2F * hPtVSEta_
Definition: Histograms.h:590
TProfile * hMassVSEta_prof_
Definition: Histograms.h:592
TH2F * hMassVSEta_
Definition: Histograms.h:591

Member Function Documentation

virtual void HPartVSEta::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 579 of file Histograms.h.

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

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

Reimplemented from Histograms.

Definition at line 553 of file Histograms.h.

References histoStyle::weight.

553  {
554  Fill (CLHEP::HepLorentzVector(p4.x(),p4.y(),p4.z(),p4.t()), weight);
555  }
virtual void Fill(const reco::Particle::LorentzVector &p4, const double &weight=1.)
Definition: Histograms.h:553
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 557 of file Histograms.h.

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

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

Implements Histograms.

Definition at line 566 of file Histograms.h.

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

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

Member Data Documentation

TProfile* HPartVSEta::hCurvVSEta_prof_

Definition at line 594 of file Histograms.h.

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

TH2F* HPartVSEta::hMassVSEta_

Definition at line 591 of file Histograms.h.

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

TProfile* HPartVSEta::hMassVSEta_prof_

Definition at line 592 of file Histograms.h.

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

TH2F* HPartVSEta::hPtVSEta_

Definition at line 590 of file Histograms.h.

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

TProfile* HPartVSEta::hPtVSEta_prof_

Definition at line 593 of file Histograms.h.

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