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);
94 retValue.
m_run =
pset.getParameter<
int>(
"run");
99 retValue.
m_fed_in =
pset.getParameter<std::vector<int>>(
"fed_in");
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={})
T getParameter(std::string const &) const
const IOVSyncValue & first() const
RunInfo makeRunInfo(edm::ParameterSet const &pset) 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
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::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
std::unique_ptr< RunInfo > ReturnType
std::vector< RunInfo > runInfos_
std::vector< float > m_current
ParameterDescriptionBase * add(U const &iLabel, T const &value)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const EventID & eventID() const
float m_run_intervall_micros
std::string m_stop_time_str
std::vector< float > m_times_of_currents
ValidityInterval validityInterval() const
long long m_start_time_ll
RunInfoTestESProducer(const edm::ParameterSet &)