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_ITSMFT_PREDIGIT_H
15#define ALICEO2_ITSMFT_PREDIGIT_H
16
18
21
22namespace o2
23{
24
25namespace itsmft
26{
27
28// PreDigit is a contribution to the digit from a single hit which happen
29// to be registered 1st in given chip row/column/roframe
30// Eventual extra contributions will be registered as PreDigitExtra, pointed by
31// the "next" index
32
33// PreDigitExtra registers additional contributions to the same row/column/roframe
36 int next = -1;
37 PreDigitLabelRef(o2::MCCompLabel lbl = 0, int nxt = -1) : label(lbl), next(nxt) {}
38
40};
41
42struct PreDigit {
43 UShort_t row = 0;
44 UShort_t col = 0;
45 UInt_t roFrame = 0;
46 int charge = 0.f;
48
49 PreDigit(UInt_t rf = 0, UShort_t rw = 0, UShort_t cl = 0, int nele = 0, o2::MCCompLabel lbl = 0)
50 : row(rw), col(cl), roFrame(rf), charge(nele), labelRef(lbl) {}
51
53};
54} // namespace itsmft
55} // namespace o2
56#endif /* ALICEO2_ITSMFT_PREDIGIT_H */
GLuint GLsizei const GLchar * label
Definition glcorearb.h:2519
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
PreDigitLabelRef(o2::MCCompLabel lbl=0, int nxt=-1)
Definition PreDigit.h:37
int next
eventual next contribution to the same pixel
Definition PreDigit.h:36
ClassDefNV(PreDigitLabelRef, 1)
o2::MCCompLabel label
hit label
Definition PreDigit.h:35
ClassDefNV(PreDigit, 1)
int charge
N electrons.
Definition PreDigit.h:46
UShort_t row
Pixel index in X.
Definition PreDigit.h:43
UShort_t col
Pixel index in Z.
Definition PreDigit.h:44
PreDigitLabelRef labelRef
label and reference to the next one
Definition PreDigit.h:47
UInt_t roFrame
Readout frame.
Definition PreDigit.h:45
PreDigit(UInt_t rf=0, UShort_t rw=0, UShort_t cl=0, int nele=0, o2::MCCompLabel lbl=0)
Definition PreDigit.h:49