Go to the documentation of this file.
42 : m_label(conf.getParameter<
std::
string>(
"label")),
43 m_validityRange(conf.getParameter<
edm::EventRange>(
"validityRange")),
44 m_beamEnergy(conf.getParameter<double>(
"beamEnergy")),
45 m_xangle(conf.getParameter<double>(
"xangle")),
46 m_insideValidityRange(
false) {
48 findingRecord<LHCInfoRcd>();
84 auto output = std::make_unique<LHCInfo>();
91 output->setCrossingAngle(0.);
EventID startEventID() const
bool m_insideValidityRange
EventID endEventID() const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESProducts< std::unique_ptr< LHCInfo > > produce(const LHCInfoRcd &)
LuminosityBlockNumber_t luminosityBlock() const
unsigned int LuminosityBlockNumber_t
ESProducts< std::remove_reference_t< TArgs >... > products(TArgs &&... args)
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
CTPPSLHCInfoESSource(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
const EventID & eventID() const
static const IOVSyncValue & endOfTime()
bool contains(EventRange const &lh, EventID const &rh)
std::pair< Time_t, Time_t > ValidityInterval
static const IOVSyncValue & beginOfTime()
Provides LHCInfo data necessary for CTPPS reconstruction (and direct simulation).
edm::EventRange m_validityRange
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override