CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
CentralityBins Class Reference

#include <CentralityBins.h>

Inheritance diagram for CentralityBins:

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 () override
 

Public Attributes

std::vector< CBintable_
 

Detailed Description

Definition at line 37 of file CentralityBins.h.

Member Typedef Documentation

◆ RunMap

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

Definition at line 39 of file CentralityBins.h.

Constructor & Destructor Documentation

◆ CentralityBins() [1/2]

CentralityBins::CentralityBins ( )
inline

Definition at line 41 of file CentralityBins.h.

41 { ; }

◆ CentralityBins() [2/2]

CentralityBins::CentralityBins ( const char *  name,
const char *  title,
int  nbins 
)
inline

Definition at line 42 of file CentralityBins.h.

42  : TNamed(name, title) {
43  table_.reserve(nbins);
44  for (int j = 0; j < nbins; ++j) {
45  CBin b;
46  table_.push_back(b);
47  }
48  }

References b, dqmiolumiharvest::j, LaserClient_cfi::nbins, and table_.

◆ ~CentralityBins()

CentralityBins::~CentralityBins ( )
inlineoverride

Definition at line 49 of file CentralityBins.h.

49 { ; }

Member Function Documentation

◆ areaMean()

float CentralityBins::areaMean ( double  value) const
inline

Definition at line 83 of file CentralityBins.h.

83 { return areaMeanOfBin(getBin(value)); }

References areaMeanOfBin(), and getBin().

◆ areaMeanOfBin()

float CentralityBins::areaMeanOfBin ( int  bin) const
inline

Definition at line 84 of file CentralityBins.h.

84 { return table_[bin].s_mean; }

References newFWLiteAna::bin, and table_.

Referenced by areaMean().

◆ areaSigma()

float CentralityBins::areaSigma ( double  value) const
inline

Definition at line 85 of file CentralityBins.h.

85 { return areaSigmaOfBin(getBin(value)); }

References areaSigmaOfBin(), and getBin().

◆ areaSigmaOfBin()

float CentralityBins::areaSigmaOfBin ( int  bin) const
inline

Definition at line 86 of file CentralityBins.h.

86 { return table_[bin].s_var; }

References newFWLiteAna::bin, and table_.

Referenced by areaSigma().

◆ bMean()

float CentralityBins::bMean ( double  value) const
inline

Definition at line 66 of file CentralityBins.h.

66 { return bMeanOfBin(getBin(value)); }

References bMeanOfBin(), and getBin().

◆ bMeanOfBin()

float CentralityBins::bMeanOfBin ( int  bin) const
inline

Definition at line 67 of file CentralityBins.h.

67 { return table_[bin].b_mean; }

References newFWLiteAna::bin, and table_.

Referenced by bMean(), and CentralityTableProducer::endJob().

◆ bSigma()

float CentralityBins::bSigma ( double  value) const
inline

Definition at line 68 of file CentralityBins.h.

68 { return bSigmaOfBin(getBin(value)); }

References bSigmaOfBin(), and getBin().

◆ bSigmaOfBin()

float CentralityBins::bSigmaOfBin ( int  bin) const
inline

Definition at line 69 of file CentralityBins.h.

69 { return table_[bin].b_var; }

References newFWLiteAna::bin, and table_.

Referenced by bSigma(), and CentralityTableProducer::endJob().

◆ eccentricityMean()

float CentralityBins::eccentricityMean ( double  value) const
inline

Definition at line 75 of file CentralityBins.h.

References eccentricityMeanOfBin(), and getBin().

◆ eccentricityMeanOfBin()

float CentralityBins::eccentricityMeanOfBin ( int  bin) const
inline

Definition at line 76 of file CentralityBins.h.

76 { return table_[bin].ecc2_mean; }

References newFWLiteAna::bin, and table_.

Referenced by eccentricityMean().

◆ eccentricityRPMean()

float CentralityBins::eccentricityRPMean ( double  value) const
inline

Definition at line 71 of file CentralityBins.h.

References eccentricityRPMeanOfBin(), and getBin().

◆ eccentricityRPMeanOfBin()

float CentralityBins::eccentricityRPMeanOfBin ( int  bin) const
inline

Definition at line 72 of file CentralityBins.h.

72 { return table_[bin].eccRP_mean; }

References newFWLiteAna::bin, and table_.

Referenced by eccentricityRPMean().

◆ eccentricityRPSigma()

float CentralityBins::eccentricityRPSigma ( double  value) const
inline

Definition at line 73 of file CentralityBins.h.

References eccentricityRPSigmaOfBin(), and getBin().

◆ eccentricityRPSigmaOfBin()

float CentralityBins::eccentricityRPSigmaOfBin ( int  bin) const
inline

Definition at line 74 of file CentralityBins.h.

74 { return table_[bin].eccRP_var; }

References newFWLiteAna::bin, and table_.

Referenced by eccentricityRPSigma().

◆ eccentricitySigma()

float CentralityBins::eccentricitySigma ( double  value) const
inline

Definition at line 77 of file CentralityBins.h.

References eccentricitySigmaOfBin(), and getBin().

◆ eccentricitySigmaOfBin()

float CentralityBins::eccentricitySigmaOfBin ( int  bin) const
inline

Definition at line 78 of file CentralityBins.h.

78 { return table_[bin].ecc2_var; }

References newFWLiteAna::bin, and table_.

Referenced by eccentricitySigma().

◆ getBin()

int CentralityBins::getBin ( double  value) const

Definition at line 5 of file CentralityBins.cc.

5  {
6  int bin = table_.size() - 1;
7  for (unsigned int i = 0; i < table_.size(); ++i) {
8  if (value >= table_[i].bin_edge) {
9  bin = i;
10  return bin;
11  }
12  }
13 
14  return bin;
15 }

References newFWLiteAna::bin, mps_fire::i, and table_.

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

◆ getNbins()

int CentralityBins::getNbins ( ) const
inline

Definition at line 51 of file CentralityBins.h.

51 { return table_.size(); }

References table_.

Referenced by CentralityTableProducer::endJob().

◆ lowEdge()

float CentralityBins::lowEdge ( double  value) const
inline

Definition at line 52 of file CentralityBins.h.

52 { return lowEdgeOfBin(getBin(value)); }

References getBin(), and lowEdgeOfBin().

◆ lowEdgeOfBin()

float CentralityBins::lowEdgeOfBin ( int  bin) const
inline

Definition at line 53 of file CentralityBins.h.

53 { return table_[bin].bin_edge; }

References newFWLiteAna::bin, and table_.

Referenced by CentralityTableProducer::endJob(), and lowEdge().

◆ NcollMean()

float CentralityBins::NcollMean ( double  value) const
inline

Definition at line 58 of file CentralityBins.h.

58 { return NcollMeanOfBin(getBin(value)); }

References getBin(), and NcollMeanOfBin().

◆ NcollMeanOfBin()

float CentralityBins::NcollMeanOfBin ( int  bin) const
inline

Definition at line 59 of file CentralityBins.h.

59 { return table_[bin].n_coll_mean; }

References newFWLiteAna::bin, and table_.

Referenced by CentralityTableProducer::endJob(), and NcollMean().

◆ NcollSigma()

float CentralityBins::NcollSigma ( double  value) const
inline

Definition at line 60 of file CentralityBins.h.

60 { return NcollSigmaOfBin(getBin(value)); }

References getBin(), and NcollSigmaOfBin().

◆ NcollSigmaOfBin()

float CentralityBins::NcollSigmaOfBin ( int  bin) const
inline

Definition at line 61 of file CentralityBins.h.

61 { return table_[bin].n_coll_var; }

References newFWLiteAna::bin, and table_.

Referenced by CentralityTableProducer::endJob(), and NcollSigma().

◆ NhardMean()

float CentralityBins::NhardMean ( double  value) const
inline

Definition at line 62 of file CentralityBins.h.

62 { return NhardMeanOfBin(getBin(value)); }

References getBin(), and NhardMeanOfBin().

◆ NhardMeanOfBin()

float CentralityBins::NhardMeanOfBin ( int  bin) const
inline

Definition at line 63 of file CentralityBins.h.

63 { return table_[bin].n_hard_mean; }

References newFWLiteAna::bin, and table_.

Referenced by CentralityTableProducer::endJob(), and NhardMean().

◆ NhardSigma()

float CentralityBins::NhardSigma ( double  value) const
inline

Definition at line 64 of file CentralityBins.h.

64 { return NhardSigmaOfBin(getBin(value)); }

References getBin(), and NhardSigmaOfBin().

◆ NhardSigmaOfBin()

float CentralityBins::NhardSigmaOfBin ( int  bin) const
inline

Definition at line 65 of file CentralityBins.h.

65 { return table_[bin].n_hard_var; }

References newFWLiteAna::bin, and table_.

Referenced by CentralityTableProducer::endJob(), and NhardSigma().

◆ NpartMean()

float CentralityBins::NpartMean ( double  value) const
inline

Definition at line 54 of file CentralityBins.h.

54 { return NpartMeanOfBin(getBin(value)); }

References getBin(), and NpartMeanOfBin().

◆ NpartMeanOfBin()

float CentralityBins::NpartMeanOfBin ( int  bin) const
inline

Definition at line 55 of file CentralityBins.h.

55 { return table_[bin].n_part_mean; }

References newFWLiteAna::bin, and table_.

Referenced by CentralityTableProducer::endJob(), and NpartMean().

◆ NpartSigma()

float CentralityBins::NpartSigma ( double  value) const
inline

Definition at line 56 of file CentralityBins.h.

56 { return NpartSigmaOfBin(getBin(value)); }

References getBin(), and NpartSigmaOfBin().

◆ NpartSigmaOfBin()

float CentralityBins::NpartSigmaOfBin ( int  bin) const
inline

Definition at line 57 of file CentralityBins.h.

57 { return table_[bin].n_part_var; }

References newFWLiteAna::bin, and table_.

Referenced by CentralityTableProducer::endJob(), and NpartSigma().

◆ triangularityMean()

float CentralityBins::triangularityMean ( double  value) const
inline

Definition at line 79 of file CentralityBins.h.

References getBin(), and triangularityMeanOfBin().

◆ triangularityMeanOfBin()

float CentralityBins::triangularityMeanOfBin ( int  bin) const
inline

Definition at line 80 of file CentralityBins.h.

80 { return table_[bin].ecc3_mean; }

References newFWLiteAna::bin, and table_.

Referenced by triangularityMean().

◆ triangularitySigma()

float CentralityBins::triangularitySigma ( double  value) const
inline

Definition at line 81 of file CentralityBins.h.

References getBin(), and triangularitySigmaOfBin().

◆ triangularitySigmaOfBin()

float CentralityBins::triangularitySigmaOfBin ( int  bin) const
inline

Definition at line 82 of file CentralityBins.h.

82 { return table_[bin].ecc3_var; }

References newFWLiteAna::bin, and table_.

Referenced by triangularitySigma().

Member Data Documentation

◆ table_

std::vector<CBin> CentralityBins::table_
CentralityBins::eccentricityRPSigmaOfBin
float eccentricityRPSigmaOfBin(int bin) const
Definition: CentralityBins.h:74
CentralityBins::table_
std::vector< CBin > table_
Definition: CentralityBins.h:89
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
mps_fire.i
i
Definition: mps_fire.py:428
CentralityBins::triangularitySigmaOfBin
float triangularitySigmaOfBin(int bin) const
Definition: CentralityBins.h:82
CentralityBins::NcollSigmaOfBin
float NcollSigmaOfBin(int bin) const
Definition: CentralityBins.h:61
CBin
Definition: CentralityBins.h:9
CentralityBins::areaMeanOfBin
float areaMeanOfBin(int bin) const
Definition: CentralityBins.h:84
CentralityBins::bMeanOfBin
float bMeanOfBin(int bin) const
Definition: CentralityBins.h:67
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
CentralityBins::NhardMeanOfBin
float NhardMeanOfBin(int bin) const
Definition: CentralityBins.h:63
CentralityBins::eccentricityMeanOfBin
float eccentricityMeanOfBin(int bin) const
Definition: CentralityBins.h:76
b
double b
Definition: hdecay.h:118
CentralityBins::NhardSigmaOfBin
float NhardSigmaOfBin(int bin) const
Definition: CentralityBins.h:65
CentralityBins::lowEdgeOfBin
float lowEdgeOfBin(int bin) const
Definition: CentralityBins.h:53
CentralityBins::NcollMeanOfBin
float NcollMeanOfBin(int bin) const
Definition: CentralityBins.h:59
CentralityBins::triangularityMeanOfBin
float triangularityMeanOfBin(int bin) const
Definition: CentralityBins.h:80
value
Definition: value.py:1
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
CentralityBins::bSigmaOfBin
float bSigmaOfBin(int bin) const
Definition: CentralityBins.h:69
CentralityBins::areaSigmaOfBin
float areaSigmaOfBin(int bin) const
Definition: CentralityBins.h:86
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
CentralityBins::NpartMeanOfBin
float NpartMeanOfBin(int bin) const
Definition: CentralityBins.h:55
CentralityBins::eccentricityRPMeanOfBin
float eccentricityRPMeanOfBin(int bin) const
Definition: CentralityBins.h:72
CentralityBins::getBin
int getBin(double value) const
Definition: CentralityBins.cc:5
CentralityBins::NpartSigmaOfBin
float NpartSigmaOfBin(int bin) const
Definition: CentralityBins.h:57
CentralityBins::eccentricitySigmaOfBin
float eccentricitySigmaOfBin(int bin) const
Definition: CentralityBins.h:78