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_ITS3_CLUSTERERDPL
15#define O2_ITS3_CLUSTERERDPL
16
17#include <fstream>
21#include "Framework/Task.h"
22
23using namespace o2::framework;
24
25namespace o2::its3
26{
27
28class ClustererDPL : public Task
29{
30 public:
31 static constexpr int NLayers = 7;
32
33 ClustererDPL(const std::shared_ptr<o2::base::GRPGeomRequest>& gr, bool useMC, bool doStag) : mGGCCDBRequest(gr), mUseMC(useMC), mDoStaggering(doStag) {}
34 void init(InitContext& ic) final;
35 void run(ProcessingContext& pc) final;
36 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
38
39 private:
40 void updateTimeDependentParams(ProcessingContext& pc);
41
42 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
43 bool mUseMC = true;
44 int mNThreads = 1;
45 bool mUseClusterDictionary = true;
46 bool mDoStaggering = false;
47 std::vector<InputSpec> mFilter;
48 std::unique_ptr<o2::its3::Clusterer> mClusterer = nullptr;
49};
50
53framework::DataProcessorSpec getClustererSpec(bool useMC, bool doStag);
54
55} // namespace o2::its3
56
57#endif /* O2_ITS3_CLUSTERERDPL */
Helper for geometry and GRP related CCDB requests.
Definition of the ITS cluster finder.
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
void run(ProcessingContext &pc) final
static constexpr int NLayers
ClustererDPL(const std::shared_ptr< o2::base::GRPGeomRequest > &gr, bool useMC, bool doStag)
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void init(InitContext &ic) final
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
framework::DataProcessorSpec getClustererSpec(bool useMC, bool doStag)