Project
Loading...
Searching...
No Matches
ClusterizerTask.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
14
15#ifndef ALICEO2_EMCAL_CLUSTERIZERTASK
16#define ALICEO2_EMCAL_CLUSTERIZERTASK
17
21#include "EMCALBase/Geometry.h"
25
26namespace o2
27{
28
29namespace emcal
30{
31
36template <class InputType>
38{
39
40 public:
42 ~ClusterizerTask() = default;
43
44 void init();
45 void process(const std::string inputFileName, const std::string outputFileName);
46 void setGeometry(Geometry* geometry) { mGeometry = geometry; }
47 Geometry* getGeometry() { return mGeometry; }
48
49 private:
50 Clusterizer<InputType> mClusterizer;
51 Geometry* mGeometry = nullptr;
52 std::unique_ptr<DigitReader<InputType>> mInputReader;
53 std::vector<Cluster>* mClustersArray = nullptr;
54 std::vector<ClusterIndex>* mClustersInputIndices = nullptr;
55 std::vector<o2::emcal::TriggerRecord>* mClusterTriggerRecordsClusters = nullptr;
56 std::vector<o2::emcal::TriggerRecord>* mClusterTriggerRecordsIndices = nullptr;
57 ClassDefNV(ClusterizerTask, 1)
58};
59} // namespace emcal
60} // namespace o2
61
62#endif /* ALICEO2_EMCAL_CLUSTERIZERTASK */
Definition of the EMCAL clusterizer parameter class.
Definition of EMCAL cell/digit reader.
Definition of the EMCAL clusterizer.
Contains all parameters to set up the clusterizer.
Stand-alone task running EMCAL clusterization.
void init()
Init function Inititializes the cell/digit reader & geometry in cluster finder.
void setGeometry(Geometry *geometry)
Meta class for recursive clusterizer.
Definition Clusterizer.h:47
EMCAL geometry definition.
Definition Geometry.h:40
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...