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

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, 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  }
double b
Definition: hdecay.h:120
std::vector< CBin > table_
CentralityBins::~CentralityBins ( )
inlineoverride

Definition at line 50 of file CentralityBins.h.

References getBin().

50 {;}

Member Function Documentation

float CentralityBins::areaMean ( double  value) const
inline

Definition at line 84 of file CentralityBins.h.

References getBin().

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

Definition at line 85 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

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

Definition at line 86 of file CentralityBins.h.

References getBin().

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

Definition at line 87 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

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

Definition at line 67 of file CentralityBins.h.

References getBin().

67 { return bMeanOfBin(getBin(value));}
Definition: value.py:1
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 stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 69 of file CentralityBins.h.

References getBin().

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

Definition at line 70 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 76 of file CentralityBins.h.

References getBin().

Definition: value.py:1
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 stringResolutionProvider_cfi::bin, and table_.

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

Definition at line 72 of file CentralityBins.h.

References getBin().

Definition: value.py:1
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 stringResolutionProvider_cfi::bin, and table_.

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

Definition at line 74 of file CentralityBins.h.

References getBin().

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

Definition at line 75 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

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

Definition at line 78 of file CentralityBins.h.

References getBin().

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

Definition at line 79 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

79 { return table_[bin].ecc2_var;}
bin
set the eta bin as selection string.
std::vector< CBin > table_
int CentralityBins::getBin ( double  value) const

Definition at line 5 of file CentralityBins.cc.

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

Referenced by BTagWeightCalculator.BTagWeightCalculator::calcJetWeightImpl().

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 }
Definition: value.py:1
bin
set the eta bin as selection string.
std::vector< CBin > table_
int CentralityBins::getNbins ( ) const
inline

Definition at line 52 of file CentralityBins.h.

References table_.

Referenced by CentralityTableProducer::endJob().

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

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

Definition at line 54 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 59 of file CentralityBins.h.

References getBin().

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

Definition at line 60 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 61 of file CentralityBins.h.

References getBin().

61 { return NcollSigmaOfBin(getBin(value));}
Definition: value.py:1
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 stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 63 of file CentralityBins.h.

References getBin().

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

Definition at line 64 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 65 of file CentralityBins.h.

References getBin().

65 { return NhardSigmaOfBin(getBin(value));}
Definition: value.py:1
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 stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 55 of file CentralityBins.h.

References getBin().

55 { return NpartMeanOfBin(getBin(value));}
Definition: value.py:1
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 stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 57 of file CentralityBins.h.

References getBin().

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

Definition at line 58 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

Referenced by CentralityTableProducer::endJob().

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

Definition at line 80 of file CentralityBins.h.

References getBin().

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

Definition at line 81 of file CentralityBins.h.

References stringResolutionProvider_cfi::bin, and table_.

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

Definition at line 82 of file CentralityBins.h.

References getBin().

Definition: value.py:1
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 stringResolutionProvider_cfi::bin, and table_.

83 { return table_[bin].ecc3_var;}
bin
set the eta bin as selection string.
std::vector< CBin > table_

Member Data Documentation

std::vector<CBin> CentralityBins::table_

Definition at line 90 of file CentralityBins.h.