#include <CentralityProvider.h>
Public Types | |
enum | VariableType { HFtowers, HFtowersPlus, HFtowersMinus, HFtowersTrunc, HFtowersPlusTrunc, HFtowersMinusTrunc, HFhits, PixelHits, PixelTracks, Tracks, EB, EE, Missing } |
Public Types inherited from CentralityBins | |
typedef std::map< int, const CentralityBins * > | RunMap |
Public Member Functions | |
float | bMean () const |
float | bSigma () const |
CentralityProvider (const edm::EventSetup &iSetup) | |
CentralityProvider (const edm::EventSetup &iSetup, edm::ConsumesCollector &&iC) | |
double | centralityValue () const |
int | getBin () const |
int | getNbins () const |
float | lowEdge () const |
float | NcollMean () const |
float | NcollSigma () const |
void | newEvent (const edm::Event &ev, const edm::EventSetup &iSetup) |
void | newRun (const edm::EventSetup &iSetup) |
float | NhardMean () const |
float | NhardSigma () const |
float | NpartMean () const |
float | NpartSigma () const |
void | print () |
const reco::Centrality * | raw () const |
const CentralityBins * | table () const |
~CentralityProvider () | |
Public Member Functions inherited from CentralityBins | |
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 () | |
Private Attributes | |
std::string | centralityLabel_ |
std::string | centralityMC_ |
std::string | centralityVariable_ |
edm::Handle< reco::Centrality > | chandle_ |
unsigned int | pPbRunFlip_ |
unsigned int | prevRun_ |
edm::EDGetTokenT < reco::Centrality > | tag_ |
VariableType | varType_ |
Additional Inherited Members | |
Public Attributes inherited from CentralityBins | |
std::vector< CBin > | table_ |
Definition at line 13 of file CentralityProvider.h.
Enumerator | |
---|---|
HFtowers | |
HFtowersPlus | |
HFtowersMinus | |
HFtowersTrunc | |
HFtowersPlusTrunc | |
HFtowersMinusTrunc | |
HFhits | |
PixelHits | |
PixelTracks | |
Tracks | |
EB | |
EE | |
Missing |
Definition at line 20 of file CentralityProvider.h.
CentralityProvider::CentralityProvider | ( | const edm::EventSetup & | iSetup | ) |
Definition at line 3 of file CentralityProvider.cc.
CentralityProvider::CentralityProvider | ( | const edm::EventSetup & | iSetup, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 5 of file CentralityProvider.cc.
References centralityLabel_, centralityMC_, centralityVariable_, EB, EE, edm::hlt::Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::getProcessParameterSet(), edm::ParameterSet::getUntrackedParameter(), HFhits, HFtowers, HFtowersMinus, HFtowersMinusTrunc, HFtowersPlus, HFtowersPlusTrunc, HFtowersTrunc, Missing, newRun(), PixelHits, PixelTracks, pPbRunFlip_, AlCaHLTBitMon_QueryRunRegistry::string, tag_, Tracks, and varType_.
|
inline |
Definition at line 18 of file CentralityProvider.h.
|
inline |
Definition at line 32 of file CentralityProvider.h.
References CentralityBins::bMeanOfBin(), and getBin().
|
inline |
Definition at line 33 of file CentralityProvider.h.
References CentralityBins::bSigmaOfBin(), and getBin().
double CentralityProvider::centralityValue | ( | ) | const |
Definition at line 105 of file CentralityProvider.cc.
References chandle_, EB, EE, HFhits, HFtowers, HFtowersMinus, HFtowersMinusTrunc, HFtowersPlus, HFtowersPlusTrunc, HFtowersTrunc, PixelHits, PixelTracks, Tracks, MetTreeProducer::var(), and varType_.
Referenced by getBin().
|
inline |
Definition at line 24 of file CentralityProvider.h.
References centralityValue(), and CentralityBins::getBin().
Referenced by bMean(), bSigma(), CentralityFilter::filter(), lowEdge(), NcollMean(), NcollSigma(), NhardMean(), NhardSigma(), NpartMean(), NpartSigma(), and CentralityBinProducer::produce().
|
inline |
|
inline |
Definition at line 25 of file CentralityProvider.h.
References getBin(), and CentralityBins::lowEdgeOfBin().
|
inline |
Definition at line 28 of file CentralityProvider.h.
References getBin(), and CentralityBins::NcollMeanOfBin().
|
inline |
Definition at line 29 of file CentralityProvider.h.
References getBin(), and CentralityBins::NcollSigmaOfBin().
void CentralityProvider::newEvent | ( | const edm::Event & | ev, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 42 of file CentralityProvider.cc.
References centralityVariable_, chandle_, gather_cfg::cout, edm::Event::getByToken(), HFtowersMinus, HFtowersMinusTrunc, HFtowersPlus, HFtowersPlusTrunc, edm::EventBase::id(), newRun(), pPbRunFlip_, prevRun_, edm::EventID::run(), tag_, and varType_.
Referenced by CentralityFilter::filter(), and CentralityBinProducer::produce().
void CentralityProvider::newRun | ( | const edm::EventSetup & | iSetup | ) |
Definition at line 56 of file CentralityProvider.cc.
References CentralityTable::CBin::b, CBin::b_mean, CBin::b_var, CBin::bin_edge, CentralityTable::CBin::bin_edge, centralityLabel_, CentralityTable::CBin::ecc2, CBin::ecc2_mean, CBin::ecc2_var, CentralityTable::CBin::ecc3, CBin::ecc3_mean, CBin::ecc3_var, CentralityTable::CBin::eccRP, CBin::eccRP_mean, CBin::eccRP_var, edm::EventSetup::get(), j, CentralityTable::BinValues::mean, CentralityTable::CBin::n_coll, CBin::n_coll_mean, CBin::n_coll_var, CentralityTable::CBin::n_hard, CBin::n_hard_mean, CBin::n_hard_var, CentralityTable::CBin::n_part, CBin::n_part_mean, CBin::n_part_var, CentralityTable::CBin::S, CBin::s_mean, CBin::s_var, CentralityBins::table_, and CentralityTable::BinValues::var.
Referenced by CentralityTableProducer::analyze(), CentralityProvider(), and newEvent().
|
inline |
Definition at line 30 of file CentralityProvider.h.
References getBin(), and CentralityBins::NhardMeanOfBin().
|
inline |
Definition at line 31 of file CentralityProvider.h.
References getBin(), and CentralityBins::NhardSigmaOfBin().
|
inline |
Definition at line 26 of file CentralityProvider.h.
References getBin(), and CentralityBins::NpartMeanOfBin().
|
inline |
Definition at line 27 of file CentralityProvider.h.
References getBin(), and CentralityBins::NpartSigmaOfBin().
void CentralityProvider::print | ( | void | ) |
Definition at line 89 of file CentralityProvider.cc.
References gather_cfg::cout, j, and CentralityBins::table_.
Referenced by CentralityTableProducer::analyze().
|
inline |
Definition at line 38 of file CentralityProvider.h.
References chandle_, and edm::Handle< T >::product().
|
inline |
Definition at line 37 of file CentralityProvider.h.
|
private |
Definition at line 43 of file CentralityProvider.h.
Referenced by CentralityProvider(), and newRun().
|
private |
Definition at line 44 of file CentralityProvider.h.
Referenced by CentralityProvider().
|
private |
Definition at line 42 of file CentralityProvider.h.
Referenced by CentralityProvider(), and newEvent().
|
mutableprivate |
Definition at line 46 of file CentralityProvider.h.
Referenced by centralityValue(), newEvent(), and raw().
|
private |
Definition at line 48 of file CentralityProvider.h.
Referenced by CentralityProvider(), and newEvent().
|
private |
Definition at line 45 of file CentralityProvider.h.
Referenced by newEvent().
|
private |
Definition at line 41 of file CentralityProvider.h.
Referenced by CentralityProvider(), and newEvent().
|
private |
Definition at line 47 of file CentralityProvider.h.
Referenced by CentralityProvider(), centralityValue(), and newEvent().