Project
Loading...
Searching...
No Matches
CPVBadMapCalibDevice.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
12#ifndef O2_CALIBRATION_CPVBADMAP_CALIBRATOR_H
13#define O2_CALIBRATION_CPVBADMAP_CALIBRATOR_H
14
17
18#include "Framework/Task.h"
19// #include "Framework/ConfigParamRegistry.h"
20// #include "Framework/ControlService.h"
23#include "CPVBase/Geometry.h"
24#include "TH2.h"
25
26using namespace o2::framework;
27
28namespace o2
29{
30namespace cpv
31{
32
34{
35
36 public:
37 explicit CPVBadMapCalibDevice(bool useCCDB, bool forceUpdate, std::string path, short m) : mUseCCDB(useCCDB), mForceUpdate(forceUpdate), mUpdateCCDB(true), mMethod(m), mPath(path) {}
38 void init(o2::framework::InitContext& ic) final;
39
41
43
44 protected:
46
47 bool differFromCurrent();
48
49 private:
50 bool mUseCCDB = false;
51 bool mForceUpdate = false;
52 bool mUpdateCCDB = true;
53 short mMethod = 0;
54 std::string mPath{"./"};
55 std::unique_ptr<BadChannelMap> mBadMap;
56 std::array<char, o2::cpv::Geometry::kNCHANNELS> mMapDiff;
57};
58
59o2::framework::DataProcessorSpec getBadMapCalibSpec(bool useCCDB, bool forceUpdate, std::string path, short method);
60
61} // namespace cpv
62} // namespace o2
63
64#endif
void output(const std::map< std::string, ChannelStat > &channels)
Definition rawdump.cxx:197
void init(o2::framework::InitContext &ic) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void run(o2::framework::ProcessingContext &pc) final
void sendOutput(DataAllocator &output)
CPVBadMapCalibDevice(bool useCCDB, bool forceUpdate, std::string path, short m)
const GLfloat * m
Definition glcorearb.h:4066
GLsizei const GLchar *const * path
Definition glcorearb.h:3591
o2::framework::DataProcessorSpec getBadMapCalibSpec(bool useCCDB, bool forceUpdate, std::string path, short method)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...