CbmRoot
Loading...
Searching...
No Matches
CbmPsdDigiData.h
Go to the documentation of this file.
1/* Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
5#ifndef CBMPSDDIGIDATA_H
6#define CBMPSDDIGIDATA_H 1
7
8
9#include "CbmPsdDigi.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<CbmPsdDigi> 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 // --- ROOT serializer
50#ifndef NO_ROOT
52#endif
53};
54
55#endif
Container class for CbmPsdDigi objects.
void Clear()
Clear content.
void serialize(Archive &ar, const unsigned int)
BOOST serializer.
size_t Size() const
Size.
ClassDefNV(CbmPsdDigiData, 1)
std::vector< CbmPsdDigi > fDigis
Data vector.
friend class boost::serialization::access