Project
Loading...
Searching...
No Matches
BaselineCalibSpec.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_BASELINECALIB_SPEC
17#define O2_ZDC_BASELINECALIB_SPEC
18
19#include <TStopwatch.h>
20#include "Headers/DataHeader.h"
21#include "Framework/Logger.h"
25#include "Framework/Task.h"
32#include "CCDB/CcdbObjectInfo.h"
33
34namespace o2
35{
36namespace zdc
37{
38
40{
41 public:
44 ~BaselineCalibSpec() override = default;
45 void init(o2::framework::InitContext& ic) final;
47 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
50 void sendOutput(); // Send output to CCDB
51 void reset(); // Ask for a reset internal structures
52
53 private:
54 int mVerbosity = DbgMinimal; // Verbosity level
55 bool mInitialized = false; // Connect once to CCDB during initialization
56 uint64_t mCTimeEnd = 0; // Time of last processed time frame
57 uint64_t mCTimeMod = 0; // Integration time slot
58 uint32_t mProcessed = 0; // Number of cycles since last CCDB write
59 BaselineCalib mWorker; // Baseline calibration object
60 TStopwatch mTimer;
61 o2::framework::DataAllocator* mOutput = nullptr;
62 std::unique_ptr<o2::dataformats::FileMetaData> mHistoFileMetaData = nullptr;
63 std::string mOutputDir;
64 std::string mHistoFileName;
65 std::string mLHCPeriod;
67 long mRunStartTime = 0;
68};
69
71
72} // namespace zdc
73} // namespace o2
74
75#endif
#define verbosity
Configuration of ZDC Baseline calibration procedure.
Baseline calibration data.
Utils and constants for calibration and related workflows.
unsigned int uint32_t
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
Definition of the Names Generator class.
~BaselineCalibSpec() override=default
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
void run(o2::framework::ProcessingContext &pc) final
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.
struct o2::upgrades_utils::@482 zdc
structure to keep FT0 information
framework::DataProcessorSpec getBaselineCalibSpec()
constexpr int DbgMinimal
Definition Constants.h:208
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...