Project
Loading...
Searching...
No Matches
TDCCalibEPNSpec.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_TDCCALIBEPN_SPEC
17#define O2_ZDC_TDCCALIBEPN_SPEC
18
19#include <TStopwatch.h>
20#include "Framework/Logger.h"
22#include "Framework/Task.h"
28
29namespace o2
30{
31namespace zdc
32{
33
35{
36 public:
38 TDCCalibEPNSpec(const int verbosity);
39 ~TDCCalibEPNSpec() 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 TDCCalibEPN mWorker; // TDC calibration object (was mTDCCalibEPN, modified after discussion with Pietro 20 June 2022)
52 TStopwatch mTimer;
53};
54
56
57} // namespace zdc
58} // namespace o2
59
60#endif
#define verbosity
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.
void run(o2::framework::ProcessingContext &pc) final
~TDCCalibEPNSpec() override=default
void init(o2::framework::InitContext &ic) final
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
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.
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
framework::DataProcessorSpec getTDCCalibEPNSpec()
constexpr int DbgMinimal
Definition Constants.h:208
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...