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

EMCAL FEE digitizer. More...

#include <Digitizer.h>

Inherits TObject.

Public Member Functions

 Digitizer ()=default
 
 ~Digitizer () override=default
 
 Digitizer (const Digitizer &)=delete
 
Digitizeroperator= (const Digitizer &)=delete
 
void init ()
 
void clear ()
 
void flush ()
 clear DigitsVectorStream
 
void finish ()
 This is for the readout window that was interrupted by the end of the run.
 
void process (const std::vector< LabeledDigit > &labeledDigit)
 Steer conversion of hits to digits.
 
void setEventTime (o2::InteractionTimeRecord record, bool trigger)
 
double getTriggerTime () const
 
double getEventTime () const
 
bool isLive (double t) const
 
bool isLive () const
 
void setDebugStreaming (bool doStreaming)
 
bool preTriggerCollision () const
 
void fillOutputContainer (std::vector< Digit > &digits, o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > &labels)
 
bool doSmearEnergy () const
 
double smearEnergy (double energy)
 
double smearTime (double time, double energy)
 
bool doSimulateTimeResponse () const
 
void sampleSDigit (const Digit &sdigit)
 
const std::vector< o2::emcal::Digit > & getDigits () const
 
const std::vector< o2::emcal::TriggerRecord > & getTriggerRecords () const
 
const o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > & getMCLabels () const
 

Static Public Member Functions

static double rawResponseFunction (double *x, double *par)
 raw pointers used here to allow interface with TF1
 
static constexpr int getTOFSamplingBins ()
 

Detailed Description

EMCAL FEE digitizer.

Author
Anders Knospe, University of Houston
Hadi Hassan, ORNL @TODO adapt it to digitize TRU digits

Definition at line 50 of file Digitizer.h.

Constructor & Destructor Documentation

◆ Digitizer() [1/2]

o2::emcal::Digitizer::Digitizer ( )
default

◆ ~Digitizer()

o2::emcal::Digitizer::~Digitizer ( )
overridedefault

◆ Digitizer() [2/2]

o2::emcal::Digitizer::Digitizer ( const Digitizer )
delete

Member Function Documentation

◆ clear()

void Digitizer::clear ( )

Definition at line 113 of file Digitizer.cxx.

◆ doSimulateTimeResponse()

bool o2::emcal::Digitizer::doSimulateTimeResponse ( ) const
inline

Definition at line 86 of file Digitizer.h.

◆ doSmearEnergy()

bool o2::emcal::Digitizer::doSmearEnergy ( ) const
inline

Definition at line 83 of file Digitizer.h.

◆ fillOutputContainer()

void o2::emcal::Digitizer::fillOutputContainer ( std::vector< Digit > &  digits,
o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > &  labels 
)

◆ finish()

void o2::emcal::Digitizer::finish ( )
inline

This is for the readout window that was interrupted by the end of the run.

Definition at line 65 of file Digitizer.h.

◆ flush()

void o2::emcal::Digitizer::flush ( )
inline

clear DigitsVectorStream

Definition at line 62 of file Digitizer.h.

◆ getDigits()

const std::vector< o2::emcal::Digit > & o2::emcal::Digitizer::getDigits ( ) const
inline

Definition at line 93 of file Digitizer.h.

◆ getEventTime()

double o2::emcal::Digitizer::getEventTime ( ) const
inline

Definition at line 72 of file Digitizer.h.

◆ getMCLabels()

const o2::dataformats::MCTruthContainer< o2::emcal::MCLabel > & o2::emcal::Digitizer::getMCLabels ( ) const
inline

Definition at line 95 of file Digitizer.h.

◆ getTOFSamplingBins()

static constexpr int o2::emcal::Digitizer::getTOFSamplingBins ( )
inlinestaticconstexpr

Definition at line 97 of file Digitizer.h.

◆ getTriggerRecords()

const std::vector< o2::emcal::TriggerRecord > & o2::emcal::Digitizer::getTriggerRecords ( ) const
inline

Definition at line 94 of file Digitizer.h.

◆ getTriggerTime()

double o2::emcal::Digitizer::getTriggerTime ( ) const
inline

Definition at line 71 of file Digitizer.h.

◆ init()

void Digitizer::init ( )

Definition at line 40 of file Digitizer.cxx.

◆ isLive() [1/2]

bool o2::emcal::Digitizer::isLive ( ) const
inline

Definition at line 74 of file Digitizer.h.

◆ isLive() [2/2]

bool o2::emcal::Digitizer::isLive ( double  t) const
inline

Definition at line 73 of file Digitizer.h.

◆ operator=()

Digitizer & o2::emcal::Digitizer::operator= ( const Digitizer )
delete

◆ preTriggerCollision()

bool o2::emcal::Digitizer::preTriggerCollision ( ) const
inline

Definition at line 79 of file Digitizer.h.

◆ process()

void Digitizer::process ( const std::vector< LabeledDigit > &  labeledDigit)

Steer conversion of hits to digits.

Definition at line 119 of file Digitizer.cxx.

◆ rawResponseFunction()

double Digitizer::rawResponseFunction ( double *  x,
double *  par 
)
static

raw pointers used here to allow interface with TF1

Definition at line 93 of file Digitizer.cxx.

◆ sampleSDigit()

void Digitizer::sampleSDigit ( const Digit sdigit)

Definition at line 157 of file Digitizer.cxx.

◆ setDebugStreaming()

void o2::emcal::Digitizer::setDebugStreaming ( bool  doStreaming)
inline

Definition at line 76 of file Digitizer.h.

◆ setEventTime()

void Digitizer::setEventTime ( o2::InteractionTimeRecord  record,
bool  trigger 
)

Definition at line 247 of file Digitizer.cxx.

◆ smearEnergy()

double Digitizer::smearEnergy ( double  energy)

Definition at line 234 of file Digitizer.cxx.

◆ smearTime()

double Digitizer::smearTime ( double  time,
double  energy 
)

Definition at line 241 of file Digitizer.cxx.


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