CbmRoot
Loading...
Searching...
No Matches
cbm::algo::DigiEvent Struct Reference

Event data with event number and trigger time. More...

#include <DigiData.h>

Inheritance diagram for cbm::algo::DigiEvent:
[legend]
Collaboration diagram for cbm::algo::DigiEvent:
[legend]

Public Member Functions

 DigiEvent ()=default
 
 DigiEvent (const CbmDigiEvent &storable)
 
CbmDigiEvent ToStorable () const
 Convert to CbmDigiEvent for file storage.
 
size_t Size (ECbmModuleId system) const
 Get the number of digis for a given subsystem.
 
size_t TotalSize () const
 Get the total number of digis across all subsystems.
 
size_t TotalSizeBytes () const
 Get the total number of bytes used by all digis.
 

Static Public Member Functions

static std::vector< DigiEventFromCbmDigiEvents (const std::vector< CbmDigiEvent > &events)
 
static std::vector< CbmDigiEventToCbmDigiEvents (const std::vector< DigiEvent > &events)
 

Public Attributes

uint64_t fNumber = -1
 Event identifier.
 
double fTime = 0
 Event trigger time [ns].
 
PODVector< CbmStsDigifSts
 Unpacked STS digis.
 
PODVector< CbmMuchDigifMuch
 Unpacked MUCH digis.
 
PODVector< CbmTofDigifTof
 Unpacked TOF digis.
 
PODVector< CbmBmonDigifBmon
 Unpacked Bmon digis.
 
PODVector< CbmTrdDigifTrd
 Unpacked TRD digis.
 
PODVector< CbmTrdDigifTrd2d
 Unpacked TRD2D digis.
 
PODVector< CbmRichDigifRich
 Unpacked RICH digis.
 
PODVector< CbmPsdDigifPsd
 Unpacked PSD digis.
 
PODVector< CbmFsdDigifFsd
 Unpacked FSD digis.
 

Detailed Description

Event data with event number and trigger time.

See also
CbmDigitEvent
Note
Uses PODVector for storage, so memory is not initialized by default.

Definition at line 79 of file DigiData.h.

Constructor & Destructor Documentation

◆ DigiEvent() [1/2]

cbm::algo::DigiEvent::DigiEvent ( )
default

◆ DigiEvent() [2/2]

DigiEvent::DigiEvent ( const CbmDigiEvent & storable)
explicit

Definition at line 118 of file DigiData.cxx.

Member Function Documentation

◆ FromCbmDigiEvents()

std::vector< DigiEvent > DigiEvent::FromCbmDigiEvents ( const std::vector< CbmDigiEvent > & events)
static

Definition at line 98 of file DigiData.cxx.

Referenced by CbmTaskDigiEventQa::Exec().

◆ Size()

size_t DigiData::Size ( ECbmModuleId system) const
inherited

Get the number of digis for a given subsystem.

Parameters
systemSubsystem to get the number of digis for
Todo
Should use fles::Subsystem instead ECbmModuleId

Definition at line 27 of file DigiData.cxx.

References cbm::algo::DigiData::fBmon, cbm::algo::DigiData::fFsd, cbm::algo::DigiData::fMuch, cbm::algo::DigiData::fPsd, cbm::algo::DigiData::fRich, cbm::algo::DigiData::fSts, cbm::algo::DigiData::fTof, cbm::algo::DigiData::fTrd, cbm::algo::DigiData::fTrd2d, kBmon, kFsd, kMuch, kPsd, kRich, kSts, kTof, kTrd, and kTrd2d.

Referenced by cbm::algo::evbuild::DigiEventSelector::operator()().

◆ ToCbmDigiEvents()

std::vector< CbmDigiEvent > DigiEvent::ToCbmDigiEvents ( const std::vector< DigiEvent > & events)
static

Definition at line 108 of file DigiData.cxx.

Referenced by CbmTaskBuildEvents::Exec().

◆ ToStorable()

CbmDigiEvent DigiEvent::ToStorable ( ) const

Convert to CbmDigiEvent for file storage.

Note
This is a very expensive operation, as it copies all data.

Definition at line 125 of file DigiData.cxx.

References fNumber, fTime, and cbm::algo::DigiData::ToStorable().

◆ TotalSize()

size_t DigiData::TotalSize ( ) const
inherited

◆ TotalSizeBytes()

Member Data Documentation

◆ fBmon

◆ fFsd

◆ fMuch

◆ fNumber

uint64_t cbm::algo::DigiEvent::fNumber = -1

Event identifier.

Definition at line 81 of file DigiData.h.

Referenced by ToStorable().

◆ fPsd

◆ fRich

◆ fSts

◆ fTime

double cbm::algo::DigiEvent::fTime = 0

◆ fTof

◆ fTrd

◆ fTrd2d


The documentation for this struct was generated from the following files: