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.

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

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  }
double b
Definition: hdecay.h:118
std::vector< CBin > 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.

References areaMeanOfBin(), and getBin().

83 { return areaMeanOfBin(getBin(value)); }
float areaMeanOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ areaMeanOfBin()

float CentralityBins::areaMeanOfBin ( int  bin) const
inline

Definition at line 84 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by areaMean().

84 { return table_[bin].s_mean; }
std::vector< CBin > table_

◆ areaSigma()

float CentralityBins::areaSigma ( double  value) const
inline

Definition at line 85 of file CentralityBins.h.

References areaSigmaOfBin(), and getBin().

85 { return areaSigmaOfBin(getBin(value)); }
Definition: value.py:1
float areaSigmaOfBin(int bin) const
int getBin(double value) const

◆ areaSigmaOfBin()

float CentralityBins::areaSigmaOfBin ( int  bin) const
inline

Definition at line 86 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by areaSigma().

86 { return table_[bin].s_var; }
std::vector< CBin > table_

◆ bMean()

float CentralityBins::bMean ( double  value) const
inline

Definition at line 66 of file CentralityBins.h.

References bMeanOfBin(), and getBin().

66 { return bMeanOfBin(getBin(value)); }
float bMeanOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ bMeanOfBin()

float CentralityBins::bMeanOfBin ( int  bin) const
inline

Definition at line 67 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

67 { return table_[bin].b_mean; }
std::vector< CBin > table_

◆ bSigma()

float CentralityBins::bSigma ( double  value) const
inline

Definition at line 68 of file CentralityBins.h.

References bSigmaOfBin(), and getBin().

68 { return bSigmaOfBin(getBin(value)); }
Definition: value.py:1
float bSigmaOfBin(int bin) const
int getBin(double value) const

◆ bSigmaOfBin()

float CentralityBins::bSigmaOfBin ( int  bin) const
inline

Definition at line 69 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

69 { return table_[bin].b_var; }
std::vector< CBin > table_

◆ eccentricityMean()

float CentralityBins::eccentricityMean ( double  value) const
inline

Definition at line 75 of file CentralityBins.h.

References eccentricityMeanOfBin(), and getBin().

Definition: value.py:1
float eccentricityMeanOfBin(int bin) const
int getBin(double value) const

◆ eccentricityMeanOfBin()

float CentralityBins::eccentricityMeanOfBin ( int  bin) const
inline

Definition at line 76 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityMean().

76 { return table_[bin].ecc2_mean; }
std::vector< CBin > table_

◆ eccentricityRPMean()

float CentralityBins::eccentricityRPMean ( double  value) const
inline

Definition at line 71 of file CentralityBins.h.

References eccentricityRPMeanOfBin(), and getBin().

Definition: value.py:1
int getBin(double value) const
float eccentricityRPMeanOfBin(int bin) const

◆ eccentricityRPMeanOfBin()

float CentralityBins::eccentricityRPMeanOfBin ( int  bin) const
inline

Definition at line 72 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityRPMean().

72 { return table_[bin].eccRP_mean; }
std::vector< CBin > table_

◆ eccentricityRPSigma()

float CentralityBins::eccentricityRPSigma ( double  value) const
inline

Definition at line 73 of file CentralityBins.h.

References eccentricityRPSigmaOfBin(), and getBin().

float eccentricityRPSigmaOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ eccentricityRPSigmaOfBin()

float CentralityBins::eccentricityRPSigmaOfBin ( int  bin) const
inline

Definition at line 74 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricityRPSigma().

74 { return table_[bin].eccRP_var; }
std::vector< CBin > table_

◆ eccentricitySigma()

float CentralityBins::eccentricitySigma ( double  value) const
inline

Definition at line 77 of file CentralityBins.h.

References eccentricitySigmaOfBin(), and getBin().

Definition: value.py:1
int getBin(double value) const
float eccentricitySigmaOfBin(int bin) const

◆ eccentricitySigmaOfBin()

float CentralityBins::eccentricitySigmaOfBin ( int  bin) const
inline

Definition at line 78 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by eccentricitySigma().

78 { return table_[bin].ecc2_var; }
std::vector< CBin > table_

◆ getBin()

int CentralityBins::getBin ( double  value) const

Definition at line 5 of file CentralityBins.cc.

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

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

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 }
Definition: value.py:1
std::vector< CBin > table_

◆ getNbins()

int CentralityBins::getNbins ( ) const
inline

Definition at line 51 of file CentralityBins.h.

References table_.

Referenced by CentralityTableProducer::endJob().

51 { return table_.size(); }
std::vector< CBin > table_

◆ lowEdge()

float CentralityBins::lowEdge ( double  value) const
inline

Definition at line 52 of file CentralityBins.h.

References getBin(), and lowEdgeOfBin().

52 { return lowEdgeOfBin(getBin(value)); }
float lowEdgeOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ lowEdgeOfBin()

float CentralityBins::lowEdgeOfBin ( int  bin) const
inline

Definition at line 53 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

53 { return table_[bin].bin_edge; }
std::vector< CBin > table_

◆ NcollMean()

float CentralityBins::NcollMean ( double  value) const
inline

Definition at line 58 of file CentralityBins.h.

References getBin(), and NcollMeanOfBin().

58 { return NcollMeanOfBin(getBin(value)); }
float NcollMeanOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ NcollMeanOfBin()

float CentralityBins::NcollMeanOfBin ( int  bin) const
inline

Definition at line 59 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

59 { return table_[bin].n_coll_mean; }
std::vector< CBin > table_

◆ NcollSigma()

float CentralityBins::NcollSigma ( double  value) const
inline

Definition at line 60 of file CentralityBins.h.

References getBin(), and NcollSigmaOfBin().

60 { return NcollSigmaOfBin(getBin(value)); }
float NcollSigmaOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ NcollSigmaOfBin()

float CentralityBins::NcollSigmaOfBin ( int  bin) const
inline

Definition at line 61 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

61 { return table_[bin].n_coll_var; }
std::vector< CBin > table_

◆ NhardMean()

float CentralityBins::NhardMean ( double  value) const
inline

Definition at line 62 of file CentralityBins.h.

References getBin(), and NhardMeanOfBin().

62 { return NhardMeanOfBin(getBin(value)); }
float NhardMeanOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ NhardMeanOfBin()

float CentralityBins::NhardMeanOfBin ( int  bin) const
inline

Definition at line 63 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

63 { return table_[bin].n_hard_mean; }
std::vector< CBin > table_

◆ NhardSigma()

float CentralityBins::NhardSigma ( double  value) const
inline

Definition at line 64 of file CentralityBins.h.

References getBin(), and NhardSigmaOfBin().

64 { return NhardSigmaOfBin(getBin(value)); }
float NhardSigmaOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ NhardSigmaOfBin()

float CentralityBins::NhardSigmaOfBin ( int  bin) const
inline

Definition at line 65 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

65 { return table_[bin].n_hard_var; }
std::vector< CBin > table_

◆ NpartMean()

float CentralityBins::NpartMean ( double  value) const
inline

Definition at line 54 of file CentralityBins.h.

References getBin(), and NpartMeanOfBin().

54 { return NpartMeanOfBin(getBin(value)); }
Definition: value.py:1
float NpartMeanOfBin(int bin) const
int getBin(double value) const

◆ NpartMeanOfBin()

float CentralityBins::NpartMeanOfBin ( int  bin) const
inline

Definition at line 55 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

55 { return table_[bin].n_part_mean; }
std::vector< CBin > table_

◆ NpartSigma()

float CentralityBins::NpartSigma ( double  value) const
inline

Definition at line 56 of file CentralityBins.h.

References getBin(), and NpartSigmaOfBin().

56 { return NpartSigmaOfBin(getBin(value)); }
float NpartSigmaOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ NpartSigmaOfBin()

float CentralityBins::NpartSigmaOfBin ( int  bin) const
inline

Definition at line 57 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

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

57 { return table_[bin].n_part_var; }
std::vector< CBin > table_

◆ triangularityMean()

float CentralityBins::triangularityMean ( double  value) const
inline

Definition at line 79 of file CentralityBins.h.

References getBin(), and triangularityMeanOfBin().

Definition: value.py:1
int getBin(double value) const
float triangularityMeanOfBin(int bin) const

◆ triangularityMeanOfBin()

float CentralityBins::triangularityMeanOfBin ( int  bin) const
inline

Definition at line 80 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by triangularityMean().

80 { return table_[bin].ecc3_mean; }
std::vector< CBin > table_

◆ triangularitySigma()

float CentralityBins::triangularitySigma ( double  value) const
inline

Definition at line 81 of file CentralityBins.h.

References getBin(), and triangularitySigmaOfBin().

float triangularitySigmaOfBin(int bin) const
Definition: value.py:1
int getBin(double value) const

◆ triangularitySigmaOfBin()

float CentralityBins::triangularitySigmaOfBin ( int  bin) const
inline

Definition at line 82 of file CentralityBins.h.

References newFWLiteAna::bin, and table_.

Referenced by triangularitySigma().

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

Member Data Documentation

◆ table_

std::vector<CBin> CentralityBins::table_