Project
Loading...
Searching...
No Matches
ClustererTask.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
15
16#ifndef __ALICEO2__ClustererTask__
17#define __ALICEO2__ClustererTask__
18
19#include "FairTask.h" // for FairTask, InitStatus
20#include "Rtypes.h" // for ClustererTask::Class, ClassDef, etc
21
28#include <vector>
29#include <memory>
30
31namespace o2
32{
33namespace tpc
34{
35
36class ClustererTask : public FairTask
37{
39
40 public:
43 ClustererTask(int sectorid = -1);
44
46 ~ClustererTask() override = default;
47
49 InitStatus Init() override;
50
52 void Exec(Option_t* option) override;
53
55 void FinishTask() override;
56
59 void setContinuousReadout(bool isContinuous);
60
61 private:
62 bool mIsContinuousReadout = true;
63 int mEventCount = 0;
64 int mClusterSector = -1;
65
66 std::unique_ptr<HwClusterer> mHwClusterer;
67
68 // Digit arrays
69 std::unique_ptr<const std::vector<Digit>> mDigitsArray;
70 std::unique_ptr<const o2::dataformats::ConstMCLabelContainerView> mDigitMCTruthArray;
71
72 // Cluster arrays
73 std::unique_ptr<std::vector<OutputType>> mHwClustersArray;
74 std::unique_ptr<o2::dataformats::MCLabelContainer> mHwClustersMCTruthArray;
75
76 ClassDefOverride(ClustererTask, 1);
77};
78
79inline void ClustererTask::setContinuousReadout(bool isContinuous)
80{
81 mIsContinuousReadout = isContinuous;
82}
83
84} // namespace tpc
85} // namespace o2
86
87#endif
Class of a TPC cluster as produced by the hardware cluster finder (needs a postprocessing step to con...
A const (ready only) version of MCTruthContainer.
Definition of the TPC Digit.
Helper class for memory management of TPC Data Formats, external from the actual data type classes to...
Class for TPC HW cluster finding.
void Exec(Option_t *option) override
Clusterization.
InitStatus Init() override
Initializes the clusterer and connects input and output container.
void setContinuousReadout(bool isContinuous)
~ClustererTask() override=default
Destructor.
void FinishTask() override
Complete Clusterization.
ClusterHardwareContainerFixedSize< 8192 > ClusterHardwareContainer8kb
Definition Helpers.h:58
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...