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

Container class for Digits, MC lebels, and trigger records. More...

#include <LZEROElectronics.h>

Public Member Functions

 LZEROElectronics ()=default
 Default constructor.
 
 ~LZEROElectronics ()=default
 Destructor.
 
void clear ()
 clear the L0 electronics
 
void init ()
 Initialize the L0 electronics.
 
void setGeometry (o2::emcal::Geometry *gm)
 Sets geometry for trigger mapping.
 
void setMaskedFastOrs (std::vector< int > const &maskedfastors)
 Sets the masked fastOrs from the CCDB in the LZERO.
 
void printMaskedFastOrs ()
 
void setThreshold (double threshold)
 
bool peakFinderOnPatch (TRUElectronics &p, unsigned int patchID)
 
bool peakFinderOnAllPatches (TRUElectronics &p)
 
void updatePatchesADC (TRUElectronics &p)
 
void addNoiseDigits (Digit &d1)
 Add noise to this digit.
 
void fill (const std::deque< o2::emcal::DigitTimebinTRU > &digitlist, const o2::InteractionRecord record, std::vector< TRUElectronics > &patchesFromAllTRUs)
 
const std::vector< int > & getFiredPatches (TRUElectronics const &p) const
 
const double getLZEROThreshold () const
 
const std::vector< EMCALTriggerInputs > & getTriggerInputs () const
 Getter for the trigger inputs found by the LZERO algorithm.
 
const std::vector< EMCALTriggerInputsPatch > & getTriggerInputsPatches () const
 Getter for the trigger inputs per patches found by the LZERO algorithm.
 

Detailed Description

Container class for Digits, MC lebels, and trigger records.

Author
Markus Fasel, ORNL
Simone Ragoni, Creighton
Date
22/11/2022

Definition at line 62 of file LZEROElectronics.h.

Constructor & Destructor Documentation

◆ LZEROElectronics()

o2::emcal::LZEROElectronics::LZEROElectronics ( )
default

Default constructor.

◆ ~LZEROElectronics()

o2::emcal::LZEROElectronics::~LZEROElectronics ( )
default

Destructor.

Member Function Documentation

◆ addNoiseDigits()

void LZEROElectronics::addNoiseDigits ( Digit d1)

Add noise to this digit.

Definition at line 90 of file LZEROElectronics.cxx.

◆ clear()

void LZEROElectronics::clear ( )

clear the L0 electronics

Definition at line 81 of file LZEROElectronics.cxx.

◆ fill()

void LZEROElectronics::fill ( const std::deque< o2::emcal::DigitTimebinTRU > &  digitlist,
const o2::InteractionRecord  record,
std::vector< TRUElectronics > &  patchesFromAllTRUs 
)

Implements the fill of the patches. Runs the peak finding, and ships to L1 in case it finds something

Parameters
digitlistdigits to be assigned to patches
recordinteraction record time to be propagated
patchesFromAllTRUsvector contained the patches of all TRUs

Definition at line 104 of file LZEROElectronics.cxx.

◆ getFiredPatches()

const std::vector< int > & o2::emcal::LZEROElectronics::getFiredPatches ( TRUElectronics const &  p) const
inline

Getter for the pattern of peaks found by the LZERO algorithm

Parameters
pTRUElectronics object

Definition at line 113 of file LZEROElectronics.h.

◆ getLZEROThreshold()

const double o2::emcal::LZEROElectronics::getLZEROThreshold ( ) const
inline

Definition at line 119 of file LZEROElectronics.h.

◆ getTriggerInputs()

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

Getter for the trigger inputs found by the LZERO algorithm.

Definition at line 122 of file LZEROElectronics.h.

◆ getTriggerInputsPatches()

const std::vector< EMCALTriggerInputsPatch > & o2::emcal::LZEROElectronics::getTriggerInputsPatches ( ) const
inline

Getter for the trigger inputs per patches found by the LZERO algorithm.

Definition at line 129 of file LZEROElectronics.h.

◆ init()

void LZEROElectronics::init ( )

Initialize the L0 electronics.

Definition at line 73 of file LZEROElectronics.cxx.

◆ peakFinderOnAllPatches()

bool LZEROElectronics::peakFinderOnAllPatches ( TRUElectronics p)

Calls the peak finder algorithm on all patches

Parameters
pTRUElectronics object

Definition at line 58 of file LZEROElectronics.cxx.

◆ peakFinderOnPatch()

bool LZEROElectronics::peakFinderOnPatch ( TRUElectronics p,
unsigned int  patchID 
)

Implements the peak finder algorithm on the patch

Parameters
pTRUElectronics object
patchIDPatch ID to implement the peak finding algorithm

Definition at line 33 of file LZEROElectronics.cxx.

◆ printMaskedFastOrs()

void LZEROElectronics::printMaskedFastOrs ( )

Definition at line 243 of file LZEROElectronics.cxx.

◆ setGeometry()

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

Sets geometry for trigger mapping.

Definition at line 79 of file LZEROElectronics.h.

◆ setMaskedFastOrs()

void o2::emcal::LZEROElectronics::setMaskedFastOrs ( std::vector< int > const &  maskedfastors)
inline

Sets the masked fastOrs from the CCDB in the LZERO.

Definition at line 82 of file LZEROElectronics.h.

◆ setThreshold()

void o2::emcal::LZEROElectronics::setThreshold ( double  threshold)
inline

Set Threshold for LZERO algorithm

Parameters
thresholdLZERO algorithm threshold

Definition at line 87 of file LZEROElectronics.h.

◆ updatePatchesADC()

void LZEROElectronics::updatePatchesADC ( TRUElectronics p)

Update patches

Parameters
pTRUElectronics object

Definition at line 85 of file LZEROElectronics.cxx.


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