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, {});
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
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
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_
RunInfo makeRunInfo(edm::ParameterSet const &pset) const
std::vector< float > m_current
ParameterDescriptionBase * add(U const &iLabel, T const &value)
def convert(infile, ofile)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
ValidityInterval validityInterval() const
float m_run_intervall_micros
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 &)