39 default:
throw std::runtime_error(
"DigiData: Invalid system Id " + ::ToString(system));
100 std::vector<DigiEvent> result;
101 result.reserve(events.size());
102 for (
const auto& event : events) {
103 result.emplace_back(event);
110 std::vector<CbmDigiEvent> result;
111 result.reserve(events.size());
112 for (
const auto& event : events) {
113 result.emplace_back(event.ToStorable());
120 , fNumber(storable.fNumber)
121 , fTime(storable.fTime)
@ kTrd
Transition Radiation Detector.
@ kTof
Time-of-flight Detector.
@ kPsd
Projectile spectator detector.
@ kSts
Silicon Tracking System.
@ kTrd2d
TRD-FASP Detector (FIXME)
@ kMuch
Muon detection system.
@ kFsd
Forward spectator detector.
@ kRich
Ring-Imaging Cherenkov Detector.
Data class for a signal in the t-zero detector.
Collection of digis from all detector systems.
Collection of digis from all detector systems within one event.
Data class for FSD digital information.
Data class for PSD digital information.
Data class for a single-channel message in the STS.
Data class for expanded digital TOF information.
std::vector< T > ToStdVector(const PODVector< T > &vec)
PODVector< T > ToPODVector(const std::vector< T > &vec)
Collection of digis from all detector systems.
PODVector< CbmRichDigi > fRich
Unpacked RICH digis.
PODVector< CbmTrdDigi > fTrd
Unpacked TRD digis.
PODVector< CbmStsDigi > fSts
Unpacked STS digis.
PODVector< CbmTrdDigi > fTrd2d
Unpacked TRD2D digis.
PODVector< CbmFsdDigi > fFsd
Unpacked FSD digis.
PODVector< CbmTofDigi > fTof
Unpacked TOF digis.
size_t TotalSize() const
Get the total number of digis across all subsystems.
CbmDigiData ToStorable() const
Convert to CbmDigiData for file storage.
PODVector< CbmPsdDigi > fPsd
Unpacked PSD digis.
PODVector< CbmMuchDigi > fMuch
Unpacked MUCH digis.
PODVector< CbmBmonDigi > fBmon
Unpacked Bmon digis.
size_t Size(ECbmModuleId system) const
Get the number of digis for a given subsystem.
size_t TotalSizeBytes() const
Get the total number of bytes used by all digis.
double fTime
Event trigger time [ns].
static std::vector< CbmDigiEvent > ToCbmDigiEvents(const std::vector< DigiEvent > &events)
static std::vector< DigiEvent > FromCbmDigiEvents(const std::vector< CbmDigiEvent > &events)
uint64_t fNumber
Event identifier.
CbmDigiEvent ToStorable() const
Convert to CbmDigiEvent for file storage.