Go to the documentation of this file.
44 : m_label(conf.getParameter<
std::
string>(
"label")),
45 m_validityRange(conf.getParameter<
edm::EventRange>(
"validityRange")),
46 m_beamEnergy(conf.getParameter<double>(
"beamEnergy")),
47 m_betaStar(conf.getParameter<double>(
"betaStar")),
48 m_xangle(conf.getParameter<double>(
"xangle")),
49 m_insideValidityRange(
false) {
51 findingRecord<LHCInfoRcd>();
59 desc.add<
std::string>(
"label",
"")->setComment(
"label of the LHCInfo record");
63 desc.add<
double>(
"beamEnergy", 0.)->setComment(
"beam energy");
64 desc.add<
double>(
"betaStar", 0.)->setComment(
"beta*");
65 desc.add<
double>(
"xangle", 0.)->setComment(
"crossing angle");
67 descriptions.
add(
"ctppsLHCInfoESSource",
desc);
103 auto output = std::make_unique<LHCInfo>();
112 output->setCrossingAngle(0.);
EventID startEventID() const
bool m_insideValidityRange
EventID endEventID() const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static void fillDescriptions(edm::ConfigurationDescriptions &)
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()
void add(std::string const &label, ParameterSetDescription const &psetDescription)
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