16#include <cdc/geometry/CDCGeometryParConstants.h>
56 std::array<float, c_maxNSenseLayers>
getParams()
const
76 std::cout <<
" " << std::endl;
77 std::cout <<
"Correction parametres" << std::endl;
78 std::cout <<
"#entries= " <<
m_crs.size() << std::endl;
79 std::cout <<
"in order of id and parameter" << std::endl;
81 for (
unsigned id = 0;
id < c_maxNSenseLayers; ++id) {
82 std::cout <<
id <<
" " <<
m_crs[id] << std::endl;
92 std::ofstream fout(fileName);
95 B2ERROR(
"Specified output file could not be opened!");
97 for (
unsigned id = 0;
id < c_maxNSenseLayers; ++id) {
98 fout <<
id <<
" " <<
m_crs[id] << std::endl;
105 std::array<float, c_maxNSenseLayers>
m_crs;
Database object for correcting a simple threshold model in MC.
std::array< float, c_maxNSenseLayers > m_crs
cr array
void outputToFile(std::string fileName) const
Output the contents in text file format.
ClassDef(CDCCorrToThresholds, 2)
ClassDef.
float getParam(unsigned short id) const
Get the parameter for the id.
void setParam(unsigned short id, double param)
Set the paramseter in the array.
std::array< float, c_maxNSenseLayers > getParams() const
Get the whole array.
unsigned short getEntries() const
Get the no.
CDCCorrToThresholds()
Default constructor.
void dump() const
Print all contents.
Abstract base class for different kinds of events.