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

Coverter task for EMCAL digits to EMCAL cells. More...

#include <CellConverterSpec.h>

Inherits o2::framework::Task.

Public Member Functions

 CellConverterSpec (bool propagateMC, int inputSubsepc, int outputSubspec, std::shared_ptr< o2::emcal::CalibLoader > calibhandler)
 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.
 
void finaliseCCDB (o2::framework::ConcreteDataMatcher &matcher, void *obj) final
 
- 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 stop ()
 This is invoked on stop.
 

Protected Member Functions

std::vector< o2::emcal::SRUBunchContainerdigitsToBunches (gsl::span< const o2::emcal::Digit > digits, std::vector< gsl::span< const o2::emcal::MCLabel > > &mcLabels)
 
std::vector< AltroBunchfindBunches (const std::vector< const o2::emcal::Digit * > &channelDigits, const std::vector< gsl::span< const o2::emcal::MCLabel > > &mcLabels, ChannelType_t channelType)
 
void mergeLabels (std::vector< o2::emcal::AltroBunch > &channelBunches)
 
int selectMaximumBunch (const gsl::span< const Bunch > &bunchvector)
 
void updateCalibrationObjects ()
 Update calibration objects.
 

Detailed Description

Coverter task for EMCAL digits to EMCAL cells.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
Since
Sept 24, 2019

Task converting a vector of EMCAL digits to a vector of EMCAL 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 48 of file CellConverterSpec.h.

Constructor & Destructor Documentation

◆ CellConverterSpec()

o2::emcal::reco_workflow::CellConverterSpec::CellConverterSpec ( bool  propagateMC,
int  inputSubsepc,
int  outputSubspec,
std::shared_ptr< o2::emcal::CalibLoader calibhandler 
)
inline

Constructor.

Parameters
propagateMCIf true the MCTruthContainer is propagated to the output
useccdbIf true the TecoParams
inputSubsepcSubsepc of input objects
outputSubspecSubspec of output objects

Definition at line 56 of file CellConverterSpec.h.

◆ ~CellConverterSpec()

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

Destructor.

Member Function Documentation

◆ digitsToBunches()

std::vector< o2::emcal::SRUBunchContainer > CellConverterSpec::digitsToBunches ( gsl::span< const o2::emcal::Digit digits,
std::vector< gsl::span< const o2::emcal::MCLabel > > &  mcLabels 
)
protected

Definition at line 186 of file CellConverterSpec.cxx.

◆ finaliseCCDB()

void CellConverterSpec::finaliseCCDB ( o2::framework::ConcreteDataMatcher matcher,
void obj 
)
finalvirtual

This is invoked whenever a new CCDB object associated to a given ConcreteDataMatcher is deserialised

Reimplemented from o2::framework::Task.

Definition at line 171 of file CellConverterSpec.cxx.

◆ findBunches()

std::vector< o2::emcal::AltroBunch > CellConverterSpec::findBunches ( const std::vector< const o2::emcal::Digit * > &  channelDigits,
const std::vector< gsl::span< const o2::emcal::MCLabel > > &  mcLabels,
ChannelType_t  channelType 
)
protected

Definition at line 333 of file CellConverterSpec.cxx.

◆ init()

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

Initializing the CellConverterSpec.

Parameters
ctxInit context

Reimplemented from o2::framework::Task.

Definition at line 29 of file CellConverterSpec.cxx.

◆ mergeLabels()

void CellConverterSpec::mergeLabels ( std::vector< o2::emcal::AltroBunch > &  channelBunches)
protected

Definition at line 401 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::emcal::Digit to an output vector of o2::emcal::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: {"EMC", "DIGITS", 0, Lifetime::Timeframe} Input trigers: {"EMC", "DIGITSTRGR", 0, Lifetime::Timeframe} Input MC-truth: {"EMC", "DIGITSMCTR", 0, Lifetime::Timeframe} Output cells: {"EMC", "CELLS", 0, Lifetime::Timeframe} Output trigers: {"EMC", "CELLSTRGR", 0, Lifetime::Timeframe} Output MC-truth: {"EMC", "CELLSMCTR", 0, Lifetime::Timeframe}

Implements o2::framework::Task.

Definition at line 52 of file CellConverterSpec.cxx.

◆ selectMaximumBunch()

int CellConverterSpec::selectMaximumBunch ( const gsl::span< const Bunch > &  bunchvector)
protected

Definition at line 438 of file CellConverterSpec.cxx.

◆ updateCalibrationObjects()

void CellConverterSpec::updateCalibrationObjects ( )
protected

Update calibration objects.

Definition at line 178 of file CellConverterSpec.cxx.


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