#include <CentralityProvider.h>
Public Types | |
enum | VariableType { HFtowers, 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) | |
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 | prevRun_ |
edm::InputTag | tag_ |
VariableType | varType_ |
Additional Inherited Members | |
Public Attributes inherited from CentralityBins | |
std::vector< CBin > | table_ |
Definition at line 12 of file CentralityProvider.h.
Enumerator | |
---|---|
HFtowers | |
HFhits | |
PixelHits | |
PixelTracks | |
Tracks | |
EB | |
EE | |
Missing |
Definition at line 18 of file CentralityProvider.h.
CentralityProvider::CentralityProvider | ( | const edm::EventSetup & | iSetup | ) |
Definition at line 3 of file CentralityProvider.cc.
References centralityLabel_, centralityMC_, centralityVariable_, EB, EE, edm::hlt::Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::getProcessParameterSet(), HFhits, HFtowers, Missing, newRun(), PixelHits, PixelTracks, AlCaHLTBitMon_QueryRunRegistry::string, tag_, Tracks, and varType_.
|
inline |
Definition at line 16 of file CentralityProvider.h.
|
inline |
Definition at line 30 of file CentralityProvider.h.
References CentralityBins::bMeanOfBin(), and getBin().
|
inline |
Definition at line 31 of file CentralityProvider.h.
References CentralityBins::bSigmaOfBin(), and getBin().
double CentralityProvider::centralityValue | ( | ) | const |
Definition at line 90 of file CentralityProvider.cc.
References chandle_, EB, EE, HFhits, HFtowers, PixelHits, PixelTracks, Tracks, and varType_.
Referenced by getBin().
|
inline |
Definition at line 22 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 23 of file CentralityProvider.h.
References getBin(), and CentralityBins::lowEdgeOfBin().
|
inline |
Definition at line 26 of file CentralityProvider.h.
References getBin(), and CentralityBins::NcollMeanOfBin().
|
inline |
Definition at line 27 of file CentralityProvider.h.
References getBin(), and CentralityBins::NcollSigmaOfBin().
void CentralityProvider::newEvent | ( | const edm::Event & | ev, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 34 of file CentralityProvider.cc.
References chandle_, edm::Event::getByLabel(), edm::EventBase::id(), newRun(), prevRun_, edm::EventID::run(), and tag_.
Referenced by CentralityFilter::filter(), and CentralityBinProducer::produce().
void CentralityProvider::newRun | ( | const edm::EventSetup & | iSetup | ) |
Definition at line 41 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 CentralityProvider(), and newEvent().
|
inline |
Definition at line 28 of file CentralityProvider.h.
References getBin(), and CentralityBins::NhardMeanOfBin().
|
inline |
Definition at line 29 of file CentralityProvider.h.
References getBin(), and CentralityBins::NhardSigmaOfBin().
|
inline |
Definition at line 24 of file CentralityProvider.h.
References getBin(), and CentralityBins::NpartMeanOfBin().
|
inline |
Definition at line 25 of file CentralityProvider.h.
References getBin(), and CentralityBins::NpartSigmaOfBin().
void CentralityProvider::print | ( | void | ) |
Definition at line 74 of file CentralityProvider.cc.
References gather_cfg::cout, j, and CentralityBins::table_.
Referenced by CentralityTableProducer::analyze().
|
inline |
Definition at line 36 of file CentralityProvider.h.
References chandle_, and edm::Handle< T >::product().
|
inline |
Definition at line 35 of file CentralityProvider.h.
|
private |
Definition at line 41 of file CentralityProvider.h.
Referenced by CentralityProvider(), and newRun().
|
private |
Definition at line 42 of file CentralityProvider.h.
Referenced by CentralityProvider().
|
private |
Definition at line 40 of file CentralityProvider.h.
Referenced by CentralityProvider().
|
mutableprivate |
Definition at line 44 of file CentralityProvider.h.
Referenced by centralityValue(), newEvent(), and raw().
|
private |
Definition at line 43 of file CentralityProvider.h.
Referenced by newEvent().
|
private |
Definition at line 39 of file CentralityProvider.h.
Referenced by CentralityProvider(), and newEvent().
|
private |
Definition at line 45 of file CentralityProvider.h.
Referenced by CentralityProvider(), and centralityValue().