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_ITS_CLUSTERERTASK
16#define ALICEO2_ITS_CLUSTERERTASK
17
27#include <memory>
28#include <limits>
29
30namespace o2
31{
32class MCCompLabel;
33namespace dataformats
34{
35template <typename T>
37}
38
39namespace its
40{
41
43{
48
49 public:
50 ClustererTask(bool useMC = true, bool raw = false);
52
53 void Init();
54 Clusterer& getClusterer() { return mClusterer; }
55 void run(const std::string inpName, const std::string outName);
57
58 void writeTree(std::string basename, int i);
59 void setMaxROframe(int max) { maxROframe = max; }
60 int getMaxROframe() const { return maxROframe; }
61
62 private:
63 int maxROframe = std::numeric_limits<int>::max();
64 bool mRawDataMode = false;
65 bool mUseMCTruth = true;
66 o2::itsmft::PixelReader* mReader = nullptr;
67 std::unique_ptr<o2::itsmft::DigitPixelReader> mReaderMC;
68 std::unique_ptr<o2::itsmft::RawPixelReader<o2::itsmft::ChipMappingITS>> mReaderRaw;
69
70 Clusterer mClusterer;
71
72 std::vector<CompClusterExt> mCompClus;
73
74 std::vector<o2::itsmft::ROFRecord> mROFRecVec;
75
76 MCTruth mClsLabels;
77
78 std::vector<unsigned char> mPatterns;
79
80 ClassDefNV(ClustererTask, 2);
81};
82} // namespace its
83} // namespace o2
84
85#endif /* ALICEO2_ITS_CLUSTERERTASK */
Definition of the ITSMFT compact cluster.
Definition of the Alpide pixel reader for MC digits processing.
int32_t i
Definition of the ITSMFT ROFrame (trigger) record.
Definition of the ITS cluster finder.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Abstract class for Alpide data reader class.
Definition of the Alpide pixel reader for raw data processing.
Clusterer & getClusterer()
void run(const std::string inpName, const std::string outName)
o2::itsmft::PixelReader * getReader() const
void writeTree(std::string basename, int i)
void setMaxROframe(int max)
PixelReader class for the ITSMFT.
Definition PixelReader.h:34
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
constexpr size_t max