CbmRoot
Loading...
Searching...
No Matches
CbmDigiEvent.h
Go to the documentation of this file.
1/* Copyright (C) 2021-22 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
5#ifndef CBMDIGIEVENT_H
6#define CBMDIGIEVENT_H 1
7
8#include "CbmDigiData.h"
9
10#include <boost/serialization/access.hpp>
11
12
20
21public:
23 uint64_t fNumber;
24 double fTime;
25
26
29 template<class Archive>
30 void serialize(Archive& ar, const unsigned int /*version*/)
31 {
32 ar& fData;
33 ar& fNumber;
34 ar& fTime;
35 }
36
37 // --- ROOT serializer
38#ifndef NO_ROOT
40#endif
41
43 void Clear()
44 {
45 fData.Clear();
46 fNumber = 0;
47 fTime = 0.;
48 }
49};
50
51#endif /* CBMDIGIEVENT_H */
Collection of digis from all detector systems.
Definition CbmDigiData.h:32
void Clear()
Clear content.
Definition CbmDigiData.h:68
Collection of digis from all detector systems within one event.
void serialize(Archive &ar, const unsigned int)
BOOST serializer.
double fTime
Event trigger time [ns].
void Clear()
Clear content.
ClassDefNV(CbmDigiEvent, 2)
CbmDigiData fData
Event data.
uint64_t fNumber
Event identifier.
friend class boost::serialization::access