Project
Loading...
Searching...
No Matches
ClusterSharingMapSpec.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
15
16#ifndef O2_TPC_CLUSTERSHARINGMAP_SPEC
17#define O2_TPC_CLUSTERSHARINGMAP_SPEC
18
20#include "Framework/Task.h"
22
23namespace o2
24{
25namespace tpc
26{
27
29{
30 public:
31 ~ClusterSharingMapSpec() override = default;
32 void run(framework::ProcessingContext& pc) final;
33};
34
36{
37
38 std::vector<o2::framework::InputSpec> inputs;
39 std::vector<o2::framework::OutputSpec> outputs;
40 inputs.emplace_back("trackTPC", "TPC", "TRACKS", 0, o2::framework::Lifetime::Timeframe);
41 inputs.emplace_back("trackTPCClRefs", "TPC", "CLUSREFS", 0, o2::framework::Lifetime::Timeframe);
42 inputs.emplace_back("clusTPC", o2::framework::ConcreteDataTypeMatcher{"TPC", "CLUSTERNATIVE"}, o2::framework::Lifetime::Timeframe);
43 inputs.emplace_back("grpecs", "GLO", "GRPECS", 0, o2::framework::Lifetime::Condition, o2::framework::ccdbParamSpec("GLO/Config/GRPECS", true));
44 outputs.emplace_back("TPC", "CLSHAREDMAP", 0, o2::framework::Lifetime::Timeframe);
45 outputs.emplace_back("TPC", "TPCOCCUPANCYMAP", 0, o2::framework::Lifetime::Timeframe);
46
48 "tpc-clusters-sharing-map-producer",
49 inputs,
50 outputs,
51 o2::framework::AlgorithmSpec{o2::framework::adaptFromTask<ClusterSharingMapSpec>()},
53}
54
55} // namespace tpc
56} // namespace o2
57
58#endif
void run(framework::ProcessingContext &pc) final
~ClusterSharingMapSpec() override=default
std::vector< ConfigParamSpec > ccdbParamSpec(std::string const &path, int runDependent, std::vector< CCDBMetadata > metadata={}, int qrate=0)
std::vector< ConfigParamSpec > Options
o2::framework::DataProcessorSpec getClusterSharingMapSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...