Project
Loading...
Searching...
No Matches
AnalysisClusterSpec.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#ifndef O2_EMCAL_ANALYSISCLUSTER_SPEC
13#define O2_EMCAL_ANALYSISCLUSTER_SPEC
14
15#include <vector>
16
21#include "EMCALBase/Geometry.h"
25#include "Framework/Task.h"
27
28namespace o2
29{
30namespace framework
31{
33}
34namespace emcal
35{
36
37namespace reco_workflow
38{
39
48template <class InputType>
50{
51 public:
53 AnalysisClusterSpec(std::shared_ptr<o2::base::GRPGeomRequest> gr) : mGGCCDBRequest(gr){};
54
56 ~AnalysisClusterSpec() override = default;
57
60 void init(framework::InitContext& ctx) final;
61 void finaliseCCDB(framework::ConcreteDataMatcher& matcher, void* obj) final;
69 void run(framework::ProcessingContext& ctx) final;
70
71 private:
72 void updateTimeDependentParams(framework::ProcessingContext& pc);
74 o2::emcal::Geometry* mGeometry = nullptr;
75 o2::emcal::EventHandler<InputType>* mEventHandler = nullptr;
76 o2::emcal::ClusterFactory<InputType>* mClusterFactory = nullptr;
77 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
78 std::vector<o2::emcal::AnalysisCluster>* mOutputAnaClusters = nullptr;
79};
80
86
87} // namespace reco_workflow
88
89} // namespace emcal
90
91} // namespace o2
92
93#endif // O2_EMCAL_ANALYSISCLUSTER_SPEC
Definition of the EMCAL clusterizer.
Helper for geometry and GRP related CCDB requests.
EMCal clusters factory Ported from class AliEMCALcluster.
Meta class for recursive clusterizer.
Definition Clusterizer.h:47
Handler for EMCAL event data.
EMCAL geometry definition.
Definition Geometry.h:40
Analysis Cluster task for EMCAL anlaysis clusters.
void run(framework::ProcessingContext &ctx) final
Run conversion of digits to cells.
void finaliseCCDB(framework::ConcreteDataMatcher &matcher, void *obj) final
void init(framework::InitContext &ctx) final
Initializing the AnalysisClusterSpec.
~AnalysisClusterSpec() override=default
Destructor.
AnalysisClusterSpec(std::shared_ptr< o2::base::GRPGeomRequest > gr)
Constructor.
framework::DataProcessorSpec getAnalysisClusterSpec(bool useDigits)
Creating DataProcessorSpec for the EMCAL Analysis Cluster Spec.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...