Project
Loading...
Searching...
No Matches
EventData.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_EVENTDATA_H_
12#define ALICEO2_EMCAL_EVENTDATA_H_
13#include <cstdint>
14#include <gsl/span>
15#include <vector>
20
21namespace o2
22{
23
24namespace emcal
25{
26
37template <class InputType>
38struct EventData {
40 gsl::span<const Cluster> mClusters;
41 gsl::span<const InputType> mCells;
42 gsl::span<const int> mCellIndices;
43 std::vector<gsl::span<const o2::emcal::MCLabel>> mMCCellLabels;
44 uint64_t mTriggerBits;
45
47 void reset()
48 {
50 mClusters = gsl::span<const Cluster>();
51 mCells = gsl::span<const InputType>();
52 mCellIndices = gsl::span<const int>();
53 mMCCellLabels = std::vector<gsl::span<const o2::emcal::MCLabel>>();
54 mTriggerBits = 0;
55 }
56
58};
59
60} // namespace emcal
61
62} // namespace o2
63
64#endif // ALICEO2_EMCAL_EVENTDATA_H_
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
EMCAL event information (per trigger)
Definition EventData.h:38
uint64_t mTriggerBits
Trigger bits for the event.
Definition EventData.h:44
void reset()
Reset event structure with empty interaction record and ranges.
Definition EventData.h:47
ClassDefNV(EventData, 1)
gsl::span< const int > mCellIndices
Cell indices in cluster.
Definition EventData.h:42
gsl::span< const Cluster > mClusters
EMCAL clusters.
Definition EventData.h:40
gsl::span< const InputType > mCells
EMCAL cells / digits.
Definition EventData.h:41
std::vector< gsl::span< const o2::emcal::MCLabel > > mMCCellLabels
span of MC labels for each cell
Definition EventData.h:43
InteractionRecord mInteractionRecord
Interaction record for the trigger corresponding to this event.
Definition EventData.h:39