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

Condition object to keep and provide Tile Calorimeter sampling fraction and number of photoelectrons. More...

#include <TileSamplingFraction.h>

Collaboration diagram for TileSamplingFraction:

Public Member Functions

 TileSamplingFraction (std::unique_ptr< TileCalibDataFlt > samplingFraction)
 
virtual ~TileSamplingFraction ()=default
 
float getSamplingFraction (unsigned int drawerIdx, unsigned int channel) const
 Return Tile Calorimeter sampling fraction. More...
 
float getNumberOfPhotoElectrons (unsigned int drawerIdx, unsigned int channel) const
 Return number of photoelectrons per 1 GeV in Tile Calorimeter scintilator. More...
 
 TileSamplingFraction (const TileSamplingFraction &)=delete
 
TileSamplingFractionoperator= (const TileSamplingFraction &)=delete
 

Private Attributes

std::unique_ptr< TileCalibDataFltm_samplingFraction
 

Detailed Description

Condition object to keep and provide Tile Calorimeter sampling fraction and number of photoelectrons.

Definition at line 16 of file TileSamplingFraction.h.

Constructor & Destructor Documentation

◆ TileSamplingFraction() [1/2]

TileSamplingFraction::TileSamplingFraction ( std::unique_ptr< TileCalibDataFlt samplingFraction)
inline

Definition at line 20 of file TileSamplingFraction.h.

21  : m_samplingFraction{std::move(samplingFraction)} {};

◆ ~TileSamplingFraction()

virtual TileSamplingFraction::~TileSamplingFraction ( )
virtualdefault

◆ TileSamplingFraction() [2/2]

TileSamplingFraction::TileSamplingFraction ( const TileSamplingFraction )
delete

Member Function Documentation

◆ getNumberOfPhotoElectrons()

float TileSamplingFraction::getNumberOfPhotoElectrons ( unsigned int  drawerIdx,
unsigned int  channel 
) const
inline

Return number of photoelectrons per 1 GeV in Tile Calorimeter scintilator.

Returns
number of photoelectrons
Parameters
drawerIdxTile drawer index in range [0..275]
channelTile channel number

Definition at line 58 of file TileSamplingFraction.h.

58  {
59  return m_samplingFraction->getCalibDrawer(drawerIdx)->getData(channel, 0, 1);
60 }

◆ getSamplingFraction()

float TileSamplingFraction::getSamplingFraction ( unsigned int  drawerIdx,
unsigned int  channel 
) const
inline

Return Tile Calorimeter sampling fraction.

Returns
Tile Calorimeter sampling fraction
Parameters
drawerIdxTile drawer index in range [0..275]
channelTile channel number

Definition at line 53 of file TileSamplingFraction.h.

53  {
54  return m_samplingFraction->getCalibDrawer(drawerIdx)->getData(channel, 0, 0);
55 }

◆ operator=()

TileSamplingFraction& TileSamplingFraction::operator= ( const TileSamplingFraction )
delete

Member Data Documentation

◆ m_samplingFraction

std::unique_ptr<TileCalibDataFlt> TileSamplingFraction::m_samplingFraction
private

Definition at line 47 of file TileSamplingFraction.h.


The documentation for this class was generated from the following file:
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
TileSamplingFraction::m_samplingFraction
std::unique_ptr< TileCalibDataFlt > m_samplingFraction
Definition: TileSamplingFraction.h:47