Project
Loading...
Searching...
No Matches
CookedTrackerSpec.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_COOKEDTRACKERDPL
15#define O2_ITS_COOKEDTRACKERDPL
16
24#include "Framework/Task.h"
25#include "TStopwatch.h"
27
28using namespace o2::framework;
29
30namespace o2
31{
32namespace its
33{
34
35class CookedTrackerDPL : public Task
36{
37 public:
38 CookedTrackerDPL(std::shared_ptr<o2::base::GRPGeomRequest> gr, bool useMC, int trgType, const TrackingMode& trMode);
39 ~CookedTrackerDPL() override = default;
40 void init(InitContext& ic) final;
41 void run(ProcessingContext& pc) final;
43 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
45
46 private:
47 void updateTimeDependentParams(ProcessingContext& pc);
48
49 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
50 int mState = 0;
51 bool mUseMC = true;
52 bool mRunVertexer = true;
53 int mUseTriggers = 0;
55 const o2::itsmft::TopologyDictionary* mDict = nullptr;
56 std::unique_ptr<o2::parameters::GRPObject> mGRP = nullptr;
58 std::unique_ptr<VertexerTraits> mVertexerTraitsPtr = nullptr;
59 std::unique_ptr<Vertexer> mVertexerPtr = nullptr;
60 TStopwatch mTimer;
61};
62
65framework::DataProcessorSpec getCookedTrackerSpec(bool useMC, bool useGeom, int useTrig, const std::string& trMode);
66
67} // namespace its
68} // namespace o2
69
70#endif /* O2_ITS_COOKEDTRACKERDPL */
Definition of the "Cooked Matrix" ITS tracker.
Definition of the ClusterTopology class.
Helper for geometry and GRP related CCDB requests.
Header of the General Run Parameters object.
Class to compute the primary vertex in ITS from tracklets.
void endOfStream(framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void setClusterDictionary(const o2::itsmft::TopologyDictionary *d)
void run(ProcessingContext &pc) final
void init(InitContext &ic) final
~CookedTrackerDPL() override=default
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
framework::DataProcessorSpec getCookedTrackerSpec(bool useMC, bool useGeom, int useTrig, const std::string &trMode)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...