|
|
Go to the documentation of this file.
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, {});
ParameterDescriptionBase * add(U const &iLabel, T const &value)
ReturnType produce(const RunInfoRcd &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
const IOVSyncValue & first() const
std::vector< int > m_fed_in
std::vector< float > m_times_of_currents
RunInfo makeRunInfo(edm::ParameterSet const &pset) const
std::vector< RunInfo > runInfos_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
float m_run_intervall_micros
__host__ constexpr __device__ RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
def convert(infile, ofile)
const EventID & eventID() const
std::unique_ptr< RunInfo > ReturnType
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
std::vector< float > m_current
RunInfoTestESProducer(const edm::ParameterSet &)
std::string m_start_time_str
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
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
ValidityInterval validityInterval() const
void addDefault(ParameterSetDescription const &psetDescription)
std::string m_stop_time_str
long long m_start_time_ll