Project
Loading...
Searching...
No Matches
o2::phos::reco_workflow::CellConverterSpec Class Reference

Coverter task for PHOS digits to AOD PHOS cells. More...

#include <CellConverterSpec.h>

Inherits o2::framework::Task.

Public Member Functions

 CellConverterSpec (bool propagateMC, bool defBadMap)
 Constructor.
 
 ~CellConverterSpec () override=default
 Destructor.
 
void init (framework::InitContext &ctx) final
 Initializing the CellConverterSpec.
 
void run (framework::ProcessingContext &ctx) final
 Run conversion of digits to cells.
 
- Public Member Functions inherited from o2::framework::Task
virtual ~Task ()
 
virtual void endOfStream (EndOfStreamContext &context)
 This is invoked whenever we have an EndOfStream event.
 
virtual void finaliseCCDB (ConcreteDataMatcher &matcher, void *obj)
 
virtual void stop ()
 This is invoked on stop.
 

Detailed Description

Coverter task for PHOS digits to AOD PHOS cells.

Author
Dmitri Peresunko after Markus Fasel
Since
Dec 14, 2019

Task converting a vector of PHOS digits to a vector of PHOS cells. No selection of digits is done, digits are copied 1-to-1 to the output. If MC is available and requested, the MC truth container is ported to the output. Refer to run for the list of input and output specs.

Definition at line 41 of file CellConverterSpec.h.

Constructor & Destructor Documentation

◆ CellConverterSpec()

o2::phos::reco_workflow::CellConverterSpec::CellConverterSpec ( bool  propagateMC,
bool  defBadMap 
)
inline

Constructor.

Parameters
propagateMCIf true the MCTruthContainer is propagated to the output

Definition at line 46 of file CellConverterSpec.h.

◆ ~CellConverterSpec()

o2::phos::reco_workflow::CellConverterSpec::~CellConverterSpec ( )
overridedefault

Destructor.

Member Function Documentation

◆ init()

void CellConverterSpec::init ( framework::InitContext ctx)
finalvirtual

Initializing the CellConverterSpec.

Parameters
ctxInit context

Reimplemented from o2::framework::Task.

Definition at line 27 of file CellConverterSpec.cxx.

◆ run()

void CellConverterSpec::run ( framework::ProcessingContext ctx)
finalvirtual

Run conversion of digits to cells.

Parameters
ctxProcessing context

Converting the input vector of o2::phos::Digit to an output vector of o2::phos::Cell. Data is copied 1-to-1, no additional selection is done. In case the task is configured to propagate MC-truth the MC truth container is propagated 1-to-1 to the output.

The following branches are linked: Input digits: {"PHS", "DIGITS", 0, Lifetime::Timeframe} Input digit trigger records: {"PHS", "DIGITTRS", 0, Lifetime::Timeframe} Input MC-truth: {"PHS", "DIGITSMCTR", 0, Lifetime::Timeframe} Output cells: {"PHS", "CELLS", 0, Lifetime::Timeframe} Output cell trigger records: {"PHS", "CELLTRS", 0, Lifetime::Timeframe} Output MC-truth: {"PHS", "CELLSMCTR", 0, Lifetime::Timeframe} Output MC-map: {"PHS", "CELLSMCMAP", 0, Lifetime::Timeframe}

Implements o2::framework::Task.

Definition at line 38 of file CellConverterSpec.cxx.


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