CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
HLikelihoodVSPart Class Reference

#include <Histograms.h>

Inheritance diagram for HLikelihoodVSPart:
Histograms

Public Member Functions

virtual void Clear ()
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &likeValue)
 
virtual void Fill (CLHEP::HepLorentzVector momentum, double likeValue)
 
 HLikelihoodVSPart (const TString &name)
 
 HLikelihoodVSPart (const TString &name, TFile *file)
 
virtual void Write ()
 
 ~HLikelihoodVSPart ()
 
- Public Member Functions inherited from Histograms
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p1, const reco::Particle::LorentzVector &p2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &p1, const reco::Particle::LorentzVector &p2)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const int charge, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum, const int charge, const double &weight=1.)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &genValue, const double recValue, const int charge)
 
virtual void Fill (const CLHEP::HepLorentzVector &p, const double &likeValue)
 
virtual void Fill (const unsigned int number)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const int charge2, const reco::Particle::LorentzVector &genP2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const int charge1, const reco::Particle::LorentzVector &recoP2, const int charge2, const double &recoMass, const double &genMass)
 
virtual void Fill (const reco::Particle::LorentzVector &recoP1, const reco::Particle::LorentzVector &genP1, const reco::Particle::LorentzVector &recoP2, const reco::Particle::LorentzVector &genP2)
 
virtual void Fill (const double &x, const double &y)
 
virtual void Fill (const double &x, const double &y, const double &a, const double &b)
 
virtual void Fill (const reco::Particle::LorentzVector &p41, const reco::Particle::LorentzVector &p42, const reco::Particle::LorentzVector &p4Res, const double &weight=1.)
 
virtual void Fill (const CLHEP::HepLorentzVector &momentum1, const CLHEP::HepLorentzVector &momentum2, const CLHEP::HepLorentzVector &momentumRes, const double &weight=1.)
 
virtual double Get (const reco::Particle::LorentzVector &recoP1, const TString &covarianceName)
 
virtual TString GetName ()
 
 Histograms ()
 
 Histograms (const TString &name)
 
 Histograms (TFile *outputFile, const TString &name)
 
virtual void SetWeight (double weight)
 
virtual ~Histograms ()
 

Public Attributes

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

Additional Inherited Members

- Protected Attributes inherited from Histograms
TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

Detailed Description

Definition at line 1386 of file Histograms.h.

Constructor & Destructor Documentation

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name)
inline

Definition at line 1389 of file Histograms.h.

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

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

Definition at line 1402 of file Histograms.h.

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

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

Definition at line 1412 of file Histograms.h.

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

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

Member Function Documentation

virtual void HLikelihoodVSPart::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 1443 of file Histograms.h.

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

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

Reimplemented from Histograms.

Definition at line 1421 of file Histograms.h.

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

Definition at line 1425 of file Histograms.h.

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

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

Implements Histograms.

Definition at line 1434 of file Histograms.h.

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

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

Member Data Documentation

TH2F* HLikelihoodVSPart::hLikeVSEta_

Definition at line 1454 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSEta_prof_

Definition at line 1457 of file Histograms.h.

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

TH2F* HLikelihoodVSPart::hLikeVSPhi_

Definition at line 1455 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSPhi_prof_

Definition at line 1458 of file Histograms.h.

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

TH2F* HLikelihoodVSPart::hLikeVSPt_

Definition at line 1453 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSPt_prof_

Definition at line 1456 of file Histograms.h.

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