Project
Loading...
Searching...
No Matches
DigitRecoSpec.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_ZDC_DIGITRECO_SPEC
17#define O2_ZDC_DIGITRECO_SPEC
18
19#include "Framework/Logger.h"
23#include "Framework/Task.h"
25#include <TStopwatch.h>
27
28namespace o2
29{
30namespace zdc
31{
32
34{
35 public:
37 DigitRecoSpec(const int verbosity, const bool debugOut, const bool enableZDCTDCCorr, const bool enableZDCEnergyParam, const bool enableZDCTowerParam, const bool enableBaselineParam);
38 ~DigitRecoSpec() override = default;
39 void init(o2::framework::InitContext& ic) final;
41 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
44
45 private:
46 DigiReco mWorker; // Reconstruction object
47 int mVerbosity = 0; // Verbosity level during recostruction
48 int mMaxWave = 0; // Maximum number of waveforms in output
49 bool mDebugOut = false; // Save temporary reconstruction structures on root file
50 bool mEnableZDCTDCCorr = true; // Get ZDCTDCCorr object
51 bool mEnableZDCEnergyParam = true; // Get ZDCEnergyParam object
52 bool mEnableZDCTowerParam = true; // Get ZDCTowerParam object
53 bool mEnableBaselineParam = true; // Get BaselineParam object
54 bool mInitialized = false; // Connect once to CCDB during initialization
55 double mRecoFraction = 1.0; // Fraction of time frames to be reconstructed
56 TStopwatch mTimer;
57};
58
60framework::DataProcessorSpec getDigitRecoSpec(const int verbosity, const bool enableDebugOut,
61 const bool enableZDCTDCCorr, const bool enableZDCEnergyParam, const bool enableZDCTowerParam, const bool enableBaselineParam);
62
63} // namespace zdc
64} // namespace o2
65
66#endif
#define verbosity
Definition of the Names Generator class.
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void init(o2::framework::InitContext &ic) final
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
~DigitRecoSpec() override=default
void run(o2::framework::ProcessingContext &pc) final
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
framework::DataProcessorSpec getDigitRecoSpec(const int verbosity, const bool enableDebugOut, const bool enableZDCTDCCorr, const bool enableZDCEnergyParam, const bool enableZDCTowerParam, const bool enableBaselineParam)
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...