Project
Loading...
Searching...
No Matches
DCSAdaposParserSpec.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
13
14#ifndef O2_ITS_DCS_PARSER_SPEC_H
15#define O2_ITS_DCS_PARSER_SPEC_H
16
17#include <string>
18#include <vector>
19#include <iostream>
20#include <fstream>
21#include <map>
22
25#include "Framework/Task.h"
27#include <fairmq/Device.h>
28
30
32#include "Headers/DataHeader.h"
34#include "CCDB/CcdbObjectInfo.h"
35#include "CCDB/CcdbApi.h"
36
42
43using namespace o2::framework;
44using namespace o2::itsmft;
45
46namespace o2
47{
48namespace its
49{
50
54
56{
57 public:
59 ~ITSDCSAdaposParser() override = default;
60
61 void init(InitContext& ic) final;
62 void run(ProcessingContext& pc) final;
63
65 private:
66 // Helper functions
67 void process(const gsl::span<const DPCOM> dps);
68 void processDP(const DPCOM& dpcom);
69 void pushToCCDB(ProcessingContext&);
70 void getCurrentCcdbAlpideParam();
71
72 // Ccdb url for ccdb upload withing the wf
73 std::string mCcdbUrl = "";
74
75 // store the strobe length for each DPID = stave
76 std::unordered_map<DPID, DPVAL> mDPstrobe;
77 double mStrobeToUpload = 0.;
78 bool doStrobeUpload = false;
79
80 std::string mSelfName;
81 bool mVerboseOutput = false;
82
83 // for ccdb alpide param fetching
85 std::string mCcdbFetchUrl = "http://ccdb-test.cern.ch:8080";
87 long int startTime;
88
89 // to avoid several pushes to CCDB
90 long int pushTime = 0;
91 long int lastPushTime = 0;
92};
93
94// Create a processor spec
96
97} // namespace its
98} // namespace o2
99
100#endif
Utils and constants for calibration and related workflows.
A helper class to iteratate over all parts of all input routes.
Definition of the Alpide pixel reader for raw data processing.
static BasicCCDBManager & instance()
void run(ProcessingContext &pc) final
void init(InitContext &ic) final
~ITSDCSAdaposParser() override=default
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
o2::framework::DataProcessorSpec getITSDCSAdaposParserSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...