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

EMCAL DigitizerTRU, digitizes with the help of a temporary description based upon a pol9*Heavyside. More...

#include <DigitizerTRU.h>

Public Member Functions

 DigitizerTRU ()=default
 
 ~DigitizerTRU ()=default
 
 DigitizerTRU (const DigitizerTRU &)=delete
 
DigitizerTRUoperator= (const DigitizerTRU &)=delete
 
void init ()
 
void clear ()
 
void setPatches ()
 Sets patches for the current geometry.
 
void flush ()
 clear DigitsVectorStream
 
void finish ()
 This is for the readout window that was interrupted by the end of the run.
 
void process (const gsl::span< const Digit > summableDigits)
 Steer conversion of hits to digits.
 
std::vector< std::tuple< int, Digit > > makeAnaloguesFastorSums (const gsl::span< const Digit > sdigits)
 
void setEventTime (o2::InteractionTimeRecord record)
 
void setGeometry (o2::emcal::Geometry *gm)
 Sets geometry for trigger mapping.
 
void setFEE (o2::emcal::FeeDCS *fees)
 Sets FEE DCS for the masking of the fastOrs.
 
void setMaskedFastOrsInLZERO ()
 Sets the masked fastOrs from the CCDB in the LZERO.
 
void printMaskedFastOrsInLZERO ()
 
void setWindowStartTime (int time)
 
void setDebugStreaming (bool doStreaming)
 
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)
 
void endDebugStream ()
 Close the TreeStreamer to make the file readable.
 
bool isDebugMode ()
 Getter for debug mode.
 
const std::vector< EMCALTriggerInputs > & getTriggerInputs ()
 Getter for triggers.
 
std::vector< TRUElectronicsgetPatchesVector ()
 Getter for patches.
 
int GetTRUIndexFromSTUIndex (Int_t id, Int_t detector)
 Utility functions obtained from QC for EMC.
 
int GetChannelForMaskRun2 (int mask, int bitnumber, bool onethirdsm)
 
std::vector< intGetAbsFastORIndexFromMask ()
 

Static Public Member Functions

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

Detailed Description

EMCAL DigitizerTRU, digitizes with the help of a temporary description based upon a pol9*Heavyside.

Author
Anders Knospe, University of Houston
Hadi Hassan, ORNL
Simone Ragoni, Creighton

Definition at line 52 of file DigitizerTRU.h.

Constructor & Destructor Documentation

◆ DigitizerTRU() [1/2]

o2::emcal::DigitizerTRU::DigitizerTRU ( )
default

◆ ~DigitizerTRU()

o2::emcal::DigitizerTRU::~DigitizerTRU ( )
default

◆ DigitizerTRU() [2/2]

o2::emcal::DigitizerTRU::DigitizerTRU ( const DigitizerTRU )
delete

Member Function Documentation

◆ clear()

void DigitizerTRU::clear ( )

Definition at line 122 of file DigitizerTRU.cxx.

◆ doSimulateTimeResponse()

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

Definition at line 99 of file DigitizerTRU.h.

◆ doSmearEnergy()

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

Definition at line 96 of file DigitizerTRU.h.

◆ endDebugStream()

void o2::emcal::DigitizerTRU::endDebugStream ( )
inline

Close the TreeStreamer to make the file readable.

Definition at line 104 of file DigitizerTRU.h.

◆ fillOutputContainer()

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

◆ finish()

void DigitizerTRU::finish ( )

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

Definition at line 434 of file DigitizerTRU.cxx.

◆ flush()

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

clear DigitsVectorStream

Definition at line 67 of file DigitizerTRU.h.

◆ GetAbsFastORIndexFromMask()

std::vector< int > DigitizerTRU::GetAbsFastORIndexFromMask ( )

Definition at line 473 of file DigitizerTRU.cxx.

◆ GetChannelForMaskRun2()

int DigitizerTRU::GetChannelForMaskRun2 ( int  mask,
int  bitnumber,
bool  onethirdsm 
)

Definition at line 459 of file DigitizerTRU.cxx.

◆ getPatchesVector()

std::vector< TRUElectronics > o2::emcal::DigitizerTRU::getPatchesVector ( )
inline

Getter for patches.

Definition at line 117 of file DigitizerTRU.h.

◆ getTriggerInputs()

const std::vector< EMCALTriggerInputs > & o2::emcal::DigitizerTRU::getTriggerInputs ( )
inline

Getter for triggers.

Definition at line 114 of file DigitizerTRU.h.

◆ GetTRUIndexFromSTUIndex()

int DigitizerTRU::GetTRUIndexFromSTUIndex ( Int_t  id,
Int_t  detector 
)

Utility functions obtained from QC for EMC.

Definition at line 442 of file DigitizerTRU.cxx.

◆ init()

void DigitizerTRU::init ( )

Definition at line 44 of file DigitizerTRU.cxx.

◆ isDebugMode()

bool o2::emcal::DigitizerTRU::isDebugMode ( )
inline

Getter for debug mode.

Definition at line 111 of file DigitizerTRU.h.

◆ makeAnaloguesFastorSums()

std::vector< std::tuple< int, Digit > > DigitizerTRU::makeAnaloguesFastorSums ( const gsl::span< const Digit sdigits)

Postprocessing of the digits, gathers by Fastors, not by Tower/Cell

Parameters
sdigitsresults of the SDigitizer

Definition at line 149 of file DigitizerTRU.cxx.

◆ operator=()

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

◆ printMaskedFastOrsInLZERO()

void DigitizerTRU::printMaskedFastOrsInLZERO ( )

Definition at line 511 of file DigitizerTRU.cxx.

◆ process()

void DigitizerTRU::process ( const gsl::span< const Digit summableDigits)

Steer conversion of hits to digits.

Definition at line 127 of file DigitizerTRU.cxx.

◆ rawResponseFunction()

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

raw pointers used here to allow interface with TF1

Definition at line 103 of file DigitizerTRU.cxx.

◆ sampleSDigit()

void DigitizerTRU::sampleSDigit ( const Digit sdigit)

Definition at line 198 of file DigitizerTRU.cxx.

◆ setDebugStreaming()

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

Definition at line 92 of file DigitizerTRU.h.

◆ setEventTime()

void DigitizerTRU::setEventTime ( o2::InteractionTimeRecord  record)

Definition at line 274 of file DigitizerTRU.cxx.

◆ setFEE()

void o2::emcal::DigitizerTRU::setFEE ( o2::emcal::FeeDCS fees)
inline

Sets FEE DCS for the masking of the fastOrs.

Definition at line 85 of file DigitizerTRU.h.

◆ setGeometry()

void o2::emcal::DigitizerTRU::setGeometry ( o2::emcal::Geometry gm)
inline

Sets geometry for trigger mapping.

Definition at line 82 of file DigitizerTRU.h.

◆ setMaskedFastOrsInLZERO()

void DigitizerTRU::setMaskedFastOrsInLZERO ( )

Sets the masked fastOrs from the CCDB in the LZERO.

Definition at line 498 of file DigitizerTRU.cxx.

◆ setPatches()

void DigitizerTRU::setPatches ( )

Sets patches for the current geometry.

Definition at line 345 of file DigitizerTRU.cxx.

◆ setWindowStartTime()

void o2::emcal::DigitizerTRU::setWindowStartTime ( int  time)
inline

Definition at line 91 of file DigitizerTRU.h.

◆ smearEnergy()

double DigitizerTRU::smearEnergy ( double  energy)

Definition at line 257 of file DigitizerTRU.cxx.

◆ smearTime()

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

Definition at line 266 of file DigitizerTRU.cxx.


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