CbmRoot
Loading...
Searching...
No Matches
CbmRichDigiData.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 CBMRICHDIGIDATA_H
6#define CBMRICHDIGIDATA_H 1
7
8
9#include "CbmRichDigi.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<CbmRichDigi> 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
46 size_t Size() const { return fDigis.size(); }
47
48 // --- ROOT serializer
49#ifndef NO_ROOT
51#endif
52};
53
54#endif
Container class for CbmRichDigi objects.
void serialize(Archive &ar, const unsigned int)
BOOST serializer.
ClassDefNV(CbmRichDigiData, 1)
size_t Size() const
void Clear()
Clear content.
std::vector< CbmRichDigi > fDigis
Data vector.
friend class boost::serialization::access