Project
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
Digit.cxx
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
16#include <iostream>
17
19
20using namespace o2::itsmft;
21
22Digit::Digit(UShort_t chipindex, UShort_t row, UShort_t col, Int_t charge)
23 : mChipIndex(chipindex), mRow(row), mCol(col)
24{
26}
27
28std::ostream& Digit::print(std::ostream& output) const
29{
30 output << "ITSMFTDigit chip [" << mChipIndex << "] R:" << mRow << " C:" << mCol << " Q: " << mCharge;
31 return output;
32}
Definition of the ITSMFT digit.
ClassImp(o2::itsmft::Digit)
int16_t charge
Definition RawEventData.h:5
void output(const std::map< std::string, ChannelStat > &channels)
Definition rawdump.cxx:197
uint32_t col
Definition RawData.h:4
Digit class for the ITS.
Definition Digit.h:30
void setCharge(Int_t charge)
Set the charge of the digit.
Definition Digit.h:62
Digit(UShort_t chipindex=0, UShort_t row=0, UShort_t col=0, Int_t charge=0)
Constructor, initializing values for position, charge and readout frame.
Definition Digit.cxx:22
std::ostream & print(std::ostream &output) const
Print function: Print basic digit information on the output stream.
Definition Digit.cxx:28
std::vector< int > row