66 std::vector<edm::ParameterSet>
const& runInfos = iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"runInfos");
68 for (
auto const&
pset : runInfos) {
89 return std::make_unique<RunInfo>(*itFound);
107 auto convert = [](std::vector<double>
const& iIn) {
108 std::vector<float>
f;
109 f.reserve(iIn.size());
110 std::copy(iIn.begin(), iIn.end(), std::back_inserter(f));
122 runInfoDesc.
add<
int>(
"run");
123 runInfoDesc.
add<
long long>(
"start_time", 0);
125 runInfoDesc.
add<
long long>(
"stop_time", 0);
127 runInfoDesc.
add<std::vector<int>>(
"fed_in", {});
128 runInfoDesc.
add<
double>(
"start_current", 0);
129 runInfoDesc.
add<
double>(
"stop_current", 0);
130 runInfoDesc.
add<
double>(
"avg_current", 0);
131 runInfoDesc.
add<
double>(
"min_current", 0);
132 runInfoDesc.
add<
double>(
"max_current", 0);
133 runInfoDesc.
add<
double>(
"run_intervall_micros", 0);
134 runInfoDesc.
add<std::vector<double>>(
"current", {});
135 runInfoDesc.
add<std::vector<double>>(
"times_of_currents", {});
138 desc.addVPSet(
"runInfos", runInfoDesc, {});
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
const EventID & eventID() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
ReturnType produce(const RunInfoRcd &)
std::vector< int > m_fed_in
std::string m_start_time_str
std::unique_ptr< RunInfo > ReturnType
std::vector< RunInfo > runInfos_
RunInfo makeRunInfo(edm::ParameterSet const &pset) const
std::vector< float > m_current
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
ValidityInterval validityInterval() const
float m_run_intervall_micros
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
std::string m_stop_time_str
const IOVSyncValue & first() const
std::vector< float > m_times_of_currents
long long m_start_time_ll
RunInfoTestESProducer(const edm::ParameterSet &)