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
 
virtual void Fill (CLHEP::HepLorentzVector momentum, double likeValue)
 
 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 1387 of file Histograms.h.

Constructor & Destructor Documentation

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name)
inline

Definition at line 1390 of file Histograms.h.

References dataset::name.

1390  {
1391  name_ = name;
1392 
1393  // Kinematical variables
1394  // ---------------------
1395  hLikeVSPt_ = new TH2F (name+"_LikelihoodVSPt", "likelihood vs muon transverse momentum", 100, 0., 100., 100, -100., 100.);
1396  hLikeVSEta_ = new TH2F (name+"_LikelihoodVSEta", "likelihood vs muon pseudorapidity", 100, -4.,4., 100, -100., 100.);
1397  hLikeVSPhi_ = new TH2F (name+"_LikelihoodVSPhi", "likelihood vs muon phi angle", 100, -3.2, 3.2, 100, -100., 100.);
1398  hLikeVSPt_prof_ = new TProfile (name+"_LikelihoodVSPt_prof", "likelihood vs muon transverse momentum", 40, 0., 100., -1000., 1000. );
1399  hLikeVSEta_prof_ = new TProfile (name+"_LikelihoodVSEta_prof", "likelihood vs muon pseudorapidity", 40, -4.,4., -1000., 1000. );
1400  hLikeVSPhi_prof_ = new TProfile (name+"_LikelihoodVSPhi_prof", "likelihood vs muon phi angle", 40, -3.2, 3.2, -1000., 1000.);
1401  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1458
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1459
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1457
HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name,
TFile *  file 
)
inline

Definition at line 1403 of file Histograms.h.

References dataset::name.

1403  {
1404  name_ = name;
1405  hLikeVSPt_ = (TH2F *) file->Get(name+"_LikelihoodVSPt");
1406  hLikeVSEta_ = (TH2F *) file->Get(name+"_LikelihoodVSEta");
1407  hLikeVSPhi_ = (TH2F *) file->Get(name+"_LikelihoodVSPhi");
1408  hLikeVSPt_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSPt_prof");
1409  hLikeVSEta_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSEta_prof");
1410  hLikeVSPhi_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSPhi_prof");
1411  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1458
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1459
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1457
HLikelihoodVSPart::~HLikelihoodVSPart ( )
inlineoverride

Definition at line 1413 of file Histograms.h.

1413  {
1414  delete hLikeVSPt_;
1415  delete hLikeVSEta_;
1416  delete hLikeVSPhi_;
1417  delete hLikeVSPt_prof_;
1418  delete hLikeVSEta_prof_;
1419  delete hLikeVSPhi_prof_;
1420  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1458
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1459
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1457

Member Function Documentation

void HLikelihoodVSPart::Clear ( )
inlineoverride

Definition at line 1444 of file Histograms.h.

1444  {
1445  hLikeVSPt_->Reset("ICE");
1446  hLikeVSEta_->Reset("ICE");
1447  hLikeVSPhi_->Reset("ICE");
1448  hLikeVSPt_prof_->Reset("ICE");
1449  hLikeVSEta_prof_->Reset("ICE");
1450  hLikeVSPhi_prof_->Reset("ICE");
1451  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1458
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1459
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1457
void HLikelihoodVSPart::Fill ( const reco::Particle::LorentzVector p4,
const double &  likeValue 
)
inlineoverride

Definition at line 1422 of file Histograms.h.

References HcalObjRepresent::Fill().

1422  {
1423  Fill(CLHEP::HepLorentzVector(p4.x(),p4.y(),p4.z(),p4.t()), likeValue);
1424  }
double p4[4]
Definition: TauolaWrapper.h:92
void Fill(const reco::Particle::LorentzVector &p4, const double &likeValue) override
Definition: Histograms.h:1422
virtual void HLikelihoodVSPart::Fill ( CLHEP::HepLorentzVector  momentum,
double  likeValue 
)
inlinevirtual

Definition at line 1426 of file Histograms.h.

1426  {
1427  hLikeVSPt_->Fill(momentum.perp(),likeValue);
1428  hLikeVSEta_->Fill(momentum.eta(),likeValue);
1429  hLikeVSPhi_->Fill(momentum.phi(),likeValue);
1430  hLikeVSPt_prof_->Fill(momentum.perp(),likeValue);
1431  hLikeVSEta_prof_->Fill(momentum.eta(),likeValue);
1432  hLikeVSPhi_prof_->Fill(momentum.phi(),likeValue);
1433  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1458
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1459
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1457
void HLikelihoodVSPart::Write ( )
inlineoverride

Definition at line 1435 of file Histograms.h.

1435  {
1436  hLikeVSPt_->Write();
1437  hLikeVSEta_->Write();
1438  hLikeVSPhi_->Write();
1439  hLikeVSPt_prof_->Write();
1440  hLikeVSEta_prof_->Write();
1441  hLikeVSPhi_prof_->Write();
1442  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1458
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1459
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1457

Member Data Documentation

TH2F* HLikelihoodVSPart::hLikeVSEta_

Definition at line 1455 of file Histograms.h.

TProfile* HLikelihoodVSPart::hLikeVSEta_prof_

Definition at line 1458 of file Histograms.h.

TH2F* HLikelihoodVSPart::hLikeVSPhi_

Definition at line 1456 of file Histograms.h.

TProfile* HLikelihoodVSPart::hLikeVSPhi_prof_

Definition at line 1459 of file Histograms.h.

TH2F* HLikelihoodVSPart::hLikeVSPt_

Definition at line 1454 of file Histograms.h.

TProfile* HLikelihoodVSPart::hLikeVSPt_prof_

Definition at line 1457 of file Histograms.h.