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");
67 descriptions.
add(
"ctppsLHCInfoESSource", desc);
103 auto output = std::make_unique<LHCInfo>();
112 output->setCrossingAngle(0.);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void setComment(std::string const &value)
bool contains(EventRange const &lh, EventID const &rh)
static void fillDescriptions(edm::ConfigurationDescriptions &)
const EventID & eventID() const
CTPPSLHCInfoESSource(const edm::ParameterSet &)
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
LuminosityBlockNumber_t luminosityBlock() const
bool m_insideValidityRange
unsigned int LuminosityBlockNumber_t
ESProducts< std::remove_reference_t< TArgs >...> products(TArgs &&...args)
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()
EventID startEventID() const
tuple key
prepare the HTCondor submission files and eventually submit them
EventID endEventID() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override