Project
Loading...
Searching...
No Matches
o2::emcal::EMCALChannelData Class Reference

#include <EMCALChannelData.h>

Public Member Functions

 EMCALChannelData ()
 
 ~EMCALChannelData ()=default
 
void PrintStream (std::ostream &stream) const
 Print relevant info for EMCALChannelData on a given stream.
 
void print ()
 Print a useful message about the container.
 
void fill (const gsl::span< const o2::emcal::Cell > data)
 Fill the container with the cell ID and amplitude.
 
void merge (EMCALChannelData *prev)
 Merge the data of two slots.
 
bool hasEnoughData () const
 Check if enough stataistics was accumulated to perform calibration.
 
const boostHisto & getHisto ()
 Get current calibration histogram.
 
void setHisto (boostHisto hist, int nthr=0)
 Set new calibration histogram.
 
const boostHisto & getHistoTime ()
 Get current calibration histogram with time information.
 
void setHistoTime (boostHisto hist, int nthr=0)
 Set new calibration histogram with timing info.
 
void analyzeSlot ()
 Peform the calibration and flag the bad channel map Average energy per hit histogram is fitted with a gaussian good area is +-mSigma cells beyond that value are flagged as bad.
 
float getRange () const
 
void setRange (float r)
 
int getNbins () const
 
void setNbins (int nb)
 
int getNEvents () const
 
void setNEvents (int nevt)
 
long unsigned int getNEntriesInHisto () const
 
void setNEntriesInHisto (long unsigned int n)
 
void addEntriesInHisto (long unsigned int n)
 
void setGainCalibFactors (o2::emcal::GainCalibrationFactors *calibFactors)
 

Public Attributes

o2::emcal::GeometrymGeometry = o2::emcal::Geometry::GetInstanceFromRunNumber(300000)
 
int NCELLS = mGeometry->GetNCells()
 

Detailed Description

Definition at line 52 of file EMCALChannelData.h.

Constructor & Destructor Documentation

◆ EMCALChannelData()

o2::emcal::EMCALChannelData::EMCALChannelData ( )
inline

Definition at line 64 of file EMCALChannelData.h.

◆ ~EMCALChannelData()

o2::emcal::EMCALChannelData::~EMCALChannelData ( )
default

Member Function Documentation

◆ addEntriesInHisto()

void o2::emcal::EMCALChannelData::addEntriesInHisto ( long unsigned int  n)
inline

Definition at line 146 of file EMCALChannelData.h.

◆ analyzeSlot()

void EMCALChannelData::analyzeSlot ( )

Peform the calibration and flag the bad channel map Average energy per hit histogram is fitted with a gaussian good area is +-mSigma cells beyond that value are flagged as bad.

Definition at line 158 of file EMCALChannelData.cxx.

◆ fill()

void EMCALChannelData::fill ( const gsl::span< const o2::emcal::Cell data)

Fill the container with the cell ID and amplitude.

Definition at line 51 of file EMCALChannelData.cxx.

◆ getHisto()

const boostHisto & o2::emcal::EMCALChannelData::getHisto ( )
inline

Get current calibration histogram.

Definition at line 99 of file EMCALChannelData.h.

◆ getHistoTime()

const boostHisto & o2::emcal::EMCALChannelData::getHistoTime ( )
inline

Get current calibration histogram with time information.

Definition at line 116 of file EMCALChannelData.h.

◆ getNbins()

int o2::emcal::EMCALChannelData::getNbins ( ) const
inline

Definition at line 138 of file EMCALChannelData.h.

◆ getNEntriesInHisto()

long unsigned int o2::emcal::EMCALChannelData::getNEntriesInHisto ( ) const
inline

Definition at line 144 of file EMCALChannelData.h.

◆ getNEvents()

int o2::emcal::EMCALChannelData::getNEvents ( ) const
inline

Definition at line 141 of file EMCALChannelData.h.

◆ getRange()

float o2::emcal::EMCALChannelData::getRange ( ) const
inline

Definition at line 135 of file EMCALChannelData.h.

◆ hasEnoughData()

bool EMCALChannelData::hasEnoughData ( ) const

Check if enough stataistics was accumulated to perform calibration.

Definition at line 137 of file EMCALChannelData.cxx.

◆ merge()

void EMCALChannelData::merge ( EMCALChannelData prev)

Merge the data of two slots.

Definition at line 128 of file EMCALChannelData.cxx.

◆ print()

void EMCALChannelData::print ( )

Print a useful message about the container.

Definition at line 123 of file EMCALChannelData.cxx.

◆ PrintStream()

void EMCALChannelData::PrintStream ( std::ostream &  stream) const

Print relevant info for EMCALChannelData on a given stream.

Parameters
streamStream on which the info is printed on The function is called in the operator<< providing direct access to protected members. Explicit calls by the users is normally not necessary.

Definition at line 40 of file EMCALChannelData.cxx.

◆ setGainCalibFactors()

void o2::emcal::EMCALChannelData::setGainCalibFactors ( o2::emcal::GainCalibrationFactors calibFactors)
inline

Definition at line 148 of file EMCALChannelData.h.

◆ setHisto()

void o2::emcal::EMCALChannelData::setHisto ( boostHisto  hist,
int  nthr = 0 
)
inline

Set new calibration histogram.

Definition at line 113 of file EMCALChannelData.h.

◆ setHistoTime()

void o2::emcal::EMCALChannelData::setHistoTime ( boostHisto  hist,
int  nthr = 0 
)
inline

Set new calibration histogram with timing info.

Definition at line 127 of file EMCALChannelData.h.

◆ setNbins()

void o2::emcal::EMCALChannelData::setNbins ( int  nb)
inline

Definition at line 139 of file EMCALChannelData.h.

◆ setNEntriesInHisto()

void o2::emcal::EMCALChannelData::setNEntriesInHisto ( long unsigned int  n)
inline

Definition at line 145 of file EMCALChannelData.h.

◆ setNEvents()

void o2::emcal::EMCALChannelData::setNEvents ( int  nevt)
inline

Definition at line 142 of file EMCALChannelData.h.

◆ setRange()

void o2::emcal::EMCALChannelData::setRange ( float  r)
inline

Definition at line 136 of file EMCALChannelData.h.

Member Data Documentation

◆ mGeometry

o2::emcal::Geometry* o2::emcal::EMCALChannelData::mGeometry = o2::emcal::Geometry::GetInstanceFromRunNumber(300000)

Definition at line 61 of file EMCALChannelData.h.

◆ NCELLS

int o2::emcal::EMCALChannelData::NCELLS = mGeometry->GetNCells()

Definition at line 62 of file EMCALChannelData.h.


The documentation for this class was generated from the following files: