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
void declareHistograms ()
 
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.)
 
void fillEventInfo (int proc, int strk, int ntrkr)
 
void fillRecHistograms (const RecTrack_t &r)
 
void fillSimHistograms (const SimTrack_t &s)
 
void fillVzeroHistograms (const RecVzero_t &r, int part)
 
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)
 
 Histograms (const edm::ParameterSet &pset)
 
virtual void SetWeight (double weight)
 
void writeHistograms ()
 
virtual ~Histograms ()
 
 ~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 1389 of file Histograms.h.

Constructor & Destructor Documentation

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name)
inline

Definition at line 1392 of file Histograms.h.

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

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

Definition at line 1405 of file Histograms.h.

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

1405  {
1406  name_ = name;
1407  hLikeVSPt_ = (TH2F *) file->Get(name+"_LikelihoodVSPt");
1408  hLikeVSEta_ = (TH2F *) file->Get(name+"_LikelihoodVSEta");
1409  hLikeVSPhi_ = (TH2F *) file->Get(name+"_LikelihoodVSPhi");
1410  hLikeVSPt_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSPt_prof");
1411  hLikeVSEta_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSEta_prof");
1412  hLikeVSPhi_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSPhi_prof");
1413  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1460
TString name_
Definition: Histograms.h:124
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1461
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1459
HLikelihoodVSPart::~HLikelihoodVSPart ( )
inline

Definition at line 1415 of file Histograms.h.

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

1415  {
1416  delete hLikeVSPt_;
1417  delete hLikeVSEta_;
1418  delete hLikeVSPhi_;
1419  delete hLikeVSPt_prof_;
1420  delete hLikeVSEta_prof_;
1421  delete hLikeVSPhi_prof_;
1422  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1460
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1461
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1459

Member Function Documentation

virtual void HLikelihoodVSPart::Clear ( )
inlinevirtual

Implements Histograms.

Definition at line 1446 of file Histograms.h.

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

1446  {
1447  hLikeVSPt_->Reset("ICE");
1448  hLikeVSEta_->Reset("ICE");
1449  hLikeVSPhi_->Reset("ICE");
1450  hLikeVSPt_prof_->Reset("ICE");
1451  hLikeVSEta_prof_->Reset("ICE");
1452  hLikeVSPhi_prof_->Reset("ICE");
1453  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1460
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1461
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1459
virtual void HLikelihoodVSPart::Fill ( const reco::Particle::LorentzVector p4,
const double &  likeValue 
)
inlinevirtual

Reimplemented from Histograms.

Definition at line 1424 of file Histograms.h.

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

Definition at line 1428 of file Histograms.h.

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

1428  {
1429  hLikeVSPt_->Fill(momentum.perp(),likeValue);
1430  hLikeVSEta_->Fill(momentum.eta(),likeValue);
1431  hLikeVSPhi_->Fill(momentum.phi(),likeValue);
1432  hLikeVSPt_prof_->Fill(momentum.perp(),likeValue);
1433  hLikeVSEta_prof_->Fill(momentum.eta(),likeValue);
1434  hLikeVSPhi_prof_->Fill(momentum.phi(),likeValue);
1435  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1460
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1461
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1459
virtual void HLikelihoodVSPart::Write ( )
inlinevirtual

Implements Histograms.

Definition at line 1437 of file Histograms.h.

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

1437  {
1438  hLikeVSPt_->Write();
1439  hLikeVSEta_->Write();
1440  hLikeVSPhi_->Write();
1441  hLikeVSPt_prof_->Write();
1442  hLikeVSEta_prof_->Write();
1443  hLikeVSPhi_prof_->Write();
1444  }
TProfile * hLikeVSEta_prof_
Definition: Histograms.h:1460
TProfile * hLikeVSPhi_prof_
Definition: Histograms.h:1461
TProfile * hLikeVSPt_prof_
Definition: Histograms.h:1459

Member Data Documentation

TH2F* HLikelihoodVSPart::hLikeVSEta_

Definition at line 1457 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSEta_prof_

Definition at line 1460 of file Histograms.h.

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

TH2F* HLikelihoodVSPart::hLikeVSPhi_

Definition at line 1458 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSPhi_prof_

Definition at line 1461 of file Histograms.h.

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

TH2F* HLikelihoodVSPart::hLikeVSPt_

Definition at line 1456 of file Histograms.h.

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

TProfile* HLikelihoodVSPart::hLikeVSPt_prof_

Definition at line 1459 of file Histograms.h.

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