Project
Loading...
Searching...
No Matches
RecEventAux.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 ZDC_RECEVENT_AUX_H
13#define ZDC_RECEVENT_AUX_H
14
16#include "MathUtils/Cartesian.h"
18#include "ZDCBase/Constants.h"
19#include <Rtypes.h>
20#include <array>
21#include <vector>
22#include <map>
23
27
28namespace o2
29{
30namespace zdc
31{
32
33struct RecEventAux : public RecEventFlat {
34 uint32_t flags;
35#ifdef O2_ZDC_TDC_C_ARRAY
36 int16_t tdcVal[NTDCChannels][MaxTDCValues];
37 int16_t tdcAmp[NTDCChannels][MaxTDCValues];
38#endif
39 int ntdc[NTDCChannels] = {0};
40 std::array<bool, NTDCChannels> pattern;
41 uint16_t fired[NTDCChannels] = {0};
42 bool chfired[NChannels] = {0};
43 uint32_t ref[NChannels];
44 std::array<bool, NChannels> err;
45 std::array<int16_t, NTimeBinsPerBC> data[NChannels] = {0};
46
47 // Functions
49 {
50 for (int32_t i = 0; i < NChannels; i++) {
52 }
53 }
54
55 void print() const;
57};
58
59} // namespace zdc
60} // namespace o2
61
62#endif
int32_t i
Class to decode the reconstructed ZDC event (single BC with signal in one of detectors)
GLboolean * data
Definition glcorearb.h:298
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr uint32_t ZDCRefInitVal
Definition Constants.h:91
constexpr int NTDCChannels
Definition Constants.h:90
constexpr int NChannels
Definition Constants.h:65
constexpr int MaxTDCValues
Definition Constants.h:89
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
int ntdc[NTDCChannels]
Definition RecEventAux.h:39
std::array< bool, NChannels > err
Cache of references.
Definition RecEventAux.h:44
ClassDefNV(RecEventAux, 1)
uint16_t fired[NTDCChannels]
Pattern of TDC.
Definition RecEventAux.h:41
RecEventAux()
Samples (raw or filtered)
Definition RecEventAux.h:48
bool chfired[NChannels]
Position at which the trigger algorithm is fired.
Definition RecEventAux.h:42
std::array< bool, NTDCChannels > pattern
Number of hits in TDC.
Definition RecEventAux.h:40