Project
Loading...
Searching...
No Matches
AltroHelper.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#ifndef ALICEO2_EMCAL_ALTROHELPER_H_
12#define ALICEO2_EMCAL_ALTROHELPER_H_
13
14#include <Rtypes.h>
15#include <iosfwd>
16#include <exception>
17#include <cstdint>
18#include <vector>
19#include <map>
23
24namespace o2
25{
26namespace emcal
27{
28
31struct AltroBunch {
33 std::vector<int> mADCs;
34 std::multimap<int, std::vector<o2::emcal::MCLabel>> mEnergyLabels;
35 std::vector<o2::emcal::MCLabel> mLabels;
36};
37
41 int mRow;
42 int mCol;
43 std::vector<o2::emcal::Digit*> mDigits;
44};
45
49 int mSRUid;
50 std::map<int, ChannelData> mChannels;
51};
52
57 std::vector<const o2::emcal::Digit*> mChannelDigits;
58 std::vector<gsl::span<const o2::emcal::MCLabel>> mChannelLabels;
59};
60
64 int mSRUid;
65 std::map<int, ChannelDigits> mChannelsDigits;
66};
67
70 std::vector<o2::emcal::Bunch> mChannelsBunchesHG;
71 std::vector<o2::emcal::Bunch> mChannelsBunchesLG;
72 std::vector<std::vector<o2::emcal::MCLabel>> mChannelLabelsHG;
73 std::vector<std::vector<o2::emcal::MCLabel>> mChannelLabelsLG;
74};
75
79 int mSRUid;
80 std::map<int, ChannelBunchData> mChannelsData;
81};
82
83} // namespace emcal
84} // namespace o2
85#endif
ChannelType_t
Type of a raw data channel.
Definition Constants.h:33
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
ALTRO bunch information obtained from digits.
Definition AltroHelper.h:31
std::vector< o2::emcal::MCLabel > mLabels
Definition AltroHelper.h:35
std::vector< int > mADCs
ADCs belonging to the bunch.
Definition AltroHelper.h:33
std::multimap< int, std::vector< o2::emcal::MCLabel > > mEnergyLabels
Definition AltroHelper.h:34
int mStarttime
Start time of the bunch.
Definition AltroHelper.h:32
o2::emcal::ChannelType_t mChanType
Definition AltroHelper.h:69
std::vector< std::vector< o2::emcal::MCLabel > > mChannelLabelsLG
Definition AltroHelper.h:73
std::vector< o2::emcal::Bunch > mChannelsBunchesHG
Definition AltroHelper.h:70
std::vector< std::vector< o2::emcal::MCLabel > > mChannelLabelsHG
Definition AltroHelper.h:72
std::vector< o2::emcal::Bunch > mChannelsBunchesLG
Definition AltroHelper.h:71
Structure for mapping digits to Channels within a SRU.
Definition AltroHelper.h:40
std::vector< o2::emcal::Digit * > mDigits
Digits for the channel within the current event.
Definition AltroHelper.h:43
int mRow
Row of the channel.
Definition AltroHelper.h:41
int mCol
Column of the channel.
Definition AltroHelper.h:42
Structure for mapping digits to Channels within a SRU.
Definition AltroHelper.h:55
std::vector< const o2::emcal::Digit * > mChannelDigits
Definition AltroHelper.h:57
o2::emcal::ChannelType_t mChanType
Definition AltroHelper.h:56
std::vector< gsl::span< const o2::emcal::MCLabel > > mChannelLabels
Definition AltroHelper.h:58
Structure for organizing digits within the SRU and preserves the digit type.
Definition AltroHelper.h:63
std::map< int, ChannelDigits > mChannelsDigits
Containers for channels within the SRU.
Definition AltroHelper.h:65
Structure for organizing Bunches within the SRU.
Definition AltroHelper.h:78
std::map< int, ChannelBunchData > mChannelsData
Containers for channels' bunches within the SRU.
Definition AltroHelper.h:80
int mSRUid
DDL of the SRU.
Definition AltroHelper.h:79
Structure for organizing digits within the SRU.
Definition AltroHelper.h:48
std::map< int, ChannelData > mChannels
Containers for channels within the SRU.
Definition AltroHelper.h:50
int mSRUid
DDL of the SRU.
Definition AltroHelper.h:49