Project
Loading...
Searching...
No Matches
ClustererSpec.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
13
14#ifndef O2_ITSMFT_CLUSTERERDPL_H_
15#define O2_ITSMFT_CLUSTERERDPL_H_
16
19#include "Framework/Task.h"
21
22using namespace o2::framework;
23
24namespace o2::itsmft
25{
26
27template <int N>
28class ClustererDPL : public Task
29{
32
33 public:
34 ClustererDPL(std::shared_ptr<o2::base::GRPGeomRequest> gr, bool useMC, bool doStag);
35 ~ClustererDPL() override = default;
36 void init(InitContext& ic) final;
37 void run(ProcessingContext& pc) final;
38 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
39
40 private:
41 void updateTimeDependentParams(ProcessingContext& pc);
42
43 std::string mDetName;
44 bool mUseMC = true;
45 bool mUseClusterDictionary = true;
46 int mNThreads = 1;
47 std::unique_ptr<o2::itsmft::Clusterer> mClusterer = nullptr;
48 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
49 bool mDoStaggering = false;
50 int mLayers = 1;
51 std::vector<InputSpec> mFilter;
52};
53
56
57} // namespace o2::itsmft
58
59#endif /* O2_MFT_CLUSTERERDPL */
Helper for geometry and GRP related CCDB requests.
Definition of the ITS cluster finder.
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
static constexpr ID ITS
Definition DetID.h:63
static constexpr ID MFT
Definition DetID.h:71
void init(InitContext &ic) final
~ClustererDPL() override=default
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
void run(ProcessingContext &pc) final
constexpr o2::header::DataOrigin gDataOriginMFT
Definition DataHeader.h:572
constexpr o2::header::DataOrigin gDataOriginITS
Definition DataHeader.h:570
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
framework::DataProcessorSpec getMFTClustererSpec(bool useMC, bool doStag)
framework::DataProcessorSpec getITSClustererSpec(bool useMC, bool doStag)