46 void endJob()
override;
108 cout <<
"Adding table for run : " <<
runnum_ << endl;
124 text_ <<
"# BinEdge NpartMean NpartVar NcollMean NcollVar NhardMean NhardVar bMean bVar" << endl;
137 CT.
m_table.push_back(*thisBin);
143 if (
pool.isAvailable()) {
144 pool->writeOneIOV(CT,
pool->currentTime(),
"HeavyIonRcd");
155 cout <<
"B = " << thisBin->
b.
mean << endl;
156 cout <<
"sigma = " << thisBin->
b.
var << endl;
157 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",
165 (Float_t)thisBin->
b.
mean,
166 (Float_t)thisBin->
b.
var)
168 cout <<
"__________________________________________________" << endl;
static const std::string kSharedResource
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
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
#define DEFINE_FWK_MODULE(type)
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