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_MFT_CLUSTERERDPL_H_
15#define O2_MFT_CLUSTERERDPL_H_
16
17#include <fstream>
20#include "Framework/Task.h"
22
23using namespace o2::framework;
24
25namespace o2
26{
27namespace mft
28{
29
30class ClustererDPL : public Task
31{
32 public:
33 ClustererDPL(std::shared_ptr<o2::base::GRPGeomRequest> gr, bool useMC) : mGGCCDBRequest(gr), mUseMC(useMC) {}
34 ~ClustererDPL() override = default;
35 void init(InitContext& ic) final;
36 void run(ProcessingContext& pc) final;
37 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
38
39 private:
40 void updateTimeDependentParams(ProcessingContext& pc);
41
42 int mState = 0;
43 bool mUseMC = true;
44 bool mUseClusterDictionary = true;
45 int mNThreads = 1;
46 std::unique_ptr<std::ifstream> mFile = nullptr;
47 std::unique_ptr<o2::itsmft::Clusterer> mClusterer = nullptr;
48 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
49};
50
54
55} // namespace mft
56} // namespace o2
57
58#endif /* O2_MFT_CLUSTERERDPL */
Helper for geometry and GRP related CCDB requests.
Definition of the ITS cluster finder.
void init(InitContext &ic) final
ClustererDPL(std::shared_ptr< o2::base::GRPGeomRequest > gr, bool useMC)
~ClustererDPL() override=default
void run(ProcessingContext &pc) final
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
framework::DataProcessorSpec getClustererSpec(bool useMC)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...