Project
Loading...
Searching...
No Matches
Chip.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
12//
13// Chip.cxx: structure to store the TOF digits in Chips - useful
14// for clusterization purposes
15// ALICEO2
16//
17#include <cstring>
18#include <tuple>
19
20#include <TMath.h>
21#include <TObjArray.h>
22
24
25using namespace o2::iotof;
26
28
29//_______________________________________________________________________
31 : mChipIndex(index)
32{
33}
34//_______________________________________________________________________
35void Chip::addDigit(UShort_t row, UShort_t col, Int_t charge, double time, o2::MCCompLabel label)
36{
38 mDigits.emplace(std::make_pair(key, LabeledDigit(mChipIndex, row, col, charge, time, label)));
39}
ClassImp(o2::iotof::Chip)
int16_t charge
Definition RawEventData.h:5
int16_t time
Definition RawEventData.h:4
uint32_t col
Definition RawData.h:4
StringRef key
Container for similated points connected to a given TOF Chip This will be used in order to allow a mo...
Definition Chip.h:41
void addDigit(UShort_t row, UShort_t col, Int_t charge, double time, o2::MCCompLabel label)
Definition Chip.cxx:35
Chip()=default
Default constructor.
std::map< ULong64_t, o2::iotof::LabeledDigit > mDigits
Map of fired digits, possibly in multiple frames.
Definition Chip.h:84
Int_t mChipIndex
Chip ID.
Definition Chip.h:82
static UInt_t getOrderingKey(UShort_t chipindex, UShort_t row, UShort_t col)
Definition Digit.h:40
GLuint index
Definition glcorearb.h:781
GLuint GLsizei const GLchar * label
Definition glcorearb.h:2519
std::vector< int > row