Project
Loading...
Searching...
No Matches
StrangenessTrackingSpec.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.
13
14#ifndef O2_STRANGENESS_SPEC_H
15#define O2_STRANGENESS_SPEC_H
16
19#include "Framework/Task.h"
27
28#include "TStopwatch.h"
29
31
32namespace o2
33{
34namespace strangeness_tracking
35{
37{
38 public:
42
43 StrangenessTrackerSpec(std::shared_ptr<DataRequest> dr, std::shared_ptr<o2::base::GRPGeomRequest> gr, bool isMC);
44 ~StrangenessTrackerSpec() override = default;
45
46 void init(framework::InitContext& ic) final;
47 void run(framework::ProcessingContext& pc) final;
49 void finaliseCCDB(framework::ConcreteDataMatcher& matcher, void* obj) final;
50
51 private:
52 void updateTimeDependentParams(framework::ProcessingContext& pc);
53
54 bool mUseMC = false;
55 TStopwatch mTimer;
56 StrangenessTracker mTracker;
57 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
58 std::shared_ptr<DataRequest> mDataRequest;
59 std::unique_ptr<parameters::GRPObject> mGRP = nullptr;
60};
61
63o2::framework::WorkflowSpec getWorkflow(bool upstreamClusters = false, bool upstreamV0s = false);
64
65} // namespace strangeness_tracking
66} // namespace o2
67#endif
Definition of the ITS/MFT clusterer settings.
Definition of the ITSMFT compact cluster.
Wrapper container for different reconstructed object types.
Definition of the ClusterTopology class.
Helper for geometry and GRP related CCDB requests.
Header of the General Run Parameters object.
Global index for barrel track: provides provenance (detectors combination), index in respective array...
void finaliseCCDB(framework::ConcreteDataMatcher &matcher, void *obj) final
void run(framework::ProcessingContext &pc) final
void endOfStream(framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
GLenum src
Definition glcorearb.h:1767
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getStrangenessTrackerSpec(o2::dataformats::GlobalTrackID::mask_t src, bool useMC, bool useGeom)
o2::framework::WorkflowSpec getWorkflow(bool upstreamClusters=false, bool upstreamV0s=false)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...