CMS 3D CMS Logo

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

#include <Histograms.h>

Inherits Histograms.

Public Member Functions

void Clear () override
 
void Fill (const reco::Particle::LorentzVector &p4, const double &likeValue) override
 
void Fill (const CLHEP::HepLorentzVector &momentum, const double &likeValue) override
 
 HLikelihoodVSPart (const TString &name)
 
 HLikelihoodVSPart (const TString &name, TFile *file)
 
void Write () override
 
 ~HLikelihoodVSPart () override
 

Public Attributes

TH2F * hLikeVSEta_
 
TProfile * hLikeVSEta_prof_
 
TH2F * hLikeVSPhi_
 
TProfile * hLikeVSPhi_prof_
 
TH2F * hLikeVSPt_
 
TProfile * hLikeVSPt_prof_
 

Detailed Description

Definition at line 1460 of file Histograms.h.

Constructor & Destructor Documentation

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name)
inline

Definition at line 1462 of file Histograms.h.

References Skims_PA_cff::name.

1462  {
1463  name_ = name;
1464 
1465  // Kinematical variables
1466  // ---------------------
1467  hLikeVSPt_ =
1468  new TH2F(name + "_LikelihoodVSPt", "likelihood vs muon transverse momentum", 100, 0., 100., 100, -100., 100.);
1469  hLikeVSEta_ =
1470  new TH2F(name + "_LikelihoodVSEta", "likelihood vs muon pseudorapidity", 100, -4., 4., 100, -100., 100.);
1471  hLikeVSPhi_ = new TH2F(name + "_LikelihoodVSPhi", "likelihood vs muon phi angle", 100, -3.2, 3.2, 100, -100., 100.);
1472  hLikeVSPt_prof_ = new TProfile(
1473  name + "_LikelihoodVSPt_prof", "likelihood vs muon transverse momentum", 40, 0., 100., -1000., 1000.);
1475  new TProfile(name + "_LikelihoodVSEta_prof", "likelihood vs muon pseudorapidity", 40, -4., 4., -1000., 1000.);
1477  new TProfile(name + "_LikelihoodVSPhi_prof", "likelihood vs muon phi angle", 40, -3.2, 3.2, -1000., 1000.);
1478  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1535
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1536
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1534
HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name,
TFile *  file 
)
inline

Definition at line 1480 of file Histograms.h.

References Skims_PA_cff::name.

1480  {
1481  name_ = name;
1482  hLikeVSPt_ = (TH2F*)file->Get(name + "_LikelihoodVSPt");
1483  hLikeVSEta_ = (TH2F*)file->Get(name + "_LikelihoodVSEta");
1484  hLikeVSPhi_ = (TH2F*)file->Get(name + "_LikelihoodVSPhi");
1485  hLikeVSPt_prof_ = (TProfile*)file->Get(name + "_LikelihoodVSPt_prof");
1486  hLikeVSEta_prof_ = (TProfile*)file->Get(name + "_LikelihoodVSEta_prof");
1487  hLikeVSPhi_prof_ = (TProfile*)file->Get(name + "_LikelihoodVSPhi_prof");
1488  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1535
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1536
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1534
HLikelihoodVSPart::~HLikelihoodVSPart ( )
inlineoverride

Definition at line 1490 of file Histograms.h.

1490  {
1491  delete hLikeVSPt_;
1492  delete hLikeVSEta_;
1493  delete hLikeVSPhi_;
1494  delete hLikeVSPt_prof_;
1495  delete hLikeVSEta_prof_;
1496  delete hLikeVSPhi_prof_;
1497  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1535
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1536
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1534

Member Function Documentation

void HLikelihoodVSPart::Clear ( )
inlineoverride

Definition at line 1521 of file Histograms.h.

1521  {
1522  hLikeVSPt_->Reset("ICE");
1523  hLikeVSEta_->Reset("ICE");
1524  hLikeVSPhi_->Reset("ICE");
1525  hLikeVSPt_prof_->Reset("ICE");
1526  hLikeVSEta_prof_->Reset("ICE");
1527  hLikeVSPhi_prof_->Reset("ICE");
1528  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1535
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1536
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1534
void HLikelihoodVSPart::Fill ( const reco::Particle::LorentzVector p4,
const double &  likeValue 
)
inlineoverride

Definition at line 1499 of file Histograms.h.

References HcalObjRepresent::Fill().

1499  {
1500  Fill(CLHEP::HepLorentzVector(p4.x(), p4.y(), p4.z(), p4.t()), likeValue);
1501  }
double p4[4]
Definition: TauolaWrapper.h:92
void Fill(const reco::Particle::LorentzVector &p4, const double &likeValue) override
Definition: Histograms.h:1499
void HLikelihoodVSPart::Fill ( const CLHEP::HepLorentzVector &  momentum,
const double &  likeValue 
)
inlineoverride

Definition at line 1503 of file Histograms.h.

1503  {
1504  hLikeVSPt_->Fill(momentum.perp(), likeValue);
1505  hLikeVSEta_->Fill(momentum.eta(), likeValue);
1506  hLikeVSPhi_->Fill(momentum.phi(), likeValue);
1507  hLikeVSPt_prof_->Fill(momentum.perp(), likeValue);
1508  hLikeVSEta_prof_->Fill(momentum.eta(), likeValue);
1509  hLikeVSPhi_prof_->Fill(momentum.phi(), likeValue);
1510  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1535
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1536
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1534
void HLikelihoodVSPart::Write ( )
inlineoverride

Definition at line 1512 of file Histograms.h.

1512  {
1513  hLikeVSPt_->Write();
1514  hLikeVSEta_->Write();
1515  hLikeVSPhi_->Write();
1516  hLikeVSPt_prof_->Write();
1517  hLikeVSEta_prof_->Write();
1518  hLikeVSPhi_prof_->Write();
1519  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1535
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1536
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1534

Member Data Documentation

TH2F* HLikelihoodVSPart::hLikeVSEta_

Definition at line 1532 of file Histograms.h.

TProfile* HLikelihoodVSPart::hLikeVSEta_prof_

Definition at line 1535 of file Histograms.h.

TH2F* HLikelihoodVSPart::hLikeVSPhi_

Definition at line 1533 of file Histograms.h.

TProfile* HLikelihoodVSPart::hLikeVSPhi_prof_

Definition at line 1536 of file Histograms.h.

TH2F* HLikelihoodVSPart::hLikeVSPt_

Definition at line 1531 of file Histograms.h.

TProfile* HLikelihoodVSPart::hLikeVSPt_prof_

Definition at line 1534 of file Histograms.h.