CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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_
 
- Public Attributes inherited from Histograms
dqm::reco::MonitorElementlumiVsLS
 
dqm::reco::MonitorElementnumberOfPixelClustersVsLS
 
dqm::reco::MonitorElementnumberOfPixelClustersVsLumi
 
dqm::reco::MonitorElementpixelLumiVsLS
 
dqm::reco::MonitorElementpixelLumiVsLumi
 
dqm::reco::MonitorElementpuVsLS
 

Detailed Description

Definition at line 1462 of file Histograms.h.

Constructor & Destructor Documentation

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name)
inline

Definition at line 1464 of file Histograms.h.

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

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

Definition at line 1482 of file Histograms.h.

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

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

Definition at line 1492 of file Histograms.h.

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

1492  {
1493  delete hLikeVSPt_;
1494  delete hLikeVSEta_;
1495  delete hLikeVSPhi_;
1496  delete hLikeVSPt_prof_;
1497  delete hLikeVSEta_prof_;
1498  delete hLikeVSPhi_prof_;
1499  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1537
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1538
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1536

Member Function Documentation

void HLikelihoodVSPart::Clear ( )
inlineoverride

Definition at line 1523 of file Histograms.h.

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

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

Definition at line 1501 of file Histograms.h.

1501  {
1502  Fill(CLHEP::HepLorentzVector(p4.x(), p4.y(), p4.z(), p4.t()), likeValue);
1503  }
void Fill(const reco::Particle::LorentzVector &p4, const double &likeValue) override
Definition: Histograms.h:1501
void HLikelihoodVSPart::Fill ( const CLHEP::HepLorentzVector &  momentum,
const double &  likeValue 
)
inlineoverride

Definition at line 1505 of file Histograms.h.

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

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

Definition at line 1514 of file Histograms.h.

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

1514  {
1515  hLikeVSPt_->Write();
1516  hLikeVSEta_->Write();
1517  hLikeVSPhi_->Write();
1518  hLikeVSPt_prof_->Write();
1519  hLikeVSEta_prof_->Write();
1520  hLikeVSPhi_prof_->Write();
1521  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1537
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1538
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1536

Member Data Documentation

TH2F* HLikelihoodVSPart::hLikeVSEta_

Definition at line 1534 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSEta_prof_

Definition at line 1537 of file Histograms.h.

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

TH2F* HLikelihoodVSPart::hLikeVSPhi_

Definition at line 1535 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSPhi_prof_

Definition at line 1538 of file Histograms.h.

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

TH2F* HLikelihoodVSPart::hLikeVSPt_

Definition at line 1533 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSPt_prof_

Definition at line 1536 of file Histograms.h.

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