44 virtual std::unique_ptr<CentralityTable> produceTable(
const HeavyIonRcd& );
67 findingRecord<HeavyIonRcd>();
71 inputFileName_ = iConfig.
getParameter<
string>(
"inputFile");
74 std::unique_ptr<CentralityTable>
77 auto CT = std::make_unique<CentralityTable>();
84 while ( getline( in, line ) ) {
85 if ( line.empty() || line[0]==
'#' ) {
continue; }
87 CT->m_table.push_back(thisBin);
88 istringstream ss(line);
89 ss>>CT->m_table[
i].bin_edge
90 >>CT->m_table[
i].n_part.mean
91 >>CT->m_table[
i].n_part.var
92 >>CT->m_table[
i].n_coll.mean
93 >>CT->m_table[
i].n_coll.var
94 >>CT->m_table[
i].n_hard.mean
95 >>CT->m_table[
i].n_hard.var
96 >>CT->m_table[
i].b.mean
97 >>CT->m_table[
i].b.var;
111 cout<<
"sigma = "<<thisBin->
b.
var<<endl;
112 cout<<
"__________________________________________________"<<endl;
120 if(verbose_>=1)
std::cout <<
"HiTrivialConditionRetriever::setIntervalFor(): record key = " << rk.
name() <<
"\ttime: " << iTime.
time().
value() << std::endl;
void printBin(const CentralityTable::CBin *)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
virtual std::unique_ptr< CentralityTable > produceTable(const HeavyIonRcd &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
static const IOVSyncValue & beginOfTime()
const char * name() const
HiTrivialConditionRetriever
HiTrivialConditionRetriever(const edm::ParameterSet &)
const Timestamp & time() const
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
TimeValue_t value() const