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

Condition object to keep and provide Tile sample noise. More...

#include <TileSampleNoise.h>

Collaboration diagram for TileSampleNoise:

Public Member Functions

 TileSampleNoise (std::unique_ptr< TileCalibDataFlt > sampleNoise)
 
virtual ~TileSampleNoise ()=default
 
float getPed (unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
 
float getHfn (unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
 
float getLfn (unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
 
float getHfn1 (unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
 
float getHfn2 (unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
 
float getHfnNorm (unsigned int drawerIdx, unsigned int channel, unsigned int adc) const
 

Private Attributes

std::unique_ptr< TileCalibDataFltm_sampleNoise
 

Detailed Description

Condition object to keep and provide Tile sample noise.

Definition at line 18 of file TileSampleNoise.h.

Constructor & Destructor Documentation

◆ TileSampleNoise()

TileSampleNoise::TileSampleNoise ( std::unique_ptr< TileCalibDataFlt sampleNoise)
inline

Definition at line 22 of file TileSampleNoise.h.

22 : m_sampleNoise{std::move(sampleNoise)} {};

◆ ~TileSampleNoise()

virtual TileSampleNoise::~TileSampleNoise ( )
virtualdefault

Member Function Documentation

◆ getHfn()

float TileSampleNoise::getHfn ( unsigned int  drawerIdx,
unsigned int  channel,
unsigned int  adc 
) const
inline

Definition at line 51 of file TileSampleNoise.h.

51  {
52  return m_sampleNoise->getCalibDrawer(drawerIdx)->getData(channel, adc, 1);
53 }

◆ getHfn1()

float TileSampleNoise::getHfn1 ( unsigned int  drawerIdx,
unsigned int  channel,
unsigned int  adc 
) const
inline

Definition at line 63 of file TileSampleNoise.h.

63  {
64  const TileCalibDrawerFlt* calibDrawer = m_sampleNoise->getCalibDrawer(drawerIdx);
65  //=== check if Hfn1 is stored already, if not - return old Hfn
66  return (calibDrawer->getObjSizeUint32() < 4) ? calibDrawer->getData(channel, adc, 1)
67  : calibDrawer->getData(channel, adc, 3);
68 }

◆ getHfn2()

float TileSampleNoise::getHfn2 ( unsigned int  drawerIdx,
unsigned int  channel,
unsigned int  adc 
) const
inline

Definition at line 71 of file TileSampleNoise.h.

71  {
72  const TileCalibDrawerFlt* calibDrawer = m_sampleNoise->getCalibDrawer(drawerIdx);
73  //=== check if Hfn2 is stored already, if not - return zero
74  return (calibDrawer->getObjSizeUint32() < 5) ? 0.0 : calibDrawer->getData(channel, adc, 4);
75 }

◆ getHfnNorm()

float TileSampleNoise::getHfnNorm ( unsigned int  drawerIdx,
unsigned int  channel,
unsigned int  adc 
) const
inline

Definition at line 78 of file TileSampleNoise.h.

78  {
79  const TileCalibDrawerFlt* calibDrawer = m_sampleNoise->getCalibDrawer(drawerIdx);
80  //=== check if HfnNorm is stored already, if not - return zero
81  return (calibDrawer->getObjSizeUint32() < 6) ? 0.0 : calibDrawer->getData(channel, adc, 5);
82 }

◆ getLfn()

float TileSampleNoise::getLfn ( unsigned int  drawerIdx,
unsigned int  channel,
unsigned int  adc 
) const
inline

Definition at line 56 of file TileSampleNoise.h.

56  {
57  const TileCalibDrawerFlt* calibDrawer = m_sampleNoise->getCalibDrawer(drawerIdx);
58  //=== check if Lfn is stored already if not - return zero
59  return (calibDrawer->getObjSizeUint32() < 3) ? 0. : calibDrawer->getData(channel, adc, 2);
60 }

◆ getPed()

float TileSampleNoise::getPed ( unsigned int  drawerIdx,
unsigned int  channel,
unsigned int  adc 
) const
inline

Definition at line 46 of file TileSampleNoise.h.

46  {
47  return m_sampleNoise->getCalibDrawer(drawerIdx)->getData(channel, adc, 0);
48 }

Member Data Documentation

◆ m_sampleNoise

std::unique_ptr<TileCalibDataFlt> TileSampleNoise::m_sampleNoise
private

Definition at line 40 of file TileSampleNoise.h.


The documentation for this class was generated from the following file:
TileCalibDrawerFlt
Generic class for storing a number of floats (Flt) for each channel or ADC.
Definition: TileCalibDrawerFlt.h:27
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
BchCleanup.calibDrawer
calibDrawer
Definition: BchCleanup.py:217
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
TileSampleNoise::m_sampleNoise
std::unique_ptr< TileCalibDataFlt > m_sampleNoise
Definition: TileSampleNoise.h:40