![]() |
Project
|
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 |
![]() | |
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::SRUBunchContainer > | digitsToBunches (gsl::span< const o2::emcal::Digit > digits, std::vector< gsl::span< const o2::emcal::MCLabel > > &mcLabels) |
std::vector< AltroBunch > | findBunches (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. | |
Coverter task for EMCAL digits to EMCAL cells.
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.
|
inline |
Constructor.
propagateMC | If true the MCTruthContainer is propagated to the output |
useccdb | If true the TecoParams |
inputSubsepc | Subsepc of input objects |
outputSubspec | Subspec of output objects |
Definition at line 56 of file CellConverterSpec.h.
|
overridedefault |
Destructor.
|
protected |
Definition at line 186 of file CellConverterSpec.cxx.
|
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.
|
protected |
Definition at line 333 of file CellConverterSpec.cxx.
|
finalvirtual |
Initializing the CellConverterSpec.
ctx | Init context |
Reimplemented from o2::framework::Task.
Definition at line 29 of file CellConverterSpec.cxx.
|
protected |
Definition at line 401 of file CellConverterSpec.cxx.
|
finalvirtual |
Run conversion of digits to cells.
ctx | Processing 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.
Definition at line 438 of file CellConverterSpec.cxx.
|
protected |
Update calibration objects.
Definition at line 178 of file CellConverterSpec.cxx.