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"
22
23using namespace o2::framework;
24
25namespace o2::itsmft
26{
27
28template <int N>
29class ClustererDPL : public Task
30{
34
35 public:
36 ClustererDPL(std::shared_ptr<o2::base::GRPGeomRequest> gr, bool useMC) : mGGCCDBRequest(gr), mUseMC(useMC) {}
37 ~ClustererDPL() override = default;
38 void init(InitContext& ic) final;
39 void run(ProcessingContext& pc) final;
40 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
41
42 private:
43 void updateTimeDependentParams(ProcessingContext& pc);
44
45 std::string mDetName;
46 bool mUseMC = true;
47 bool mUseClusterDictionary = true;
48 int mNThreads = 1;
49 std::unique_ptr<o2::itsmft::Clusterer> mClusterer = nullptr;
50 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
51 int mLayers{NLayers};
52 std::vector<InputSpec> mFilter;
53};
54
57
58} // namespace o2::itsmft
59
60#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
ClustererDPL(std::shared_ptr< o2::base::GRPGeomRequest > gr, bool useMC)
constexpr o2::header::DataOrigin gDataOriginMFT
Definition DataHeader.h:572
constexpr o2::header::DataOrigin gDataOriginITS
Definition DataHeader.h:570
Defining PrimaryVertex explicitly as messageable.
framework::DataProcessorSpec getMFTClustererSpec(bool useMC)
framework::DataProcessorSpec getITSClustererSpec(bool useMC)
static constexpr int getNLayers()
static constexpr bool supportsStaggering() noexcept