test
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 524 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 527 of file Histograms.h.

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

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

Definition at line 544 of file Histograms.h.

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

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

Member Function Documentation

virtual void HPartVSEta::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 578 of file Histograms.h.

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

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

Reimplemented from Histograms.

Definition at line 552 of file Histograms.h.

References puppiForMET_cff::weight.

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

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

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

Implements Histograms.

Definition at line 565 of file Histograms.h.

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

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

Member Data Documentation

TProfile* HPartVSEta::hCurvVSEta_prof_

Definition at line 593 of file Histograms.h.

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

TH2F* HPartVSEta::hMassVSEta_

Definition at line 590 of file Histograms.h.

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

TProfile* HPartVSEta::hMassVSEta_prof_

Definition at line 591 of file Histograms.h.

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

TH2F* HPartVSEta::hPtVSEta_

Definition at line 589 of file Histograms.h.

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

TProfile* HPartVSEta::hPtVSEta_prof_

Definition at line 592 of file Histograms.h.

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