CMS 3D CMS Logo

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

#include <CentralityBins.h>

Inheritance diagram for CentralityBins:
CentralityProvider

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 ()
 
 CentralityBins (const char *name, const char *title, int nbins)
 
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.

42 {;}
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_.

43  : TNamed(name,title) {
44  table_.reserve(nbins);
45  for(int j = 0; j < nbins; ++j){
46  CBin b;
47  table_.push_back(b);
48  }
49  }
int j
Definition: DBlmapReader.cc:9
double b
Definition: hdecay.h:120
std::vector< CBin > table_
CentralityBins::~CentralityBins ( )
inline

Definition at line 50 of file CentralityBins.h.

50 {;}

Member Function Documentation

float CentralityBins::areaMean ( double  value) const
inline

Definition at line 84 of file CentralityBins.h.

References areaMeanOfBin(), and getBin().

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

Definition at line 85 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by areaMean().

85 { return table_[bin].s_mean;}
std::vector< CBin > table_
float CentralityBins::areaSigma ( double  value) const
inline

Definition at line 86 of file CentralityBins.h.

References areaSigmaOfBin(), and getBin().

86 { return areaSigmaOfBin(getBin(value));}
float areaSigmaOfBin(int bin) const
int getBin(double value) const
float CentralityBins::areaSigmaOfBin ( int  bin) const
inline

Definition at line 87 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by areaSigma().

87 { return table_[bin].s_var;}
std::vector< CBin > table_
float CentralityBins::bMean ( double  value) const
inline

Definition at line 67 of file CentralityBins.h.

References bMeanOfBin(), and getBin().

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

Definition at line 68 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

68 { return table_[bin].b_mean;}
std::vector< CBin > table_
float CentralityBins::bSigma ( double  value) const
inline

Definition at line 69 of file CentralityBins.h.

References bSigmaOfBin(), and getBin().

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

Definition at line 70 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

70 { return table_[bin].b_var;}
std::vector< CBin > table_
float CentralityBins::eccentricityMean ( double  value) const
inline

Definition at line 76 of file CentralityBins.h.

References eccentricityMeanOfBin(), and getBin().

float eccentricityMeanOfBin(int bin) const
int getBin(double value) const
float CentralityBins::eccentricityMeanOfBin ( int  bin) const
inline

Definition at line 77 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityMean().

77 { return table_[bin].ecc2_mean;}
std::vector< CBin > table_
float CentralityBins::eccentricityRPMean ( double  value) const
inline

Definition at line 72 of file CentralityBins.h.

References eccentricityRPMeanOfBin(), and getBin().

float eccentricityRPMeanOfBin(int bin) const
int getBin(double value) const
float CentralityBins::eccentricityRPMeanOfBin ( int  bin) const
inline

Definition at line 73 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityRPMean().

73 { return table_[bin].eccRP_mean;}
std::vector< CBin > table_
float CentralityBins::eccentricityRPSigma ( double  value) const
inline

Definition at line 74 of file CentralityBins.h.

References eccentricityRPSigmaOfBin(), and getBin().

float eccentricityRPSigmaOfBin(int bin) const
int getBin(double value) const
float CentralityBins::eccentricityRPSigmaOfBin ( int  bin) const
inline

Definition at line 75 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityRPSigma().

75 { return table_[bin].eccRP_var;}
std::vector< CBin > table_
float CentralityBins::eccentricitySigma ( double  value) const
inline

Definition at line 78 of file CentralityBins.h.

References eccentricitySigmaOfBin(), and getBin().

float eccentricitySigmaOfBin(int bin) const
int getBin(double value) const
float CentralityBins::eccentricitySigmaOfBin ( int  bin) const
inline

Definition at line 79 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricitySigma().

79 { return table_[bin].ecc2_var;}
std::vector< CBin > table_
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(), CentralityProvider::getBin(), lowEdge(), NcollMean(), NcollSigma(), NhardMean(), NhardSigma(), NpartMean(), NpartSigma(), triangularityMean(), and triangularitySigma().

5  {
6 
7  int bin = table_.size() - 1;
8  for(unsigned int i = 0; i < table_.size(); ++i){
9  if(value >= table_[i].bin_edge){
10  bin = i;
11  return bin;
12  }
13  }
14 
15  return bin;
16 }
int i
Definition: DBlmapReader.cc:9
std::vector< CBin > table_
int CentralityBins::getNbins ( ) const
inline

Definition at line 52 of file CentralityBins.h.

References table_.

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

52 {return table_.size();}
std::vector< CBin > table_
float CentralityBins::lowEdge ( double  value) const
inline

Definition at line 53 of file CentralityBins.h.

References getBin(), and lowEdgeOfBin().

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

Definition at line 54 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

54 { return table_[bin].bin_edge;}
std::vector< CBin > table_
float CentralityBins::NcollMean ( double  value) const
inline

Definition at line 59 of file CentralityBins.h.

References getBin(), and NcollMeanOfBin().

59 { return NcollMeanOfBin(getBin(value));}
float NcollMeanOfBin(int bin) const
int getBin(double value) const
float CentralityBins::NcollMeanOfBin ( int  bin) const
inline

Definition at line 60 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

60 { return table_[bin].n_coll_mean;}
std::vector< CBin > table_
float CentralityBins::NcollSigma ( double  value) const
inline

Definition at line 61 of file CentralityBins.h.

References getBin(), and NcollSigmaOfBin().

61 { return NcollSigmaOfBin(getBin(value));}
int getBin(double value) const
float NcollSigmaOfBin(int bin) const
float CentralityBins::NcollSigmaOfBin ( int  bin) const
inline

Definition at line 62 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

62 { return table_[bin].n_coll_var;}
std::vector< CBin > table_
float CentralityBins::NhardMean ( double  value) const
inline

Definition at line 63 of file CentralityBins.h.

References getBin(), and NhardMeanOfBin().

63 { return NhardMeanOfBin(getBin(value));}
float NhardMeanOfBin(int bin) const
int getBin(double value) const
float CentralityBins::NhardMeanOfBin ( int  bin) const
inline

Definition at line 64 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

64 { return table_[bin].n_hard_mean;}
std::vector< CBin > table_
float CentralityBins::NhardSigma ( double  value) const
inline

Definition at line 65 of file CentralityBins.h.

References getBin(), and NhardSigmaOfBin().

65 { return NhardSigmaOfBin(getBin(value));}
int getBin(double value) const
float NhardSigmaOfBin(int bin) const
float CentralityBins::NhardSigmaOfBin ( int  bin) const
inline

Definition at line 66 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

66 { return table_[bin].n_hard_var;}
std::vector< CBin > table_
float CentralityBins::NpartMean ( double  value) const
inline

Definition at line 55 of file CentralityBins.h.

References getBin(), and NpartMeanOfBin().

55 { return NpartMeanOfBin(getBin(value));}
float NpartMeanOfBin(int bin) const
int getBin(double value) const
float CentralityBins::NpartMeanOfBin ( int  bin) const
inline

Definition at line 56 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

56 { return table_[bin].n_part_mean;}
std::vector< CBin > table_
float CentralityBins::NpartSigma ( double  value) const
inline

Definition at line 57 of file CentralityBins.h.

References getBin(), and NpartSigmaOfBin().

57 { return NpartSigmaOfBin(getBin(value));}
float NpartSigmaOfBin(int bin) const
int getBin(double value) const
float CentralityBins::NpartSigmaOfBin ( int  bin) const
inline

Definition at line 58 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

58 { return table_[bin].n_part_var;}
std::vector< CBin > table_
float CentralityBins::triangularityMean ( double  value) const
inline

Definition at line 80 of file CentralityBins.h.

References getBin(), and triangularityMeanOfBin().

float triangularityMeanOfBin(int bin) const
int getBin(double value) const
float CentralityBins::triangularityMeanOfBin ( int  bin) const
inline

Definition at line 81 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by triangularityMean().

81 { return table_[bin].ecc3_mean;}
std::vector< CBin > table_
float CentralityBins::triangularitySigma ( double  value) const
inline

Definition at line 82 of file CentralityBins.h.

References getBin(), and triangularitySigmaOfBin().

float triangularitySigmaOfBin(int bin) const
int getBin(double value) const
float CentralityBins::triangularitySigmaOfBin ( int  bin) const
inline

Definition at line 83 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by triangularitySigma().

83 { return table_[bin].ecc3_var;}
std::vector< CBin > table_

Member Data Documentation

std::vector<CBin> CentralityBins::table_