CbmRoot
Loading...
Searching...
No Matches
CbmTrdDigiData.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 CBMTRDDIGIDATA_H
6#define CBMTRDDIGIDATA_H 1
7
8
9#include "CbmTrdDigi.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<CbmTrdDigi> 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 CbmTrdDigi objects.
size_t Size() const
ClassDefNV(CbmTrdDigiData, 1)
void Clear()
Clear content.
void serialize(Archive &ar, const unsigned int)
BOOST serializer.
friend class boost::serialization::access
std::vector< CbmTrdDigi > fDigis
Data vector.