extracts OFCs from database
More...
#include <TileCondToolOfcCool.h>
|
| | TileCondToolOfcCool (const std::string &type, const std::string &name, const IInterface *parent) |
| |
| virtual | ~TileCondToolOfcCool () |
| |
| virtual StatusCode | initialize () override |
| |
| virtual StatusCode | finalize () override |
| |
| virtual StatusCode | getOfcWeights (unsigned int drawerIdx, unsigned int channel, unsigned int adc, float &phase, bool of2, TileOfcWeightsStruct &weights, const EventContext &ctx) const override |
| |
| int | getOfcWeights (unsigned int drawerIdx, unsigned int channel, unsigned int adc, float &phase, float *a, float *b, float *c, float *g, float *dg, const EventContext &ctx) |
| |
| void | getOfcParams (unsigned int drawerIdx, int &NPhases, int &NFields, int &Phamin, int &Phamax, int &NSamples, const EventContext &ctx) |
| |
extracts OFCs from database
Definition at line 27 of file TileCondToolOfcCool.h.
◆ TileCondToolOfcCool()
| TileCondToolOfcCool::TileCondToolOfcCool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TileCondToolOfcCool()
| TileCondToolOfcCool::~TileCondToolOfcCool |
( |
| ) |
|
|
virtual |
◆ finalize()
| StatusCode TileCondToolOfcCool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getOfcParams()
| void TileCondToolOfcCool::getOfcParams |
( |
unsigned int |
drawerIdx, |
|
|
int & |
NPhases, |
|
|
int & |
NFields, |
|
|
int & |
Phamin, |
|
|
int & |
Phamax, |
|
|
int & |
NSamples, |
|
|
const EventContext & |
ctx |
|
) |
| |
Definition at line 90 of file TileCondToolOfcCool.cxx.
100 NPhases = calibOFC->getCalibDrawer(drawerIdx)->getNPhases();
101 NFields = calibOFC->getCalibDrawer(drawerIdx)->getNFields();
103 Phamax =
round(calibOFC->getCalibDrawer(drawerIdx)->getPhase(0, 0, abs(NPhases) - 1) * (1 /
PHASE_PRECISION));
104 NSamples = calibOFC->getCalibDrawer(drawerIdx)->getNSamples();
◆ getOfcWeights() [1/2]
| StatusCode TileCondToolOfcCool::getOfcWeights |
( |
unsigned int |
drawerIdx, |
|
|
unsigned int |
channel, |
|
|
unsigned int |
adc, |
|
|
float & |
phase, |
|
|
bool |
of2, |
|
|
TileOfcWeightsStruct & |
weights, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
Definition at line 48 of file TileCondToolOfcCool.cxx.
67 weights.n_samples = calibOFC->getCalibDrawer(drawerIdx)->getNSamples();
69 return StatusCode::SUCCESS;
◆ getOfcWeights() [2/2]
| int TileCondToolOfcCool::getOfcWeights |
( |
unsigned int |
drawerIdx, |
|
|
unsigned int |
channel, |
|
|
unsigned int |
adc, |
|
|
float & |
phase, |
|
|
float * |
a, |
|
|
float * |
b, |
|
|
float * |
c, |
|
|
float * |
g, |
|
|
float * |
dg, |
|
|
const EventContext & |
ctx |
|
) |
| |
◆ initialize()
| StatusCode TileCondToolOfcCool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_calibOfcKey
Initial value:{this,
"TileOfc", "TileOfc", "Input Tile OFC constants"}
Definition at line 55 of file TileCondToolOfcCool.h.
The documentation for this class was generated from the following files: