Belle II Software  release-08-01-10
CDCPropSpeeds Class Reference

Database object for signal propagation speed along the wire. More...

#include <CDCPropSpeeds.h>

Inheritance diagram for CDCPropSpeeds:
Collaboration diagram for CDCPropSpeeds:

Public Types

enum  { c_nSlayers = 56 }
 Constant.
 

Public Member Functions

 CDCPropSpeeds ()
 Default constructor.
 
void setSpeed (unsigned short iCLayer, float speed)
 Set the speed in the list. More...
 
void addSpeed (unsigned short iCLayer, float delta)
 Update the speed in the list. More...
 
unsigned short getEntries () const
 Get the no. More...
 
std::vector< float > getSpeeds () const
 Get the whole list.
 
float getSpeed (unsigned short iCLayer) const
 Get the speed for the specified layer. More...
 
void dump () const
 Print out contents.
 
void outputToFile (std::string fileName) const
 Output the contents in text file format.
 

Private Member Functions

 ClassDef (CDCPropSpeeds, 1)
 ClassDef.
 

Private Attributes

std::vector< float > m_speeds = std::vector<float>(c_nSlayers)
 list of speed
 

Detailed Description

Database object for signal propagation speed along the wire.

Definition at line 25 of file CDCPropSpeeds.h.

Member Function Documentation

◆ addSpeed()

void addSpeed ( unsigned short  iCLayer,
float  delta 
)
inline

Update the speed in the list.

Parameters
iCLayer(continuous) layer-id,
deltadelta-speed for the layer

Definition at line 53 of file CDCPropSpeeds.h.

54  {
55  m_speeds.at(iCLayer) += delta;
56  }
std::vector< float > m_speeds
list of speed

◆ getEntries()

unsigned short getEntries ( ) const
inline

Get the no.

of entries in the list

Definition at line 61 of file CDCPropSpeeds.h.

◆ getSpeed()

float getSpeed ( unsigned short  iCLayer) const
inline

Get the speed for the specified layer.

Parameters
iCLayer(continuous) layer-id.
Returns
propagation speed for the layer

Definition at line 79 of file CDCPropSpeeds.h.

◆ setSpeed()

void setSpeed ( unsigned short  iCLayer,
float  speed 
)
inline

Set the speed in the list.

Parameters
iCLayer(continuous) layer-id,
speedpropagation speed for the layer

Definition at line 43 of file CDCPropSpeeds.h.


The documentation for this class was generated from the following file: