Project
Loading...
Searching...
No Matches
ClusterizerSpec.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
12#include <vector>
13
16#include "CPVBase/Geometry.h"
19#include "Framework/Task.h"
23
24namespace o2
25{
26
27namespace cpv
28{
29
30namespace reco_workflow
31{
32
41{
42 public:
44 ClusterizerSpec(bool propagateMC) : framework::Task(), mPropagateMC(propagateMC) {}
45
47 ~ClusterizerSpec() override = default;
48
51 void init(framework::InitContext& ctx) final;
52
59 void run(framework::ProcessingContext& ctx) final;
60
61 private:
62 bool mPropagateMC = false;
63 o2::cpv::Clusterer mClusterizer;
64 std::vector<o2::cpv::Cluster> mOutputClusters;
65 std::vector<o2::cpv::TriggerRecord> mOutputClusterTrigRecs;
66 std::vector<o2::cpv::Digit> mCalibDigits;
68};
69
74
75} // namespace reco_workflow
76
77} // namespace cpv
78
79} // namespace o2
Definition of the CPV cluster finder.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Clusterizer task for CPV digits.
~ClusterizerSpec() override=default
Destructor.
void run(framework::ProcessingContext &ctx) final
Clusterizes digits into clusters.
void init(framework::InitContext &ctx) final
Initializing the ClusterizerSpec.
ClusterizerSpec(bool propagateMC)
Constructor.
A container to hold and manage MC truth information/labels.
framework::DataProcessorSpec getClusterizerSpec(bool propagateMC)
Creating DataProcessorSpec for the CPV Clusterizer Spec.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...