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
14
15#ifndef ALICEO2_TOF_CLUSTERERTASK
16#define ALICEO2_TOF_CLUSTERERTASK
17
18#include "FairTask.h"
19
21
22namespace o2
23{
24class MCCompLabel;
25namespace dataformats
26{
27template <typename T>
29}
30
31namespace tof
32{
33
34class ClustererTask : public FairTask
35{
36 public:
37 ClustererTask(Bool_t useMCTruth = kTRUE);
38 ~ClustererTask() override;
39
40 InitStatus Init() override;
41 void Exec(Option_t* option) override;
42
43 private:
44 DigitDataReader mReader;
45 Clusterer mClusterer;
46
47 std::vector<Cluster>* mClustersArray = nullptr;
48 o2::dataformats::MCLabelContainer* mClsLabels = nullptr;
49 o2::dataformats::MCLabelContainer const* mDigitMCTruth;
50
51 ClassDefOverride(ClustererTask, 1);
52};
53} // namespace tof
54} // namespace o2
55
56#endif /* ALICEO2_TOF_CLUSTERERTASK */
Definition of the TOF cluster finder.
void Exec(Option_t *option) override
InitStatus Init() override
Init function Inititializes the clusterer and connects input and output container.
DigitDataReader class for TOF. Feeds the MC digits to the Cluster Finder.
Definition DataReader.h:60
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...