46 void endJob()
override;
107 cout <<
"Adding table for run : " <<
runnum_ << endl;
123 text_ <<
"# BinEdge NpartMean NpartVar NcollMean NcollVar NhardMean NhardVar bMean bVar" << endl;
136 CT.
m_table.push_back(*thisBin);
142 if (
pool.isAvailable()) {
143 pool->writeOneIOV(CT,
pool->currentTime(),
"HeavyIonRcd");
154 cout <<
"B = " << thisBin->
b.
mean << endl;
155 cout <<
"sigma = " << thisBin->
b.
var << endl;
156 text_ << Form(
"%0.2f\t%0.2f\t%0.2f\t%0.2f\t%0.2f\t%0.2f\t%0.2f\t%0.2f\t%0.2f",
164 (Float_t)thisBin->
b.
mean,
165 (Float_t)thisBin->
b.
var)
167 cout <<
"__________________________________________________" << endl;
void printBin(const CentralityTable::CBin *)
T getParameter(std::string const &) const
std::vector< CBin > m_table
float NcollSigmaOfBin(int bin) const
float NpartSigmaOfBin(int bin) const
void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
float NhardMeanOfBin(int bin) const
T getUntrackedParameter(std::string const &, T const &) const
float NhardSigmaOfBin(int bin) const
float lowEdgeOfBin(int bin) const
float NcollMeanOfBin(int bin) const
float bMeanOfBin(int bin) const
~CentralityTableProducer() override
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
float NpartMeanOfBin(int bin) const
edm::Service< TFileService > fs
float bSigmaOfBin(int bin) const
CentralityTableProducer(const edm::ParameterSet &)
const CentralityBins * CB