#include <GetLumi.h>
Public Types | |
enum | SQRT_S { SQRT_S_7TeV, SQRT_S_8TeV } |
Public Member Functions | |
double | convert2PU (double, double) |
double | convert2PU (double, int) |
GetLumi (const edm::ParameterSet &) | |
GetLumi (const edm::InputTag &, double) | |
GetLumi (const edm::ParameterSet &, edm::ConsumesCollector &iC) | |
GetLumi (const edm::InputTag &, double, edm::ConsumesCollector &iC) | |
double | getRawValue (const edm::Event &) |
double | getRawValue (edm::LuminosityBlock const &, edm::EventSetup const &) |
double | getValue (const edm::Event &) |
double | getValue (edm::LuminosityBlock const &, edm::EventSetup const &) |
virtual | ~GetLumi () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Public Attributes | |
edm::EDGetTokenT< LumiDetails > | lumiDetailsToken_ |
edm::InputTag | lumiInputTag_ |
double | lumiScale_ |
edm::EDGetTokenT< LumiSummary > | lumiSummaryToken_ |
Static Public Attributes | |
static constexpr double | FREQ_ORBIT = 11246. |
static constexpr double | INELASTIC_XSEC_7TeV = 68.0 |
static constexpr double | INELASTIC_XSEC_8TeV = 69.3 |
static const unsigned int | NUM_BX = 3564 |
static constexpr double | SECONDS_PER_LS = double(0x40000)/double(FREQ_ORBIT) |
enum GetLumi::SQRT_S |
Enumerator | |
---|---|
SQRT_S_7TeV | |
SQRT_S_8TeV |
Definition at line 25 of file GetLumi.h.
GetLumi::GetLumi | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 14 of file GetLumi.cc.
GetLumi::GetLumi | ( | const edm::InputTag & | lumiInputTag, |
double | lumiScale | ||
) |
Definition at line 20 of file GetLumi.cc.
GetLumi::GetLumi | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 26 of file GetLumi.cc.
References edm::ConsumesCollector::consumes(), edm::InLumi, lumiDetailsToken_, lumiInputTag_, and lumiSummaryToken_.
GetLumi::GetLumi | ( | const edm::InputTag & | lumiInputTag, |
double | lumiScale, | ||
edm::ConsumesCollector & | iC | ||
) |
Definition at line 32 of file GetLumi.cc.
References edm::ConsumesCollector::consumes(), edm::InLumi, lumiDetailsToken_, lumiInputTag_, and lumiSummaryToken_.
|
virtual |
Definition at line 38 of file GetLumi.cc.
double GetLumi::convert2PU | ( | double | instLumi, |
double | inelastic_xSec = GetLumi::INELASTIC_XSEC_8TeV |
||
) |
double GetLumi::convert2PU | ( | double | instLumi, |
int | sqrt_s = GetLumi::SQRT_S_8TeV |
||
) |
Definition at line 114 of file GetLumi.cc.
References convert2PU(), INELASTIC_XSEC_7TeV, INELASTIC_XSEC_8TeV, SQRT_S_7TeV, and SQRT_S_8TeV.
|
static |
double GetLumi::getRawValue | ( | const edm::Event & | iEvent | ) |
Definition at line 43 of file GetLumi.cc.
References edm::EventBase::bunchCrossing(), edm::LuminosityBlock::getByToken(), edm::Event::getLuminosityBlock(), edm::HandleBase::isValid(), LumiDetails::kOCC1, fjr2json::lumi, and lumiSummaryToken_.
Referenced by getValue().
double GetLumi::getRawValue | ( | edm::LuminosityBlock const & | lumiBlock, |
edm::EventSetup const & | eSetup | ||
) |
Definition at line 71 of file GetLumi.cc.
References gather_cfg::cout, edm::LuminosityBlock::getByToken(), edm::HandleBase::isValid(), fjr2json::lumi, and lumiSummaryToken_.
double GetLumi::getValue | ( | const edm::Event & | iEvent | ) |
Definition at line 64 of file GetLumi.cc.
References getRawValue(), and lumiScale_.
Referenced by VertexMonitor::analyze(), TrackingMonitor::analyze(), and LogMessageMonitor::analyze().
double GetLumi::getValue | ( | edm::LuminosityBlock const & | lumiBlock, |
edm::EventSetup const & | eSetup | ||
) |
|
static |
Definition at line 31 of file GetLumi.h.
Referenced by convert2PU().
|
static |
Definition at line 34 of file GetLumi.h.
Referenced by convert2PU().
|
static |
Definition at line 35 of file GetLumi.h.
Referenced by convert2PU().
edm::EDGetTokenT<LumiDetails> GetLumi::lumiDetailsToken_ |
edm::InputTag GetLumi::lumiInputTag_ |
double GetLumi::lumiScale_ |
Definition at line 55 of file GetLumi.h.
Referenced by getValue().
edm::EDGetTokenT<LumiSummary> GetLumi::lumiSummaryToken_ |
Definition at line 58 of file GetLumi.h.
Referenced by GetLumi(), and getRawValue().