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

Handler for cells/LEDMONS/Trigger data in timeframes. More...

#include <RecoContainer.h>

Classes

class  InteractionNotFoundException
 Handling of access to trigger interaction record not present in container. More...
 

Public Member Functions

 RecoContainer ()=default
 Constructor.
 
 ~RecoContainer ()=default
 Destructor.
 
EventContainergetEventContainer (const o2::InteractionRecord &currentIR)
 Get container for trigger.
 
const EventContainergetEventContainer (const o2::InteractionRecord &currentIR) const
 Get container for trigger (read-only)
 
std::vector< o2::InteractionRecordgetOrderedInteractions () const
 Get sorted vector interaction records of triggers in container.
 
std::size_t getNumberOfEvents () const
 Get number of events in container.
 
void reset ()
 Clear container.
 

Detailed Description

Handler for cells/LEDMONS/Trigger data in timeframes.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
Since
May 30, 2023

The RecoContainer handles the cell/LEDMON/trigger data of all events of a given timeframe during the reconstruction. Event data are handled internally via the EventContainer, where the RecoContainer provides access to.

Error handling: The RecoContainer can raise an InteractionNotFoundException in case read access is requested for an interaction based on the o2::InteractionRecord which is not for which no data was inserted into the container.

Definition at line 252 of file RecoContainer.h.

Constructor & Destructor Documentation

◆ RecoContainer()

o2::emcal::RecoContainer::RecoContainer ( )
default

Constructor.

◆ ~RecoContainer()

o2::emcal::RecoContainer::~RecoContainer ( )
default

Destructor.

Member Function Documentation

◆ getEventContainer() [1/2]

EventContainer & RecoContainer::getEventContainer ( const o2::InteractionRecord currentIR)

Get container for trigger.

Parameters
currentIRInteraction record of the trigger
Returns
Container for trigger (creating new container if not yet present)

Definition at line 136 of file RecoContainer.cxx.

◆ getEventContainer() [2/2]

const EventContainer & RecoContainer::getEventContainer ( const o2::InteractionRecord currentIR) const

Get container for trigger (read-only)

Parameters
currentIRInteraction record of the trigger
Returns
Container for trigger
Exceptions
InteractionNotFoundExceptionif interaction record is not present

Definition at line 147 of file RecoContainer.cxx.

◆ getNumberOfEvents()

std::size_t o2::emcal::RecoContainer::getNumberOfEvents ( ) const
inline

Get number of events in container.

Returns
Number of events

Definition at line 309 of file RecoContainer.h.

◆ getOrderedInteractions()

std::vector< o2::InteractionRecord > RecoContainer::getOrderedInteractions ( ) const

Get sorted vector interaction records of triggers in container.

Returns
Sorted vector of container

Definition at line 156 of file RecoContainer.cxx.

◆ reset()

void o2::emcal::RecoContainer::reset ( )
inline

Clear container.

Definition at line 312 of file RecoContainer.h.


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