Project
Loading...
Searching...
No Matches
NoiseCalibEPNSpec.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_NOISECALIBEPN_SPEC
17#define O2_ZDC_NOISECALIBEPN_SPEC
18
19#include <TStopwatch.h>
20#include "Framework/Logger.h"
24#include "Framework/Task.h"
28
29namespace o2
30{
31namespace zdc
32{
33
35{
36 public:
39 ~NoiseCalibEPNSpec() override = default;
40 void init(o2::framework::InitContext& ic) final;
42 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
45
46 private:
47 int mVerbosity = DbgMinimal; // Verbosity level
48 int mProcessed = 0; // Number of TF processed
49 int mModTF = 0; // Number of TF to cumulate before transmitting data
50 bool mInitialized = false; // Connect once to CCDB during initialization
51 NoiseCalibEPN mWorker; // Noise calibration object
52 TStopwatch mTimer;
53};
54
56
57} // namespace zdc
58} // namespace o2
59
60#endif
#define verbosity
Definition of the Names Generator class.
Format of noise calibration intermediate data.
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
void run(o2::framework::ProcessingContext &pc) 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 init(o2::framework::InitContext &ic) final
~NoiseCalibEPNSpec() override=default
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
framework::DataProcessorSpec getNoiseCalibEPNSpec()
constexpr int DbgMinimal
Definition Constants.h:208
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...