Project
Loading...
Searching...
No Matches
o2::tof::TOFChannelData Class Reference

#include <TOFChannelCalibrator.h>

Public Member Functions

 TOFChannelData ()
 
 TOFChannelData (int nb, float r, CalibTOFapi *cta, int nElsPerSector=o2::tof::Geo::NPADSXSECTOR, bool perstrip=false, bool safe=false)
 
 ~TOFChannelData ()=default
 
void print () const
 
void print (int isect) const
 
void printEntries () const
 
void fill (const gsl::span< const o2::dataformats::CalibInfoTOF > data)
 
void fill (const gsl::span< const o2::tof::CalibInfoCluster > data)
 
void merge (const TOFChannelData *prev)
 
int findBin (float v) const
 
float integral (int chmin, int chmax, float binmin, float binmax) const
 
float integral (int chmin, int chmax, int binxmin, int binxmax) const
 
float integral (int ch, float binmin, float binmax) const
 
float integral (int ch, int binxmin, int binxmax) const
 
float integral (int ch) const
 
bool hasEnoughData (int minEntries) const
 
float getRange () const
 
void setRange (float r)
 
int getNbins () const
 
void setNbins (int nb)
 
boostHisto & getHisto (int isect)
 
const boostHisto & getHisto (int isect) const
 
std::vector< intgetEntriesPerChannel () const
 
void doPerStrip (bool val=true)
 
void doSafeMode (bool val=true)
 
void resetAndReRange (float range)
 

Static Public Attributes

static constexpr int NCOMBINSTRIP = o2::tof::Geo::NPADX + o2::tof::Geo::NPADS
 

Detailed Description

Definition at line 55 of file TOFChannelCalibrator.h.

Constructor & Destructor Documentation

◆ TOFChannelData() [1/2]

o2::tof::TOFChannelData::TOFChannelData ( )
inline

Definition at line 65 of file TOFChannelCalibrator.h.

◆ TOFChannelData() [2/2]

o2::tof::TOFChannelData::TOFChannelData ( int  nb,
float  r,
CalibTOFapi cta,
int  nElsPerSector = o2::tof::Geo::NPADSXSECTOR,
bool  perstrip = false,
bool  safe = false 
)
inline

Definition at line 71 of file TOFChannelCalibrator.h.

◆ ~TOFChannelData()

o2::tof::TOFChannelData::~TOFChannelData ( )
default

Member Function Documentation

◆ doPerStrip()

void o2::tof::TOFChannelData::doPerStrip ( bool  val = true)
inline

Definition at line 116 of file TOFChannelCalibrator.h.

◆ doSafeMode()

void o2::tof::TOFChannelData::doSafeMode ( bool  val = true)
inline

Definition at line 117 of file TOFChannelCalibrator.h.

◆ fill() [1/2]

void o2::tof::TOFChannelData::fill ( const gsl::span< const o2::dataformats::CalibInfoTOF data)

Definition at line 39 of file TOFChannelCalibrator.cxx.

◆ fill() [2/2]

void o2::tof::TOFChannelData::fill ( const gsl::span< const o2::tof::CalibInfoCluster data)

Definition at line 123 of file TOFChannelCalibrator.cxx.

◆ findBin()

int o2::tof::TOFChannelData::findBin ( float  v) const

Definition at line 299 of file TOFChannelCalibrator.cxx.

◆ getEntriesPerChannel()

std::vector< int > o2::tof::TOFChannelData::getEntriesPerChannel ( ) const
inline

Definition at line 114 of file TOFChannelCalibrator.h.

◆ getHisto() [1/2]

boostHisto & o2::tof::TOFChannelData::getHisto ( int  isect)
inline

Definition at line 109 of file TOFChannelCalibrator.h.

◆ getHisto() [2/2]

const boostHisto & o2::tof::TOFChannelData::getHisto ( int  isect) const
inline

Definition at line 110 of file TOFChannelCalibrator.h.

◆ getNbins()

int o2::tof::TOFChannelData::getNbins ( ) const
inline

Definition at line 106 of file TOFChannelCalibrator.h.

◆ getRange()

float o2::tof::TOFChannelData::getRange ( ) const
inline

Definition at line 103 of file TOFChannelCalibrator.h.

◆ hasEnoughData()

bool o2::tof::TOFChannelData::hasEnoughData ( int  minEntries) const

Definition at line 190 of file TOFChannelCalibrator.cxx.

◆ integral() [1/5]

float o2::tof::TOFChannelData::integral ( int  ch) const

Definition at line 410 of file TOFChannelCalibrator.cxx.

◆ integral() [2/5]

float o2::tof::TOFChannelData::integral ( int  ch,
float  binmin,
float  binmax 
) const

Definition at line 358 of file TOFChannelCalibrator.cxx.

◆ integral() [3/5]

float o2::tof::TOFChannelData::integral ( int  ch,
int  binxmin,
int  binxmax 
) const

Definition at line 402 of file TOFChannelCalibrator.cxx.

◆ integral() [4/5]

float o2::tof::TOFChannelData::integral ( int  chmin,
int  chmax,
float  binmin,
float  binmax 
) const

Definition at line 317 of file TOFChannelCalibrator.cxx.

◆ integral() [5/5]

float o2::tof::TOFChannelData::integral ( int  chmin,
int  chmax,
int  binxmin,
int  binxmax 
) const

Definition at line 366 of file TOFChannelCalibrator.cxx.

◆ merge()

void o2::tof::TOFChannelData::merge ( const TOFChannelData prev)

Definition at line 178 of file TOFChannelCalibrator.cxx.

◆ print() [1/2]

void o2::tof::TOFChannelData::print ( ) const

Definition at line 240 of file TOFChannelCalibrator.cxx.

◆ print() [2/2]

void o2::tof::TOFChannelData::print ( int  isect) const

Definition at line 268 of file TOFChannelCalibrator.cxx.

◆ printEntries()

void o2::tof::TOFChannelData::printEntries ( ) const

Definition at line 286 of file TOFChannelCalibrator.cxx.

◆ resetAndReRange()

void o2::tof::TOFChannelData::resetAndReRange ( float  range)

Definition at line 418 of file TOFChannelCalibrator.cxx.

◆ setNbins()

void o2::tof::TOFChannelData::setNbins ( int  nb)
inline

Definition at line 107 of file TOFChannelCalibrator.h.

◆ setRange()

void o2::tof::TOFChannelData::setRange ( float  r)
inline

Definition at line 104 of file TOFChannelCalibrator.h.

Member Data Documentation

◆ NCOMBINSTRIP

constexpr int o2::tof::TOFChannelData::NCOMBINSTRIP = o2::tof::Geo::NPADX + o2::tof::Geo::NPADS
staticconstexpr

Definition at line 63 of file TOFChannelCalibrator.h.


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