#include <Histograms.h>
Public Member Functions | |
virtual void | Clear () |
virtual void | Fill (CLHEP::HepLorentzVector momentum, double likeValue) |
virtual void | Fill (const reco::Particle::LorentzVector &p4, const double &likeValue) |
HLikelihoodVSPart (const TString &name) | |
HLikelihoodVSPart (const TString &name, TFile *file) | |
virtual void | Write () |
~HLikelihoodVSPart () | |
Public Attributes | |
TH2F * | hLikeVSEta_ |
TProfile * | hLikeVSEta_prof_ |
TH2F * | hLikeVSPhi_ |
TProfile * | hLikeVSPhi_prof_ |
TH2F * | hLikeVSPt_ |
TProfile * | hLikeVSPt_prof_ |
Definition at line 1105 of file Histograms.h.
HLikelihoodVSPart::HLikelihoodVSPart | ( | const TString & | name | ) | [inline] |
Definition at line 1108 of file Histograms.h.
References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, hLikeVSPt_prof_, AlCaRecoCosmics_cfg::name, and Histograms::name_.
{ name_ = name; // Kinematical variables // --------------------- hLikeVSPt_ = new TH2F (name+"_LikelihoodVSPt", "likelihood vs muon transverse momentum", 100, 0., 100., 100, -100., 100.); hLikeVSEta_ = new TH2F (name+"_LikelihoodVSEta", "likelihood vs muon pseudorapidity", 100, -4.,4., 100, -100., 100.); hLikeVSPhi_ = new TH2F (name+"_LikelihoodVSPhi", "likelihood vs muon phi angle", 100, -3.2, 3.2, 100, -100., 100.); hLikeVSPt_prof_ = new TProfile (name+"_LikelihoodVSPt_prof", "likelihood vs muon transverse momentum", 40, 0., 100., -1000., 1000. ); hLikeVSEta_prof_ = new TProfile (name+"_LikelihoodVSEta_prof", "likelihood vs muon pseudorapidity", 40, -4.,4., -1000., 1000. ); hLikeVSPhi_prof_ = new TProfile (name+"_LikelihoodVSPhi_prof", "likelihood vs muon phi angle", 40, -3.2, 3.2, -1000., 1000.); }
HLikelihoodVSPart::HLikelihoodVSPart | ( | const TString & | name, |
TFile * | file | ||
) | [inline] |
Definition at line 1121 of file Histograms.h.
References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, hLikeVSPt_prof_, AlCaRecoCosmics_cfg::name, and Histograms::name_.
{ name_ = name; hLikeVSPt_ = (TH2F *) file->Get(name+"_LikelihoodVSPt"); hLikeVSEta_ = (TH2F *) file->Get(name+"_LikelihoodVSEta"); hLikeVSPhi_ = (TH2F *) file->Get(name+"_LikelihoodVSPhi"); hLikeVSPt_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSPt_prof"); hLikeVSEta_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSEta_prof"); hLikeVSPhi_prof_ = (TProfile *) file->Get(name+"_LikelihoodVSPhi_prof"); }
HLikelihoodVSPart::~HLikelihoodVSPart | ( | ) | [inline] |
Definition at line 1131 of file Histograms.h.
References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, and hLikeVSPt_prof_.
{ delete hLikeVSPt_; delete hLikeVSEta_; delete hLikeVSPhi_; delete hLikeVSPt_prof_; delete hLikeVSEta_prof_; delete hLikeVSPhi_prof_; }
virtual void HLikelihoodVSPart::Clear | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 1162 of file Histograms.h.
References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, and hLikeVSPt_prof_.
{ hLikeVSPt_->Reset("ICE"); hLikeVSEta_->Reset("ICE"); hLikeVSPhi_->Reset("ICE"); hLikeVSPt_prof_->Reset("ICE"); hLikeVSEta_prof_->Reset("ICE"); hLikeVSPhi_prof_->Reset("ICE"); }
virtual void HLikelihoodVSPart::Fill | ( | CLHEP::HepLorentzVector | momentum, |
double | likeValue | ||
) | [inline, virtual] |
Definition at line 1144 of file Histograms.h.
References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, and hLikeVSPt_prof_.
{ hLikeVSPt_->Fill(momentum.perp(),likeValue); hLikeVSEta_->Fill(momentum.eta(),likeValue); hLikeVSPhi_->Fill(momentum.phi(),likeValue); hLikeVSPt_prof_->Fill(momentum.perp(),likeValue); hLikeVSEta_prof_->Fill(momentum.eta(),likeValue); hLikeVSPhi_prof_->Fill(momentum.phi(),likeValue); }
virtual void HLikelihoodVSPart::Fill | ( | const reco::Particle::LorentzVector & | p4, |
const double & | likeValue | ||
) | [inline, virtual] |
Reimplemented from Histograms.
Definition at line 1140 of file Histograms.h.
virtual void HLikelihoodVSPart::Write | ( | ) | [inline, virtual] |
Implements Histograms.
Definition at line 1153 of file Histograms.h.
References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, and hLikeVSPt_prof_.
{ hLikeVSPt_->Write(); hLikeVSEta_->Write(); hLikeVSPhi_->Write(); hLikeVSPt_prof_->Write(); hLikeVSEta_prof_->Write(); hLikeVSPhi_prof_->Write(); }
Definition at line 1173 of file Histograms.h.
Referenced by Clear(), Fill(), HLikelihoodVSPart(), Write(), and ~HLikelihoodVSPart().
TProfile* HLikelihoodVSPart::hLikeVSEta_prof_ |
Definition at line 1176 of file Histograms.h.
Referenced by Clear(), Fill(), HLikelihoodVSPart(), Write(), and ~HLikelihoodVSPart().
Definition at line 1174 of file Histograms.h.
Referenced by Clear(), Fill(), HLikelihoodVSPart(), Write(), and ~HLikelihoodVSPart().
TProfile* HLikelihoodVSPart::hLikeVSPhi_prof_ |
Definition at line 1177 of file Histograms.h.
Referenced by Clear(), Fill(), HLikelihoodVSPart(), Write(), and ~HLikelihoodVSPart().
Definition at line 1172 of file Histograms.h.
Referenced by Clear(), Fill(), HLikelihoodVSPart(), Write(), and ~HLikelihoodVSPart().
TProfile* HLikelihoodVSPart::hLikeVSPt_prof_ |
Definition at line 1175 of file Histograms.h.
Referenced by Clear(), Fill(), HLikelihoodVSPart(), Write(), and ~HLikelihoodVSPart().