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.);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
EventID startEventID() const
bool contains(EventRange const &lh, EventID const &rh)
static void fillDescriptions(edm::ConfigurationDescriptions &)
CTPPSLHCInfoESSource(const edm::ParameterSet &)
ESProducts< std::remove_reference_t< TArgs >... > products(TArgs &&... args)
EventID endEventID() const
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
bool m_insideValidityRange
unsigned int LuminosityBlockNumber_t
LuminosityBlockNumber_t luminosityBlock() const
edm::ESProducts< std::unique_ptr< LHCInfo > > produce(const LHCInfoRcd &)
edm::EventRange m_validityRange
Provides LHCInfo data necessary for CTPPS reconstruction (and direct simulation). ...
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
static const IOVSyncValue & beginOfTime()
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const EventID & eventID() const
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override