Project
Loading...
Searching...
No Matches
ElectronicsDelay.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
16#ifndef O2_MID_ELECTRONICSDELAY_H
17#define O2_MID_ELECTRONICSDELAY_H
18
19#include <cstdint>
20#include <iostream>
22
23namespace o2
24{
25namespace mid
26{
27
32 int16_t calibToFET{21};
33 int16_t localToBC{90};
34 int16_t localToReg{6};
35};
36
40std::ostream& operator<<(std::ostream& os, const ElectronicsDelay& delay);
41
55ElectronicsDelay readElectronicsDelay(const char* filename);
56
62void applyElectronicsDelay(uint32_t& orbit, uint16_t& bc, int16_t delay, uint16_t maxBunches = constants::lhc::LHCMaxBunches);
63
64} // namespace mid
65} // namespace o2
66
67#endif /* O2_MID_ELECTRONICSDELAY_H */
uint64_t orbit
Definition RawEventData.h:6
uint64_t bc
Definition RawEventData.h:5
Header to collect LHC related constants.
constexpr int LHCMaxBunches
std::ostream & operator<<(std::ostream &os, const Cluster &data)
Definition Cluster.cxx:27
void applyElectronicsDelay(uint32_t &orbit, uint16_t &bc, int16_t delay, uint16_t maxBunches=constants::lhc::LHCMaxBunches)
ElectronicsDelay readElectronicsDelay(const char *filename)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string filename()
int16_t localToReg
Delay between regional board and local board answers.
int16_t calibToFET
Delay between FET and calibration event.
int16_t localToBC
Delay between collision BC and local clock.