CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HPartVSEta Class Reference

#include <Histograms.h>

Inherits Histograms.

Public Member Functions

void Clear () override
 
void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.) override
 
void Fill (const CLHEP::HepLorentzVector &momentum, const double &weight=1.) override
 
 HPartVSEta (const TString &name, const double &minMass=0., const double &maxMass=100., const double &maxPt=100.)
 
void Write () override
 
 ~HPartVSEta () override
 

Public Attributes

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

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 PFRecoTauDiscriminationByHPSSelection_cfi::maxMass, MuonErrorMatrixAnalyzer_cfi::maxPt, PFRecoTauDiscriminationByHPSSelection_cfi::minMass, and dataset::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
TH2F * hPtVSEta_
Definition: Histograms.h:589
TProfile * hMassVSEta_prof_
Definition: Histograms.h:591
TH2F * hMassVSEta_
Definition: Histograms.h:590
HPartVSEta::~HPartVSEta ( )
inlineoverride

Definition at line 544 of file Histograms.h.

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

void HPartVSEta::Clear ( )
inlineoverride

Definition at line 578 of file Histograms.h.

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
void HPartVSEta::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
)
inlineoverride

Definition at line 552 of file Histograms.h.

References HcalObjRepresent::Fill().

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

Definition at line 556 of file Histograms.h.

References mps_merge::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
void HPartVSEta::Write ( )
inlineoverride

Definition at line 565 of file Histograms.h.

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.

TH2F* HPartVSEta::hMassVSEta_

Definition at line 590 of file Histograms.h.

TProfile* HPartVSEta::hMassVSEta_prof_

Definition at line 591 of file Histograms.h.

TH2F* HPartVSEta::hPtVSEta_

Definition at line 589 of file Histograms.h.

TProfile* HPartVSEta::hPtVSEta_prof_

Definition at line 592 of file Histograms.h.