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 CLHEP::HepLorentzVector &momentum, const double &likeValue) override
 
void Fill (const reco::Particle::LorentzVector &p4, 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() [1/2]

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name)
inline

Definition at line 1462 of file Histograms.h.

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  }

References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, hLikeVSPt_prof_, and Skims_PA_cff::name.

◆ HLikelihoodVSPart() [2/2]

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name,
TFile *  file 
)
inline

Definition at line 1480 of file Histograms.h.

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  }

References FrontierConditions_GlobalTag_cff::file, hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, hLikeVSPt_prof_, and Skims_PA_cff::name.

◆ ~HLikelihoodVSPart()

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  }

References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, and hLikeVSPt_prof_.

Member Function Documentation

◆ Clear()

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  }

References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, and hLikeVSPt_prof_.

◆ Fill() [1/2]

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  }

References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, and hLikeVSPt_prof_.

◆ Fill() [2/2]

void HLikelihoodVSPart::Fill ( const reco::Particle::LorentzVector p4,
const double &  likeValue 
)
inlineoverride

Definition at line 1499 of file Histograms.h.

1499  {
1500  Fill(CLHEP::HepLorentzVector(p4.x(), p4.y(), p4.z(), p4.t()), likeValue);
1501  }

References p4.

◆ Write()

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  }

References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, and hLikeVSPt_prof_.

Member Data Documentation

◆ hLikeVSEta_

TH2F* HLikelihoodVSPart::hLikeVSEta_

Definition at line 1532 of file Histograms.h.

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

◆ hLikeVSEta_prof_

TProfile* HLikelihoodVSPart::hLikeVSEta_prof_

Definition at line 1535 of file Histograms.h.

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

◆ hLikeVSPhi_

TH2F* HLikelihoodVSPart::hLikeVSPhi_

Definition at line 1533 of file Histograms.h.

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

◆ hLikeVSPhi_prof_

TProfile* HLikelihoodVSPart::hLikeVSPhi_prof_

Definition at line 1536 of file Histograms.h.

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

◆ hLikeVSPt_

TH2F* HLikelihoodVSPart::hLikeVSPt_

Definition at line 1531 of file Histograms.h.

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

◆ hLikeVSPt_prof_

TProfile* HLikelihoodVSPart::hLikeVSPt_prof_

Definition at line 1534 of file Histograms.h.

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

HLikelihoodVSPart::hLikeVSEta_prof_
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1535
HLikelihoodVSPart::hLikeVSEta_
TH2F * hLikeVSEta_
Definition: Histograms.h:1532
HLikelihoodVSPart::Fill
void Fill(const reco::Particle::LorentzVector &p4, const double &likeValue) override
Definition: Histograms.h:1499
HLikelihoodVSPart::hLikeVSPhi_
TH2F * hLikeVSPhi_
Definition: Histograms.h:1533
HLikelihoodVSPart::hLikeVSPhi_prof_
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1536
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
p4
double p4[4]
Definition: TauolaWrapper.h:92
HLikelihoodVSPart::hLikeVSPt_
TH2F * hLikeVSPt_
Definition: Histograms.h:1531
HLikelihoodVSPart::hLikeVSPt_prof_
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1534
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17