Database object for timing offset (t0).
More...
#include <CDCTimeZeros.h>
|
| 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
|
|
|
std::map< unsigned short, float > | m_t0s |
| t0 list
|
|
Database object for timing offset (t0).
Definition at line 26 of file CDCTimeZeros.h.
◆ addT0() [1/2]
void addT0 |
( |
const WireID & |
wid, |
|
|
float |
delta |
|
) |
| |
|
inline |
Update t0 in the list.
- Parameters
-
wid | wire id. |
delta | delta-offset |
Definition at line 73 of file CDCTimeZeros.h.
75 std::map<unsigned short, float>::iterator it =
m_t0s.find(wid.getEWire());
std::map< unsigned short, float > m_t0s
t0 list
◆ addT0() [2/2]
void addT0 |
( |
unsigned short |
iCLayer, |
|
|
unsigned short |
iWire, |
|
|
float |
delta |
|
) |
| |
|
inline |
Update t0 in the list.
- Parameters
-
iCLayer | (continuous) layer id. |
iWire | wire id. in the layer |
delta | delta-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
-
- Returns
- t0 for the wire
Definition at line 100 of file CDCTimeZeros.h.
◆ setT0() [1/2]
void setT0 |
( |
const WireID & |
wid, |
|
|
float |
t0 |
|
) |
| |
|
inline |
◆ setT0() [2/2]
void setT0 |
( |
unsigned short |
iCLayer, |
|
|
unsigned short |
iWire, |
|
|
float |
t0 |
|
) |
| |
|
inline |
Set t0 in the list.
- Parameters
-
iCLayer | (continuous) layer id. |
iWire | wire id. in the layer |
t0 | offset |
Definition at line 40 of file CDCTimeZeros.h.
The documentation for this class was generated from the following file: