test
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 1387 of file Histograms.h.

Constructor & Destructor Documentation

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name)
inline

Definition at line 1390 of file Histograms.h.

References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, hLikeVSPt_prof_, mergeVDriftHistosByStation::name, and Histograms::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
TString name_
Definition: Histograms.h:122
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 hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, hLikeVSPt_prof_, mergeVDriftHistosByStation::name, and Histograms::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
TString name_
Definition: Histograms.h:122
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1459
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1457
HLikelihoodVSPart::~HLikelihoodVSPart ( )
inline

Definition at line 1413 of file Histograms.h.

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

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

virtual void HLikelihoodVSPart::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 1444 of file Histograms.h.

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

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
virtual void HLikelihoodVSPart::Fill ( const reco::Particle::LorentzVector p4,
const double &  likeValue 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 1422 of file Histograms.h.

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

Definition at line 1426 of file Histograms.h.

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

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
virtual void HLikelihoodVSPart::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 1435 of file Histograms.h.

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

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.

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

TProfile* HLikelihoodVSPart::hLikeVSEta_prof_

Definition at line 1458 of file Histograms.h.

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

TH2F* HLikelihoodVSPart::hLikeVSPhi_

Definition at line 1456 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSPhi_prof_

Definition at line 1459 of file Histograms.h.

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

TH2F* HLikelihoodVSPart::hLikeVSPt_

Definition at line 1454 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSPt_prof_

Definition at line 1457 of file Histograms.h.

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