CMS 3D CMS Logo

Public Member Functions | Public Attributes

HPartVSEta Class Reference

#include <Histograms.h>

Inheritance diagram for HPartVSEta:
Histograms

List of all members.

Public Member Functions

virtual void Clear ()
virtual void Fill (const CLHEP::HepLorentzVector &momentum, const double &weight=1.)
virtual void Fill (const reco::Particle::LorentzVector &p4, const double &weight=1.)
 HPartVSEta (const TString &name, const double &minMass=0., const double &maxMass=100., const double &maxPt=100.)
virtual void Write ()
 ~HPartVSEta ()

Public Attributes

TH2F * hMassVSEta_
TProfile * hMassVSEta_prof_
TH2F * hPtVSEta_
TProfile * hPtVSEta_prof_

Detailed Description

Definition at line 428 of file Histograms.h.


Constructor & Destructor Documentation

HPartVSEta::HPartVSEta ( const TString &  name,
const double &  minMass = 0.,
const double &  maxMass = 100.,
const double &  maxPt = 100. 
) [inline]

Definition at line 431 of file Histograms.h.

References hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, hPtVSEta_prof_, mergeVDriftHistosByStation::name, and Histograms::name_.

  {
    name_ = name;
    hPtVSEta_ = new TH2F( name+"_PtVSEta", "transverse momentum vs pseudorapidity", 
                          64, -3.0, 3.0, 200, 0, maxPt );
    hMassVSEta_ = new TH2F( name+"_MassVSEta", "mass vs pseudorapidity", 
                            64, -3.0, 3.0, 40, minMass, maxMass );
    // TD profile histograms
    // ---------------------
    hPtVSEta_prof_ = new TProfile( name+"_PtVSEta_prof", "mass vs pseudorapidity", 
                                   12, -3, 3, 0, maxPt );
    hMassVSEta_prof_ = new TProfile( name+"_MassVSEta_prof", "mass vs pseudorapidity", 
                                     12, -3, 3, minMass, maxMass );
  }
HPartVSEta::~HPartVSEta ( ) [inline]

Definition at line 446 of file Histograms.h.

References hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.

                {
    delete hPtVSEta_;
    delete hMassVSEta_;
    delete hPtVSEta_prof_;
    delete hMassVSEta_prof_;
  }

Member Function Documentation

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

Implements Histograms.

Definition at line 477 of file Histograms.h.

References hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.

                       {
    hPtVSEta_->Clear();
    hPtVSEta_prof_->Clear();
    hMassVSEta_->Clear();
    hMassVSEta_prof_->Clear();
  }
virtual void HPartVSEta::Fill ( const CLHEP::HepLorentzVector &  momentum,
const double &  weight = 1. 
) [inline, virtual]

Reimplemented from Histograms.

Definition at line 457 of file Histograms.h.

References hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, hPtVSEta_prof_, and CommonMethods::weight().

                                                                                         {
    hPtVSEta_->Fill(momentum.eta(),momentum.perp(), weight);
    hPtVSEta_prof_->Fill(momentum.eta(),momentum.perp(), weight);

    hMassVSEta_->Fill(momentum.eta(),momentum.m(), weight);
    hMassVSEta_prof_->Fill(momentum.eta(),momentum.m(), weight);
  }
virtual void HPartVSEta::Fill ( const reco::Particle::LorentzVector p4,
const double &  weight = 1. 
) [inline, virtual]

Reimplemented from Histograms.

Definition at line 453 of file Histograms.h.

References CommonMethods::weight().

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

Implements Histograms.

Definition at line 465 of file Histograms.h.

References hMassVSEta_, hMassVSEta_prof_, hPtVSEta_, and hPtVSEta_prof_.

                       {
    hPtVSEta_->Write();
    hPtVSEta_prof_->Write();
    hMassVSEta_->Write();
    hMassVSEta_prof_->Write();

    //     std::vector<TGraphErrors*> graphs( (MuScleFitUtils::fitMass(hMassVSEta_)) );
    //     for (std::vector<TGraphErrors*>::const_iterator graph = graphs.begin(); graph != graphs.end(); graph++) {
    //       (*graph)->Write();
    //     }
  }

Member Data Documentation

Definition at line 487 of file Histograms.h.

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

Definition at line 488 of file Histograms.h.

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

Definition at line 486 of file Histograms.h.

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

Definition at line 489 of file Histograms.h.

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