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

Database object for timing offset (t0). More...

#include <CDCTimeZeros.h>

Inheritance diagram for CDCTimeZeros:
Collaboration diagram for CDCTimeZeros:

Public Member Functions

 CDCTimeZeros ()
 Default constructor.
 
void setT0 (unsigned short iCLayer, unsigned short iWire, float t0)
 Set t0 in the list. More...
 
void setT0 (const WireID &wid, float t0)
 Set t0 in the list. More...
 
void addT0 (unsigned short iCLayer, unsigned short iWire, float delta)
 Update t0 in the list. More...
 
void addT0 (const WireID &wid, float delta)
 Update t0 in the list. More...
 
unsigned short getEntries () const
 Get the no. More...
 
std::map< unsigned short, float > getT0s () const
 Get the whole list.
 
float getT0 (const WireID &wid) const
 Get t0 for the specified wire. More...
 
void dump () const
 Print out all contents.
 
void outputToFile (std::string fileName) const
 Output the contents in text file format.
 
double getGlobalParam (unsigned short element, unsigned short)
 Get global parameter.
 
void setGlobalParam (double value, unsigned short element, unsigned short)
 Set global parameter.
 
std::vector< std::pair< unsigned short, unsigned short > > listGlobalParams ()
 list stored global parameters
 

Static Public Member Functions

static unsigned short getGlobalUniqueID ()
 Get global unique id.
 

Private Member Functions

 ClassDef (CDCTimeZeros, 2)
 ClassDef.
 

Private Attributes

std::map< unsigned short, float > m_t0s
 t0 list
 

Detailed Description

Database object for timing offset (t0).

Definition at line 26 of file CDCTimeZeros.h.

Member Function Documentation

◆ addT0() [1/2]

void addT0 ( const WireID wid,
float  delta 
)
inline

Update t0 in the list.

Parameters
widwire id.
deltadelta-offset

Definition at line 73 of file CDCTimeZeros.h.

74  {
75  std::map<unsigned short, float>::iterator it = m_t0s.find(wid.getEWire());
76  it->second += delta;
77  }
std::map< unsigned short, float > m_t0s
t0 list
Definition: CDCTimeZeros.h:166

◆ addT0() [2/2]

void addT0 ( unsigned short  iCLayer,
unsigned short  iWire,
float  delta 
)
inline

Update t0 in the list.

Parameters
iCLayer(continuous) layer id.
iWirewire id. in the layer
deltadelta-offset

Definition at line 61 of file CDCTimeZeros.h.

◆ getEntries()

unsigned short getEntries ( ) const
inline

Get the no.

of entries in the list

Definition at line 82 of file CDCTimeZeros.h.

◆ getT0()

float getT0 ( const WireID wid) const
inline

Get t0 for the specified wire.

Parameters
widWire id.
Returns
t0 for the wire

Definition at line 100 of file CDCTimeZeros.h.

◆ setT0() [1/2]

void setT0 ( const WireID wid,
float  t0 
)
inline

Set t0 in the list.

Parameters
widwire id.
t0offset

Definition at line 50 of file CDCTimeZeros.h.

◆ setT0() [2/2]

void setT0 ( unsigned short  iCLayer,
unsigned short  iWire,
float  t0 
)
inline

Set t0 in the list.

Parameters
iCLayer(continuous) layer id.
iWirewire id. in the layer
t0offset

Definition at line 40 of file CDCTimeZeros.h.


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