CbmRoot
Loading...
Searching...
No Matches
StorableRecoResults.cxx
Go to the documentation of this file.
1/* Copyright (C) 2024 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer], P.-A. Loizeau */
5
6using namespace cbm::algo;
7
9{
10 size_t size = 0;
11 size += fBmonDigis.size() * sizeof(CbmBmonDigi);
12 size += fStsDigis.size() * sizeof(CbmStsDigi);
13 size += fMuchDigis.size() * sizeof(CbmMuchDigi);
14 size += fTrd2dDigis.size() * sizeof(CbmTrdDigi);
15 size += fTrdDigis.size() * sizeof(CbmTrdDigi);
16 size += fTofDigis.size() * sizeof(CbmTofDigi);
17 size += fRichDigis.size() * sizeof(CbmRichDigi);
18
19 for (const auto& ev : fDigiEvents) {
20 size += ev.fData.SizeBytes();
21 }
22
23 size += fStsClusters.SizeBytes();
24 size += fStsHits.SizeBytes();
25 size += fTofHits.SizeBytes();
26 size += fTrdHits.SizeBytes();
27
28 size += fTracks.size() * sizeof(ca::Track);
29
30 // Exclude TrackHitIndexContainers for now to avoid looping over all tracks
31 // Better way to do this: Just query from boost the size of the written archive.
32 // Requires changes in flesnet to the archive classes for this
33
34 return size;
35}
static constexpr size_t size()
Definition KfSimdPseudo.h:2
Data class for a signal in the t-zero detector.
Definition CbmBmonDigi.h:30
Data class for a single-channel message in the STS.
Definition CbmStsDigi.h:40
Data class for expanded digital TOF information.
Definition CbmTofDigi.h:47
std::vector< CbmMuchDigi > fMuchDigis
PartitionedVector< sts::Cluster > fStsClusters
std::vector< CbmRichDigi > fRichDigis
std::vector< CbmStsDigi > fStsDigis
PartitionedVector< tof::Hit > fTofHits
PartitionedVector< trd::Hit > fTrdHits
std::vector< CbmTofDigi > fTofDigis
PartitionedVector< sts::Hit > fStsHits
std::vector< CbmTrdDigi > fTrd2dDigis
std::vector< CbmTrdDigi > fTrdDigis
std::vector< CbmBmonDigi > fBmonDigis
size_t SizeBytes() const
Total size in bytes.
std::vector< CbmDigiEvent > fDigiEvents
Class representing an output track in the CA tracking algorithm.