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

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

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

Definition at line 546 of file Histograms.h.

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

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

Member Function Documentation

virtual void HPartVSEta::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 580 of file Histograms.h.

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

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

Reimplemented from Histograms.

Definition at line 554 of file Histograms.h.

References CommonMethods::weight().

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

Reimplemented from Histograms.

Definition at line 558 of file Histograms.h.

References hCurvVSEta_prof_, hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, hPtVSEta_prof_, and CommonMethods::weight().

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

Implements Histograms.

Definition at line 567 of file Histograms.h.

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

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

Member Data Documentation

TProfile* HPartVSEta::hCurvVSEta_prof_

Definition at line 595 of file Histograms.h.

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

TH2F* HPartVSEta::hMassVSEta_

Definition at line 592 of file Histograms.h.

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

TProfile* HPartVSEta::hMassVSEta_prof_

Definition at line 593 of file Histograms.h.

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

TH2F* HPartVSEta::hPtVSEta_

Definition at line 591 of file Histograms.h.

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

TProfile* HPartVSEta::hPtVSEta_prof_

Definition at line 594 of file Histograms.h.

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