ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TileCondToolOfcCool Class Reference

extracts OFCs from database More...

#include <TileCondToolOfcCool.h>

Inheritance diagram for TileCondToolOfcCool:
Collaboration diagram for TileCondToolOfcCool:

Public Member Functions

 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)
 

Private Attributes

SG::ReadCondHandleKey< TileCalibData< TileCalibDrawerOfc > > m_calibOfcKey
 

Detailed Description

extracts OFCs from database

Definition at line 27 of file TileCondToolOfcCool.h.

Constructor & Destructor Documentation

◆ TileCondToolOfcCool()

TileCondToolOfcCool::TileCondToolOfcCool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 15 of file TileCondToolOfcCool.cxx.

17  : base_class(type, name, parent)
18 {
19 }

◆ ~TileCondToolOfcCool()

TileCondToolOfcCool::~TileCondToolOfcCool ( )
virtual

Definition at line 23 of file TileCondToolOfcCool.cxx.

23  {
24 
25 }

Member Function Documentation

◆ finalize()

StatusCode TileCondToolOfcCool::finalize ( )
overridevirtual

Definition at line 39 of file TileCondToolOfcCool.cxx.

39  {
40  ATH_MSG_DEBUG( "finalize called" );
41 
42  return StatusCode::SUCCESS;
43 }

◆ 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.

96  {
97 
99 
100  NPhases = calibOFC->getCalibDrawer(drawerIdx)->getNPhases();
101  NFields = calibOFC->getCalibDrawer(drawerIdx)->getNFields();
102  Phamin = round(calibOFC->getCalibDrawer(drawerIdx)->getPhase(0, 0, 0) * (1 / PHASE_PRECISION));
103  Phamax = round(calibOFC->getCalibDrawer(drawerIdx)->getPhase(0, 0, abs(NPhases) - 1) * (1 / PHASE_PRECISION));
104  NSamples = calibOFC->getCalibDrawer(drawerIdx)->getNSamples();
105 }

◆ 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.

55 {
61 
63 
64  calibOFC->getCalibDrawer(drawerIdx)->fillOfc(channel, adc, phase, weights.w_a, weights.w_b,
65  weights.w_c, weights.g, weights.dg);
66 
67  weights.n_samples = calibOFC->getCalibDrawer(drawerIdx)->getNSamples();
68 
69  return StatusCode::SUCCESS;
70 }

◆ 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 
)

Definition at line 74 of file TileCondToolOfcCool.cxx.

79  {
80 
82 
83  calibOFC->getCalibDrawer(drawerIdx)->fillOfc(channel, adc, phase, a, b, c, g, dg);
84 
85  return calibOFC->getCalibDrawer(drawerIdx)->getNSamples();
86 }

◆ initialize()

StatusCode TileCondToolOfcCool::initialize ( )
overridevirtual

Definition at line 29 of file TileCondToolOfcCool.cxx.

29  {
30  ATH_MSG_DEBUG( "In initialize()" );
31 
33 
34  return StatusCode::SUCCESS;
35 }

Member Data Documentation

◆ m_calibOfcKey

SG::ReadCondHandleKey<TileCalibData<TileCalibDrawerOfc> > TileCondToolOfcCool::m_calibOfcKey
private
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:
ReadOfcFromCool.phase
phase
Definition: ReadOfcFromCool.py:127
checkCoolLatestUpdate.dg
dg
Definition: checkCoolLatestUpdate.py:9
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
TileCondToolOfcCool::m_calibOfcKey
SG::ReadCondHandleKey< TileCalibData< TileCalibDrawerOfc > > m_calibOfcKey
Definition: TileCondToolOfcCool.h:55
PHASE_PRECISION
#define PHASE_PRECISION
Class for storing Optimal Filtering Coefficients (OFCs) in a coral::Blob.
Definition: TileCalibDrawerOfc.h:38
StateLessPT_NewConfig.NSamples
int NSamples
Definition: StateLessPT_NewConfig.py:94
MuonGM::round
float round(const float toRound, const unsigned int decimals)
Definition: Mdt.cxx:27
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
fill
void fill(H5::Group &out_file, size_t iterations)
Definition: test-hdf5-writer.cxx:95
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
weights
Definition: herwig7_interface.h:38
a
TList * a
Definition: liststreamerinfos.cxx:10
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.compressB64.c
def c
Definition: compressB64.py:93