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 ClustererDPL(const std::shared_ptr<o2::base::GRPGeomRequest>& gr, bool useMC) : mGGCCDBRequest(gr), mUseMC(useMC) {}
32 void init(InitContext& ic) final;
33 void run(ProcessingContext& pc) final;
34 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
36
37 private:
38 void updateTimeDependentParams(ProcessingContext& pc);
39
40 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
41 bool mUseMC = true;
42 int mState = 0;
43 int mNThreads = 1;
44 bool mUseClusterDictionary = true;
45 std::unique_ptr<o2::its3::Clusterer> mClusterer = nullptr;
46};
47
51
52} // namespace o2::its3
53
54#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
ClustererDPL(const std::shared_ptr< o2::base::GRPGeomRequest > &gr, bool useMC)
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void init(InitContext &ic) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
framework::DataProcessorSpec getClustererSpec(bool useMC)