Project
Loading...
Searching...
No Matches
ClusterizerSpec.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef O2_EMCAL_CLUSTERIZER_SPEC
13#define O2_EMCAL_CLUSTERIZER_SPEC
14
15#include <vector>
16
19#include "EMCALBase/Geometry.h"
22#include "Framework/Task.h"
23#include "TStopwatch.h"
24
25namespace o2
26{
27
28namespace emcal
29{
30
31namespace reco_workflow
32{
33
44template <class InputType>
46{
47 public:
50
52 ~ClusterizerSpec() override = default;
53
56 void init(framework::InitContext& ctx) final;
57
67 void run(framework::ProcessingContext& ctx) final;
69
70 private:
72 o2::emcal::Geometry* mGeometry = nullptr;
73 std::vector<o2::emcal::Cluster>* mOutputClusters = nullptr;
74 std::vector<o2::emcal::ClusterIndex>* mOutputCellDigitIndices = nullptr;
75 std::vector<o2::emcal::TriggerRecord>* mOutputTriggerRecord = nullptr;
76 std::vector<o2::emcal::TriggerRecord>* mOutputTriggerRecordIndices = nullptr;
77 TStopwatch mTimer;
78};
79
85
86} // namespace reco_workflow
87
88} // namespace emcal
89
90} // namespace o2
91
92#endif // O2_EMCAL_CLUSTERIZER_SPEC
Definition of the EMCAL clusterizer.
Meta class for recursive clusterizer.
Definition Clusterizer.h:47
EMCAL geometry definition.
Definition Geometry.h:40
Clusterizer task for EMCAL digits.
void endOfStream(framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
~ClusterizerSpec() override=default
Destructor.
void run(framework::ProcessingContext &ctx) final
Run conversion of digits to cells.
void init(framework::InitContext &ctx) final
Initializing the ClusterizerSpec.
framework::DataProcessorSpec getClusterizerSpec(bool useDigits)
Creating DataProcessorSpec for the EMCAL Clusterizer Spec.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...