CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes

CentralityBins Class Reference

#include <CentralityBins.h>

Inheritance diagram for CentralityBins:
TNamed CentralityProvider

List of all members.

Public Types

typedef std::map< int, const
CentralityBins * > 
RunMap

Public Member Functions

float areaMean (double value) const
float areaMeanOfBin (int bin) const
float areaSigma (double value) const
float areaSigmaOfBin (int bin) const
float bMean (double value) const
float bMeanOfBin (int bin) const
float bSigma (double value) const
float bSigmaOfBin (int bin) const
 CentralityBins (const char *name, const char *title, int nbins)
 CentralityBins ()
float eccentricityMean (double value) const
float eccentricityMeanOfBin (int bin) const
float eccentricityRPMean (double value) const
float eccentricityRPMeanOfBin (int bin) const
float eccentricityRPSigma (double value) const
float eccentricityRPSigmaOfBin (int bin) const
float eccentricitySigma (double value) const
float eccentricitySigmaOfBin (int bin) const
int getBin (double value) const
int getNbins () const
float lowEdge (double value) const
float lowEdgeOfBin (int bin) const
float NcollMean (double value) const
float NcollMeanOfBin (int bin) const
float NcollSigma (double value) const
float NcollSigmaOfBin (int bin) const
float NhardMean (double value) const
float NhardMeanOfBin (int bin) const
float NhardSigma (double value) const
float NhardSigmaOfBin (int bin) const
float NpartMean (double value) const
float NpartMeanOfBin (int bin) const
float NpartSigma (double value) const
float NpartSigmaOfBin (int bin) const
float triangularityMean (double value) const
float triangularityMeanOfBin (int bin) const
float triangularitySigma (double value) const
float triangularitySigmaOfBin (int bin) const
 ~CentralityBins ()

Public Attributes

std::vector< CBintable_

Detailed Description

Definition at line 37 of file CentralityBins.h.


Member Typedef Documentation

typedef std::map<int, const CentralityBins*> CentralityBins::RunMap

Definition at line 40 of file CentralityBins.h.


Constructor & Destructor Documentation

CentralityBins::CentralityBins ( ) [inline]

Definition at line 42 of file CentralityBins.h.

{;}
CentralityBins::CentralityBins ( const char *  name,
const char *  title,
int  nbins 
) [inline]

Definition at line 43 of file CentralityBins.h.

References b, j, pileupCalc::nbins, and table_.

                                                                  : TNamed(name,title) {
      table_.reserve(nbins);
      for(int j = 0; j < nbins; ++j){
         CBin b;
         table_.push_back(b); 
      }
   }
CentralityBins::~CentralityBins ( ) [inline]

Definition at line 50 of file CentralityBins.h.

{;}

Member Function Documentation

float CentralityBins::areaMean ( double  value) const [inline]

Definition at line 84 of file CentralityBins.h.

References areaMeanOfBin(), and getBin().

{ return areaMeanOfBin(getBin(value));}
float CentralityBins::areaMeanOfBin ( int  bin) const [inline]

Definition at line 85 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by areaMean().

{ return table_[bin].s_mean;}
float CentralityBins::areaSigma ( double  value) const [inline]

Definition at line 86 of file CentralityBins.h.

References areaSigmaOfBin(), and getBin().

float CentralityBins::areaSigmaOfBin ( int  bin) const [inline]

Definition at line 87 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by areaSigma().

{ return table_[bin].s_var;}
float CentralityBins::bMean ( double  value) const [inline]

Definition at line 67 of file CentralityBins.h.

References bMeanOfBin(), and getBin().

{ return bMeanOfBin(getBin(value));}
float CentralityBins::bMeanOfBin ( int  bin) const [inline]
float CentralityBins::bSigma ( double  value) const [inline]

Definition at line 69 of file CentralityBins.h.

References bSigmaOfBin(), and getBin().

{ return bSigmaOfBin(getBin(value));}
float CentralityBins::bSigmaOfBin ( int  bin) const [inline]
float CentralityBins::eccentricityMean ( double  value) const [inline]

Definition at line 76 of file CentralityBins.h.

References eccentricityMeanOfBin(), and getBin().

float CentralityBins::eccentricityMeanOfBin ( int  bin) const [inline]

Definition at line 77 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityMean().

{ return table_[bin].ecc2_mean;}
float CentralityBins::eccentricityRPMean ( double  value) const [inline]

Definition at line 72 of file CentralityBins.h.

References eccentricityRPMeanOfBin(), and getBin().

float CentralityBins::eccentricityRPMeanOfBin ( int  bin) const [inline]

Definition at line 73 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityRPMean().

{ return table_[bin].eccRP_mean;}
float CentralityBins::eccentricityRPSigma ( double  value) const [inline]

Definition at line 74 of file CentralityBins.h.

References eccentricityRPSigmaOfBin(), and getBin().

float CentralityBins::eccentricityRPSigmaOfBin ( int  bin) const [inline]

Definition at line 75 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityRPSigma().

{ return table_[bin].eccRP_var;}
float CentralityBins::eccentricitySigma ( double  value) const [inline]

Definition at line 78 of file CentralityBins.h.

References eccentricitySigmaOfBin(), and getBin().

float CentralityBins::eccentricitySigmaOfBin ( int  bin) const [inline]

Definition at line 79 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricitySigma().

{ return table_[bin].ecc2_var;}      
int CentralityBins::getBin ( double  value) const

Definition at line 5 of file CentralityBins.cc.

References newFWLiteAna::bin, i, and table_.

Referenced by areaMean(), areaSigma(), bMean(), bSigma(), eccentricityMean(), eccentricityRPMean(), eccentricityRPSigma(), eccentricitySigma(), lowEdge(), NcollMean(), NcollSigma(), NhardMean(), NhardSigma(), NpartMean(), NpartSigma(), triangularityMean(), and triangularitySigma().

                                             {

   int bin = table_.size() - 1;
   for(unsigned int i = 0; i < table_.size(); ++i){
      if(value >= table_[i].bin_edge){
         bin = i;
         return bin;
      }
   }

   return bin;
}
int CentralityBins::getNbins ( ) const [inline]

Reimplemented in CentralityProvider.

Definition at line 52 of file CentralityBins.h.

References table_.

Referenced by CentralityTableProducer::endJob(), and CentralityTableHandler::getNewObjects().

{return table_.size();}
float CentralityBins::lowEdge ( double  value) const [inline]

Definition at line 53 of file CentralityBins.h.

References getBin(), and lowEdgeOfBin().

{ return lowEdgeOfBin(getBin(value));}
float CentralityBins::lowEdgeOfBin ( int  bin) const [inline]
float CentralityBins::NcollMean ( double  value) const [inline]

Definition at line 59 of file CentralityBins.h.

References getBin(), and NcollMeanOfBin().

float CentralityBins::NcollMeanOfBin ( int  bin) const [inline]
float CentralityBins::NcollSigma ( double  value) const [inline]

Definition at line 61 of file CentralityBins.h.

References getBin(), and NcollSigmaOfBin().

float CentralityBins::NcollSigmaOfBin ( int  bin) const [inline]
float CentralityBins::NhardMean ( double  value) const [inline]

Definition at line 63 of file CentralityBins.h.

References getBin(), and NhardMeanOfBin().

float CentralityBins::NhardMeanOfBin ( int  bin) const [inline]
float CentralityBins::NhardSigma ( double  value) const [inline]

Definition at line 65 of file CentralityBins.h.

References getBin(), and NhardSigmaOfBin().

float CentralityBins::NhardSigmaOfBin ( int  bin) const [inline]
float CentralityBins::NpartMean ( double  value) const [inline]

Definition at line 55 of file CentralityBins.h.

References getBin(), and NpartMeanOfBin().

float CentralityBins::NpartMeanOfBin ( int  bin) const [inline]
float CentralityBins::NpartSigma ( double  value) const [inline]

Definition at line 57 of file CentralityBins.h.

References getBin(), and NpartSigmaOfBin().

float CentralityBins::NpartSigmaOfBin ( int  bin) const [inline]
float CentralityBins::triangularityMean ( double  value) const [inline]

Definition at line 80 of file CentralityBins.h.

References getBin(), and triangularityMeanOfBin().

float CentralityBins::triangularityMeanOfBin ( int  bin) const [inline]

Definition at line 81 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by triangularityMean().

{ return table_[bin].ecc3_mean;}
float CentralityBins::triangularitySigma ( double  value) const [inline]

Definition at line 82 of file CentralityBins.h.

References getBin(), and triangularitySigmaOfBin().

float CentralityBins::triangularitySigmaOfBin ( int  bin) const [inline]

Definition at line 83 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by triangularitySigma().

{ return table_[bin].ecc3_var;}

Member Data Documentation