41 virtual std::unique_ptr<CentralityTable> produceTable(
const HeavyIonRcd&);
63 findingRecord<HeavyIonRcd>();
67 inputFileName_ = iConfig.
getParameter<
string>(
"inputFile");
71 auto CT = std::make_unique<CentralityTable>();
78 while (getline(
in,
line)) {
79 if (
line.empty() ||
line[0] ==
'#') {
83 CT->m_table.push_back(thisBin);
85 ss >> CT->m_table[
i].bin_edge >> CT->m_table[
i].n_part.mean >> CT->m_table[
i].n_part.var >>
86 CT->m_table[
i].n_coll.mean >> CT->m_table[
i].n_coll.var >> CT->m_table[
i].n_hard.mean >>
87 CT->m_table[
i].n_hard.var >> CT->m_table[
i].b.mean >> CT->m_table[
i].b.var;
100 cout <<
"B = " << thisBin->
b.
mean << endl;
101 cout <<
"sigma = " << thisBin->
b.
var << endl;
102 cout <<
"__________________________________________________" << endl;
109 std::cout <<
"HiTrivialConditionRetriever::setIntervalFor(): record key = " << rk.
name()
110 <<
"\ttime: " << iTime.
time().
value() << std::endl;
void printBin(const CentralityTable::CBin *)
T getParameter(std::string const &) const
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
T getUntrackedParameter(std::string const &, T const &) const
virtual std::unique_ptr< CentralityTable > produceTable(const HeavyIonRcd &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
static const IOVSyncValue & beginOfTime()
HiTrivialConditionRetriever
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
TimeValue_t value() const
HiTrivialConditionRetriever(const edm::ParameterSet &)
const Timestamp & time() const
const char * name() const