31 enum {c_nSlayers = 56};
43 void setSpeed(
unsigned short iCLayer,
float speed)
53 void addSpeed(
unsigned short iCLayer,
float delta)
89 std::cout <<
" " << std::endl;
90 std::cout <<
"PropSpeed list" << std::endl;
91 std::cout <<
"#entries= " <<
m_speeds.size() << std::endl;
92 std::cout <<
"in order of clayer and speed (cm/ns)" << std::endl;
94 for (
unsigned short iCL = 0; iCL <
m_speeds.size(); ++iCL) {
95 std::cout << iCL <<
" " <<
m_speeds[iCL] << std::endl;
104 std::ofstream fout(fileName);
107 B2ERROR(
"Specified output file could not be opened!");
109 for (
unsigned short iCL = 0; iCL <
m_speeds.size(); ++iCL) {
110 fout << std::setw(2) << std::right << iCL <<
" " << std::setw(15) << std::scientific << std::setprecision(
119 std::vector<float>
m_speeds = std::vector<float>(c_nSlayers);
Database object for signal propagation speed along the wire.
void setSpeed(unsigned short iCLayer, float speed)
Set the speed in the list.
void outputToFile(std::string fileName) const
Output the contents in text file format.
std::vector< float > getSpeeds() const
Get the whole list.
CDCPropSpeeds()
Default constructor.
void addSpeed(unsigned short iCLayer, float delta)
Update the speed in the list.
unsigned short getEntries() const
Get the no.
std::vector< float > m_speeds
list of speed
float getSpeed(unsigned short iCLayer) const
Get the speed for the specified layer.
ClassDef(CDCPropSpeeds, 1)
ClassDef.
void dump() const
Print out contents.
Abstract base class for different kinds of events.