Project
Loading...
Searching...
No Matches
RawToCellConverterSpec.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
15#include "Framework/Task.h"
19#include "PHOSBase/Mapping.h"
23
24namespace o2
25{
26
27namespace phos
28{
29
30namespace reco_workflow
31{
32
39{
40 public:
43 RawToCellConverterSpec(unsigned int flpId) : framework::Task(), mflpId(flpId){};
44
46 ~RawToCellConverterSpec() override = default;
47
50 void init(framework::InitContext& ctx) final;
51
60 void run(framework::ProcessingContext& ctx) final;
61
62 protected:
63 private:
64 bool mFillChi2 = false;
65 bool mCombineGHLG = true;
66 bool mPedestalRun = false;
67 bool mKeepTrigNoise = false;
68 bool mInitSimParams = true;
69 int mLastSize = 0;
70 unsigned int mflpId = 0;
71 std::unique_ptr<AltroDecoder> mDecoder;
72 std::unique_ptr<CaloRawFitter> mRawFitter;
73 std::array<std::vector<Cell>, 14> mTmpCells;
74 std::array<std::vector<Cell>, 14> mTmpTRU;
75 std::vector<o2::phos::Cell> mOutputCells;
76 std::vector<o2::phos::TriggerRecord> mOutputTriggerRecords;
77 std::vector<o2::phos::RawReaderError> mOutputHWErrors;
78 std::vector<short> mOutputFitChi;
79};
80
85
86} // namespace reco_workflow
87
88} // namespace phos
89
90} // namespace o2
Coverter task for Raw data to PHOS cells.
void run(framework::ProcessingContext &ctx) final
Run conversion of raw data to cells.
~RawToCellConverterSpec() override=default
Destructor.
void init(framework::InitContext &ctx) final
Initializing the RawToCellConverterSpec.
framework::DataProcessorSpec getRawToCellConverterSpec(unsigned int flpId)
Creating DataProcessorSpec for the PHOS Cell Converter Spec.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...