Project
Loading...
Searching...
No Matches
BaselineCalibEPNSpec.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_BASELINECALIBEPN_SPEC
17#define O2_ZDC_BASELINECALIBEPN_SPEC
18
19#include <TStopwatch.h>
20#include "Framework/Logger.h"
24#include "Framework/Task.h"
29
30namespace o2
31{
32namespace zdc
33{
34
36{
37 public:
40 ~BaselineCalibEPNSpec() override = default;
41 void init(o2::framework::InitContext& ic) final;
43 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
46
47 private:
48 int mVerbosity = DbgZero; // Verbosity level
49 int mProcessed = 0; // Number of TF processed
50 int mModTF = 0; // Number of TF to cumulate before transmitting data
51 bool mInitialized = false; // Connect once to CCDB during initialization
52 bool mRunStopRequested = false; // Request to stop the run from ECS
53 BaselineCalibEPN mWorker; // Baseline calibration object
54 TStopwatch mTimer;
55};
56
58
59} // namespace zdc
60} // namespace o2
61
62#endif
#define verbosity
Configuration of ZDC Baseline calibration procedure.
Baseline calibration intermediate data.
Definition of the Names Generator class.
~BaselineCalibEPNSpec() override=default
void init(o2::framework::InitContext &ic) final
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
void run(o2::framework::ProcessingContext &pc) final
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int DbgZero
Definition Constants.h:207
framework::DataProcessorSpec getBaselineCalibEPNSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...