 |
Belle II Software
release-05-01-25
|
27 class CDCPropSpeeds:
public TObject {
33 enum {c_nSlayers = 56};
45 void setSpeed(
unsigned short iCLayer,
float speed)
55 void addSpeed(
unsigned short iCLayer,
float delta)
81 float getSpeed(
unsigned short iCLayer)
const
91 std::cout <<
" " << std::endl;
92 std::cout <<
"PropSpeed list" << std::endl;
93 std::cout <<
"#entries= " <<
m_speeds.size() << std::endl;
94 std::cout <<
"in order of clayer and speed (cm/ns)" << std::endl;
96 for (
unsigned short iCL = 0; iCL <
m_speeds.size(); ++iCL) {
97 std::cout << iCL <<
" " <<
m_speeds[iCL] << std::endl;
106 std::ofstream fout(fileName);
109 B2ERROR(
"Specified output file could not be opened!");
111 for (
unsigned short iCL = 0; iCL <
m_speeds.size(); ++iCL) {
112 fout << std::setw(2) << std::right << iCL <<
" " << std::setw(15) << std::scientific << std::setprecision(
121 std::vector<float>
m_speeds = std::vector<float>(c_nSlayers);
float getSpeed(unsigned short iCLayer) const
Get the speed for the specified layer.
std::vector< float > getSpeeds() const
Get the whole list.
void setSpeed(unsigned short iCLayer, float speed)
Set the speed in the list.
ClassDef(CDCPropSpeeds, 1)
ClassDef.
void dump() const
Print out contents.
Abstract base class for different kinds of events.
std::vector< float > m_speeds
list of speed
void addSpeed(unsigned short iCLayer, float delta)
Update the speed in the list.
void outputToFile(std::string fileName) const
Output the contents in text file format.
CDCPropSpeeds()
Default constructor.
unsigned short getEntries() const
Get the no.