Project
Loading...
Searching...
No Matches
CellConverterSpec.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
20#include "Framework/Task.h"
21
22namespace o2
23{
24
25namespace phos
26{
27
28namespace reco_workflow
29{
30
42{
43 public:
46 CellConverterSpec(bool propagateMC, bool defBadMap) : framework::Task(), mPropagateMC(propagateMC), mDefBadMap(defBadMap){};
47
49 ~CellConverterSpec() override = default;
50
53 void init(framework::InitContext& ctx) final;
54
72 void run(framework::ProcessingContext& ctx) final;
73
74 private:
75 bool mPropagateMC = false;
76 bool mDefBadMap = false;
77 bool mHasCalib = false;
78 bool mInitSimParams = true;
79 std::vector<Cell> mOutputCells;
80 std::vector<TriggerRecord> mOutputCellTrigRecs;
82 std::unique_ptr<BadChannelsMap> mBadMap;
83};
84
89framework::DataProcessorSpec getCellConverterSpec(bool propagateMC, bool defBadMap);
90
91} // namespace reco_workflow
92
93} // namespace phos
94
95} // namespace o2
Definition of a container to keep Monte Carlo truth external to simulation objects.
A container to hold and manage MC truth information/labels.
Coverter task for PHOS digits to AOD PHOS cells.
~CellConverterSpec() override=default
Destructor.
void init(framework::InitContext &ctx) final
Initializing the CellConverterSpec.
CellConverterSpec(bool propagateMC, bool defBadMap)
Constructor.
void run(framework::ProcessingContext &ctx) final
Run conversion of digits to cells.
framework::DataProcessorSpec getCellConverterSpec(bool propagateMC, bool defBadMap)
Creating DataProcessorSpec for the PHOS Cell Converter Spec.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...