List of all members | Public Member Functions | Private Member Functions | Private Attributes
otoa::Offline2ADST Class Reference

Converts an Offline event to ADST. More...

#include "RecDataWriterNG/Offline2ADST.h"

Public Member Functions

const otoa::ConfigConfig () const
 Fetch the converter configuration. More...
 
otoa::ConfigConfig ()
 Fetch the converter configuration. More...
 
bool Convert (const evt::Event &event, RecEvent &recEvent)
 
void FinishDetectorAndFileInfo ()
 
const DetectorGeometry & GetDetectorGeometry () const
 
DetectorGeometry & GetDetectorGeometry ()
 
const FileInfo & GetFileInfo () const
 
FileInfo & GetFileInfo ()
 
 Offline2ADST ()=default
 
 Offline2ADST (const otoa::Config &cfg)
 
const otoa::StatusStatus () const
 Fetch the current conversion status. More...
 
otoa::StatusStatus ()
 Fetch the current conversion status. More...
 
int Verbosity ()
 

Private Member Functions

void ConvertGenParticle (GenParticle &adstGP, const evt::GenParticle &evtGP)
 
void FillDetectorGeometryIncremental ()
 
void FillGlobalInfo (const evt::Event &event, RecEvent &recEvent)
 
void FillRadio (const evt::Event &event, RecEvent &recEvent)
 Fills the per-event radio part of the event, EventInfo, and DetectorGeometry. More...
 
void FillSim (const evt::Event &event, GenShower &gen, bool saveProfiles)
 

Private Attributes

otoa::Config fConfig
 
DetectorGeometry fDetectorGeometry
 
FileInfo fFileInfo
 
otoa::Status fStatus
 

Detailed Description

Converts an Offline event to ADST.

Definition at line 27 of file Offline2ADST.h.

Constructor & Destructor Documentation

otoa::Offline2ADST::Offline2ADST ( )
default
Offline2ADST::Offline2ADST ( const otoa::Config cfg)

Definition at line 84 of file Offline2ADST.cc.

Member Function Documentation

const otoa::Config& otoa::Offline2ADST::Config ( ) const
inline

Fetch the converter configuration.

Definition at line 52 of file Offline2ADST.h.

References fConfig.

Referenced by otoa::FD2ADST::Config(), Convert(), RecDataWriterNG::RecDataWriter::Init(), and RecDataWriterNG::RecDataWriter::ReadConfig().

otoa::Config& otoa::Offline2ADST::Config ( )
inline

Fetch the converter configuration.

Definition at line 54 of file Offline2ADST.h.

References fConfig.

bool Offline2ADST::Convert ( const evt::Event event,
RecEvent &  recEvent 
)

Converts the given Offline event to the given RecEvent. Returns true if the RecEvent should be written to file according to the configuration and the event contents. The converter keeps its own DetectorGeometry and FileInfo instances and updates their incremental components as it goes along.

Definition at line 90 of file Offline2ADST.cc.

References Config(), otoa::SD2ADST::Convert(), otoa::Detector2ADST::Convert(), otoa::MD2ADST::Convert(), otoa::FD2ADST::Convert(), otoa::Config::DropUntriggeredDetector(), otoa::Config::DropUntriggeredMCProfiles(), fConfig, FillDetectorGeometryIncremental(), FillGlobalInfo(), FillRadio(), FillSim(), fStatus, evt::Event::HasMEvent(), evt::Event::HasSimShower(), INFO, otoa::Status::SetIsMCEvent(), otoa::Config::WriteFD(), and otoa::Config::WriteSD().

Referenced by RecDataWriterNG::RecDataWriter::Run().

void Offline2ADST::ConvertGenParticle ( GenParticle &  adstGP,
const evt::GenParticle evtGP 
)
private
void Offline2ADST::FillDetectorGeometryIncremental ( )
private
void Offline2ADST::FillGlobalInfo ( const evt::Event event,
RecEvent &  recEvent 
)
private
void Offline2ADST::FillRadio ( const evt::Event event,
RecEvent &  recEvent 
)
private
void Offline2ADST::FillSim ( const evt::Event event,
GenShower &  gen,
bool  saveProfiles 
)
private
void Offline2ADST::FinishDetectorAndFileInfo ( )
const DetectorGeometry& otoa::Offline2ADST::GetDetectorGeometry ( ) const
inline

Definition at line 43 of file Offline2ADST.h.

References fDetectorGeometry.

Referenced by RecDataWriterNG::RecDataWriter::Finish().

DetectorGeometry& otoa::Offline2ADST::GetDetectorGeometry ( )
inline

Definition at line 45 of file Offline2ADST.h.

References fDetectorGeometry.

const FileInfo& otoa::Offline2ADST::GetFileInfo ( ) const
inline

Definition at line 47 of file Offline2ADST.h.

References fFileInfo.

Referenced by RecDataWriterNG::RecDataWriter::Finish(), and FinishDetectorAndFileInfo().

FileInfo& otoa::Offline2ADST::GetFileInfo ( )
inline

Definition at line 49 of file Offline2ADST.h.

References fFileInfo.

const otoa::Status& otoa::Offline2ADST::Status ( ) const
inline

Fetch the current conversion status.

Definition at line 57 of file Offline2ADST.h.

References fStatus.

otoa::Status& otoa::Offline2ADST::Status ( )
inline

Fetch the current conversion status.

Definition at line 59 of file Offline2ADST.h.

References fStatus.

int otoa::Offline2ADST::Verbosity ( )
inline

Definition at line 61 of file Offline2ADST.h.

References fConfig, and otoa::Config::Verbosity().

Referenced by FillDetectorGeometryIncremental().

Member Data Documentation

otoa::Config otoa::Offline2ADST::fConfig
private

Definition at line 75 of file Offline2ADST.h.

Referenced by Config(), Convert(), FillRadio(), FinishDetectorAndFileInfo(), and Verbosity().

DetectorGeometry otoa::Offline2ADST::fDetectorGeometry
private
FileInfo otoa::Offline2ADST::fFileInfo
private

Definition at line 78 of file Offline2ADST.h.

Referenced by FinishDetectorAndFileInfo(), and GetFileInfo().

otoa::Status otoa::Offline2ADST::fStatus
private

Definition at line 76 of file Offline2ADST.h.

Referenced by Convert(), FinishDetectorAndFileInfo(), and Status().


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

, generated on Tue Sep 26 2023.