CbmRoot
Loading...
Searching...
No Matches
CbmFsdDigiData.h
Go to the documentation of this file.
1/* Copyright (C) 2023 Physikalisches Institut, Eberhard Karls Universitaet Tuebingen, Tuebingen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Lukas Chlad [committer] */
4
5#ifndef CBMFSDDIGIDATA_H
6#define CBMFSDDIGIDATA_H 1
7
8
9#include "CbmFsdDigi.h"
10
11#ifndef NO_ROOT
12#include <Rtypes.h> // for ClassDef
13#endif
14
15#include <boost/serialization/access.hpp>
16#include <boost/serialization/base_object.hpp>
17
18#include <vector>
19
30
31public:
32 std::vector<CbmFsdDigi> fDigis = {};
33
35
37 template<class Archive>
38 void serialize(Archive& ar, const unsigned int /*version*/)
39 {
40 ar& fDigis;
41 }
42
44 void Clear() { fDigis.clear(); }
45
47 size_t Size() const { return fDigis.size(); }
48
49
50 // --- ROOT serializer
51#ifndef NO_ROOT
53#endif
54};
55
56#endif
Container class for CbmFsdDigi objects.
ClassDefNV(CbmFsdDigiData, 1)
void Clear()
Clear content.
std::vector< CbmFsdDigi > fDigis
Data vector.
void serialize(Archive &ar, const unsigned int)
BOOST serializer.
friend class boost::serialization::access
size_t Size() const
Size.