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
12#ifndef ALICEO2_PHOS_EVENTDATA_H_
13#define ALICEO2_PHOS_EVENTDATA_H_
14
15#include <gsl/span>
16#include <vector>
21namespace o2
22{
23
24namespace phos
25{
26
27template <class InputType>
28struct EventData {
30 gsl::span<const Cluster> mClusters;
31 gsl::span<const InputType> mCells;
32 gsl::span<const int> mCellIndices;
33 std::vector<gsl::span<const o2::phos::MCLabel>> mMCCellLabels;
34
36 void reset()
37 {
39 mClusters = gsl::span<const Cluster>();
40 mCells = gsl::span<const InputType>();
41 mCellIndices = gsl::span<const int>();
42 mMCCellLabels = std::vector<gsl::span<const o2::phos::MCLabel>>();
43 }
44
46};
47
48} // namespace phos
49
50} // namespace o2
51
52#endif // ALICEO2_PHOS_EVENTDATA_H_
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
InteractionRecord mInteractionRecord
Interaction record for the trigger corresponding to this event.
Definition EventData.h:29
std::vector< gsl::span< const o2::phos::MCLabel > > mMCCellLabels
span of MC labels for each cell
Definition EventData.h:33
void reset()
Reset event structure with empty interaction record and ranges.
Definition EventData.h:36
gsl::span< const Cluster > mClusters
PHOS clusters.
Definition EventData.h:30
ClassDefNV(EventData, 2)
gsl::span< const int > mCellIndices
Cell indices in cluster.
Definition EventData.h:32
gsl::span< const InputType > mCells
PHOS cells / digits.
Definition EventData.h:31