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_ITS_CLUSTERERDPL
15#define O2_ITS_CLUSTERERDPL
16
17#include <fstream>
21#include "Framework/Task.h"
22
23using namespace o2::framework;
24
25namespace o2
26{
27
28namespace itsmft
29{
30class Clusterer;
31}
32
33namespace its
34{
35
36class ClustererDPL : public Task
37{
38 public:
39 ClustererDPL(std::shared_ptr<o2::base::GRPGeomRequest> gr, bool useMC) : mGGCCDBRequest(gr), mUseMC(useMC) {}
40 ~ClustererDPL() override = default;
41 void init(InitContext& ic) final;
42 void run(ProcessingContext& pc) final;
43 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
45
46 private:
47 void updateTimeDependentParams(ProcessingContext& pc);
48
49 int mState = 0;
50 bool mUseMC = true;
51 bool mUseClusterDictionary = true;
52 int mNThreads = 1;
53 std::unique_ptr<std::ifstream> mFile = nullptr;
54 std::unique_ptr<o2::itsmft::Clusterer> mClusterer = nullptr;
55 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
56};
57
61
62} // namespace its
63} // namespace o2
64
65#endif /* O2_ITS_CLUSTERERDPL */
Helper for geometry and GRP related CCDB requests.
Definition of the ITS cluster finder.
void init(InitContext &ic) final
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
void run(ProcessingContext &pc) final
ClustererDPL(std::shared_ptr< o2::base::GRPGeomRequest > gr, bool useMC)
void endOfStream(o2::framework::EndOfStreamContext &ec) final
~ClustererDPL() override=default
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 ...