CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
HFunctionResolutionVarianceCheck Class Reference

#include <Histograms.h>

Inheritance diagram for HFunctionResolutionVarianceCheck:
HFunctionResolution Histograms

Public Member Functions

virtual void Fill (const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
 
 HFunctionResolutionVarianceCheck (TFile *outputFile, const TString &name, const double ptMax=200)
 
void Write ()
 
 ~HFunctionResolutionVarianceCheck ()
 
- Public Member Functions inherited from HFunctionResolution
virtual void Clear ()
 
 HFunctionResolution (TFile *outputFile, const TString &name, const double &ptMax=100, const int totBinsY=300)
 
 ~HFunctionResolution ()
 
- 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 double &weight=1.)
 
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 &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 ()
 

Protected Attributes

TH1D *** histoVarianceCheck_
 
- Protected Attributes inherited from HFunctionResolution
double deltaX_
 
double deltaY_
 
TH1F * hReso_
 
TProfile * hResoVSEta_prof_
 
TProfile * hResoVSPhi_prof_
 
TProfile * hResoVSPhiMinus_prof_
 
TProfile * hResoVSPhiPlus_prof_
 
TProfile * hResoVSPt_Bar_prof_
 
TProfile * hResoVSPt_Endc_17_prof_
 
TProfile * hResoVSPt_Endc_20_prof_
 
TProfile * hResoVSPt_Endc_24_prof_
 
TProfile * hResoVSPt_Ovlap_prof_
 
TProfile * hResoVSPt_prof_
 
TH2F * hResoVSPtEta_
 
int ** resoCount_
 
double ** resoVsPtEta_
 
int totBinsX_
 
int totBinsY_
 
double xMin_
 
double yMin_
 
- Protected Attributes inherited from Histograms
TDirectory * histoDir_
 
TString name_
 
TFile * outputFile_
 
double theWeight_
 

Additional Inherited Members

- Protected Member Functions inherited from HFunctionResolution
int getXindex (const double &x) const
 
int getYindex (const double &y) const
 

Detailed Description

Definition at line 1657 of file Histograms.h.

Constructor & Destructor Documentation

HFunctionResolutionVarianceCheck::HFunctionResolutionVarianceCheck ( TFile *  outputFile,
const TString &  name,
const double  ptMax = 200 
)
inline

Definition at line 1660 of file Histograms.h.

References histoVarianceCheck_, i, j, mergeVDriftHistosByStation::name, HFunctionResolution::totBinsX_, and HFunctionResolution::totBinsY_.

1660  :
1662  {
1663  histoVarianceCheck_ = new TH1D**[totBinsX_];
1664  for( int i=0; i<totBinsX_; ++i ) {
1665  histoVarianceCheck_[i] = new TH1D*[totBinsY_];
1666  for( int j=0; j<totBinsY_; ++j ) {
1667  std::stringstream namei;
1668  std::stringstream namej;
1669  namei << i;
1670  namej << j;
1671  histoVarianceCheck_[i][j] = new TH1D(name+"_"+namei.str()+"_"+namej.str(), name, 100, 0., 1.);
1672  }
1673  }
1674  }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9
HFunctionResolution(TFile *outputFile, const TString &name, const double &ptMax=100, const int totBinsY=300)
Definition: Histograms.h:1476
HFunctionResolutionVarianceCheck::~HFunctionResolutionVarianceCheck ( )
inline

Definition at line 1675 of file Histograms.h.

References histoVarianceCheck_, i, j, HFunctionResolution::totBinsX_, and HFunctionResolution::totBinsY_.

1675  {
1676  for( int i=0; i<totBinsX_; ++i ) {
1677  for( int j=0; j<totBinsY_; ++j ) {
1678  delete histoVarianceCheck_[i][j];
1679  }
1680  delete[] histoVarianceCheck_;
1681  }
1682  delete[] histoVarianceCheck_;
1683  }
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9

Member Function Documentation

virtual void HFunctionResolutionVarianceCheck::Fill ( const reco::Particle::LorentzVector p4,
const double &  resValue,
const int  charge 
)
inlinevirtual

Reimplemented from HFunctionResolution.

Definition at line 1684 of file Histograms.h.

References HFunctionResolution::Fill(), HFunctionResolution::getXindex(), HFunctionResolution::getYindex(), histoVarianceCheck_, HFunctionResolution::totBinsX_, and HFunctionResolution::totBinsY_.

1684  {
1685  if( resValue != resValue ) return;
1686  // Need to convert the (x,y) values to the array indeces
1687  int xIndex = getXindex(p4.Pt());
1688  int yIndex = getYindex(p4.Eta());
1689  // Only fill values if they are in the selected range
1690  if ( 0 <= xIndex && xIndex < totBinsX_ && 0 <= yIndex && yIndex < totBinsY_ ) {
1691  histoVarianceCheck_[xIndex][yIndex]->Fill(resValue);
1692  }
1693  // Call also the fill of the base class
1694  HFunctionResolution::Fill( p4, resValue, charge );
1695  }
double charge(const std::vector< uint8_t > &Ampls)
int getYindex(const double &y) const
Definition: Histograms.h:1634
double p4[4]
Definition: TauolaWrapper.h:92
int getXindex(const double &x) const
Definition: Histograms.h:1631
virtual void Fill(const reco::Particle::LorentzVector &p4, const double &resValue, const int charge)
Definition: Histograms.h:1534
void HFunctionResolutionVarianceCheck::Write ( )
inlinevirtual

Reimplemented from HFunctionResolution.

Definition at line 1696 of file Histograms.h.

References Histograms::histoDir_, histoVarianceCheck_, HFunctionResolution::totBinsX_, HFunctionResolution::totBinsY_, and HFunctionResolution::Write().

1696  {
1697  if(histoDir_ != 0) histoDir_->cd();
1698  for( int xBin=0; xBin<totBinsX_; ++xBin ) {
1699  for( int yBin=0; yBin<totBinsY_; ++yBin ) {
1700  histoVarianceCheck_[xBin][yBin]->Write();
1701  }
1702  }
1704  }
TDirectory * histoDir_
Definition: Histograms.h:126
virtual void Write()
Definition: Histograms.h:1575

Member Data Documentation

TH1D*** HFunctionResolutionVarianceCheck::histoVarianceCheck_
protected