Project
Loading...
Searching...
No Matches
TDCCalibSpec.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_TDCCALIB_SPEC
17#define O2_ZDC_TDCCALIB_SPEC
18
19#include <TStopwatch.h>
20#include "Framework/Logger.h"
24#include "Framework/Task.h"
29#include "ZDCCalib/TDCCalib.h"
33#include "CCDB/CcdbObjectInfo.h"
34
35namespace o2
36{
37namespace zdc
38{
39
41{
42 public:
44 TDCCalibSpec(const int verbosity);
45 ~TDCCalibSpec() override = default;
46 void init(o2::framework::InitContext& ic) final;
48 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
52
53 private:
54 int mVerbosity = DbgMinimal; // Verbosity level
55 bool mInitialized = false; // Connect once to CCDB during initialization
56 TDCCalib mWorker; // TDC calibration object
57 TStopwatch mTimer;
58 long mRunStartTime = 0;
59 o2::framework::DataAllocator* mOutput = nullptr;
60 std::unique_ptr<o2::dataformats::FileMetaData> mHistoFileMetaData = nullptr;
61 std::string mOutputDir;
62 std::string mHistoFileName;
63 std::string mLHCPeriod;
64 int mRunNumber = -1;
65};
66
68
69} // namespace zdc
70} // namespace o2
71
72#endif
#define verbosity
Utils and constants for calibration and related workflows.
1D messeageable histo class
Definition of the Names Generator class.
Configuration of ZDC TDC calibration procedure.
TDC calibration intermediate data.
Container class to store a TDC hit in a ZDC channel.
~TDCCalibSpec() override=default
void sendOutput(o2::framework::EndOfStreamContext &ec)
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
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
framework::DataProcessorSpec getTDCCalibSpec()
constexpr int DbgMinimal
Definition Constants.h:208
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...