Project
Loading...
Searching...
No Matches
PreDigit.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
14#ifndef ALICEO2_TRKFT3_PREDIGIT_H
15#define ALICEO2_TRKFT3_PREDIGIT_H
16
18
19namespace o2::trkft3
20{
21
22// PreDigit is a contribution to the digit from a single hit which happen
23// to be registered 1st in given chip row/column/roframe
24// Eventual extra contributions will be registered as PreDigitExtra, pointed by
25// the "next" index
26
27// PreDigitExtra registers additional contributions to the same row/column/roframe
30 int next = -1;
31 PreDigitLabelRef(o2::MCCompLabel lbl = 0, int nxt = -1) : label(lbl), next(nxt) {}
32
34};
35
36struct PreDigit {
37 UShort_t row = 0;
38 UShort_t col = 0;
39 UInt_t roFrame = 0;
40 int charge = 0;
41 float toa = 0.f;
43
44 PreDigit(UInt_t rf = 0, UShort_t rw = 0, UShort_t cl = 0, int nele = 0, o2::MCCompLabel lbl = 0, float t = 0.f)
45 : row(rw), col(cl), roFrame(rf), charge(nele), toa(t), labelRef(lbl) {}
46
48};
49
50} // namespace o2::trkft3
51
52#endif /* ALICEO2_TRKFT3_PREDIGIT_H */
GLuint GLsizei const GLchar * label
Definition glcorearb.h:2519
int next
eventual next contribution to the same pixel
Definition PreDigit.h:30
PreDigitLabelRef(o2::MCCompLabel lbl=0, int nxt=-1)
Definition PreDigit.h:31
ClassDefNV(PreDigitLabelRef, 1)
o2::MCCompLabel label
hit label
Definition PreDigit.h:29
UInt_t roFrame
Readout frame.
Definition PreDigit.h:39
ClassDefNV(PreDigit, 1)
float toa
Time of arrival in ns (earliest contribution)
Definition PreDigit.h:41
UShort_t row
Pixel index in X.
Definition PreDigit.h:37
PreDigitLabelRef labelRef
label and reference to the next one
Definition PreDigit.h:42
UShort_t col
Pixel index in Z.
Definition PreDigit.h:38
PreDigit(UInt_t rf=0, UShort_t rw=0, UShort_t cl=0, int nele=0, o2::MCCompLabel lbl=0, float t=0.f)
Definition PreDigit.h:44
int charge
N electrons.
Definition PreDigit.h:40