CMS 3D CMS Logo

Public Member Functions | Public Attributes

HLikelihoodVSPart Class Reference

#include <Histograms.h>

Inheritance diagram for HLikelihoodVSPart:
Histograms

List of all members.

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_

Detailed Description

Definition at line 1388 of file Histograms.h.


Constructor & Destructor Documentation

HLikelihoodVSPart::HLikelihoodVSPart ( const TString &  name) [inline]

Definition at line 1391 of file Histograms.h.

References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, hLikeVSPt_prof_, mergeVDriftHistosByStation::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 1404 of file Histograms.h.

References hLikeVSEta_, hLikeVSEta_prof_, hLikeVSPhi_, hLikeVSPhi_prof_, hLikeVSPt_, hLikeVSPt_prof_, mergeVDriftHistosByStation::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 1414 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_;
  } 

Member Function Documentation

virtual void HLikelihoodVSPart::Clear ( ) [inline, virtual]

Implements Histograms.

Definition at line 1445 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 1427 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 1423 of file Histograms.h.

                                                                                    {
    Fill(CLHEP::HepLorentzVector(p4.x(),p4.y(),p4.z(),p4.t()), likeValue);
  }
virtual void HLikelihoodVSPart::Write ( ) [inline, virtual]

Implements Histograms.

Definition at line 1436 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();
  }

Member Data Documentation

Definition at line 1456 of file Histograms.h.

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

Definition at line 1459 of file Histograms.h.

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

Definition at line 1457 of file Histograms.h.

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

Definition at line 1460 of file Histograms.h.

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

Definition at line 1455 of file Histograms.h.

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

Definition at line 1458 of file Histograms.h.

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