Project
Loading...
Searching...
No Matches
NoiseCalibSpec.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_NOISECALIB_SPEC
17#define O2_ZDC_NOISECALIB_SPEC
18
19#include <TStopwatch.h>
20#include <array>
21#include "Framework/Logger.h"
25#include "Framework/Task.h"
29#include "ZDCCalib/NoiseCalib.h"
31#include "CCDB/CcdbObjectInfo.h"
32#include "Headers/DataHeader.h"
33
34namespace o2
35{
36namespace zdc
37{
38
40{
41 public:
43 NoiseCalibSpec(const int verbosity);
44 ~NoiseCalibSpec() override = default;
45 void init(o2::framework::InitContext& ic) final;
47 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
51
52 private:
53 int mVerbosity = DbgMinimal; // Verbosity level
54 bool mInitialized = false; // Connect once to CCDB during initialization
55 NoiseCalib mWorker; // Noise calibration object
56 TStopwatch mTimer;
57 long mRunStartTime = 0;
58 o2::framework::DataAllocator* mOutput = nullptr;
59 std::unique_ptr<o2::dataformats::FileMetaData> mHistoFileMetaData = nullptr;
60 std::string mOutputDir;
61 std::string mHistoFileName;
62 std::string mLHCPeriod;
63 int mRunNumber = -1;
64};
65
67
68} // namespace zdc
69} // namespace o2
70
71#endif
#define verbosity
Utils and constants for calibration and related workflows.
Definition of the Names Generator class.
Noise calibration data.
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
void init(o2::framework::InitContext &ic) final
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
void sendOutput(o2::framework::EndOfStreamContext &ec)
void run(o2::framework::ProcessingContext &pc) final
~NoiseCalibSpec() override=default
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
framework::DataProcessorSpec getNoiseCalibSpec()
constexpr int DbgMinimal
Definition Constants.h:208
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...