Class Reference for E1039 Core & Analysis Software
MainDaqParser Class Reference

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/online/decoder_maindaq/MainDaqParser.h>

+ Collaboration diagram for MainDaqParser:

Public Types

enum  SpillType_t { TYPE_BOS = 1 , TYPE_EOS = 2 }
 

Public Member Functions

 MainDaqParser ()
 
 ~MainDaqParser ()
 
CodaInputManagerGetCoda ()
 
int OpenCodaFile (const std::string fname, const long file_size_min=32768, const int sec_wait=15, const int n_wait=40)
 
bool NextPhysicsEvent (EventData *&ed, SpillData *&sd, RunData *&rd)
 
RunDataGetRunData ()
 
int End ()
 
void UseLocalSpillID (const bool use)
 
bool UseLocalSpillID () const
 
void ForceLocalSpillID (const bool force)
 
bool ForceLocalSpillID () const
 

Public Attributes

DecoParam dec_par
 
DecoError dec_err
 

Detailed Description

Definition at line 9 of file MainDaqParser.h.

Member Enumeration Documentation

◆ SpillType_t

Enumerator
TYPE_BOS 
TYPE_EOS 

Definition at line 77 of file MainDaqParser.h.

Constructor & Destructor Documentation

◆ MainDaqParser()

MainDaqParser::MainDaqParser ( )

Definition at line 30 of file MainDaqParser.cc.

◆ ~MainDaqParser()

MainDaqParser::~MainDaqParser ( )

Definition at line 52 of file MainDaqParser.cc.

Member Function Documentation

◆ End()

int MainDaqParser::End ( )

A function that is called when one input file is finished reading. We might have to parse any remaining Coda events here as we did in the original decoder via CloseOutput(), although such events are most likely useless since their spill info is imcomplete.

Definition at line 202 of file MainDaqParser.cc.

References CodaInputManager::CloseFile(), dec_err, dec_par, DecoError::InitData(), DecoParam::is_online, RunData::n_evt_all, RunData::n_evt_dec, RunData::n_flush_evt, RunData::n_hit, RunData::n_hit_bad, RunData::n_phys_evt, RunData::n_t_hit, RunData::n_t_hit_bad, RunData::n_v1495, RunData::n_v1495_d1ad, RunData::n_v1495_d2ad, RunData::n_v1495_d3ad, NULL, DecoError::PrintData(), DecoParam::timeEnd, DecoParam::timeStart, and DecoParam::verb.

Referenced by Fun4AllEVIOInputManager::fileclose().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ForceLocalSpillID() [1/2]

bool MainDaqParser::ForceLocalSpillID ( ) const
inline

Definition at line 94 of file MainDaqParser.h.

◆ ForceLocalSpillID() [2/2]

void MainDaqParser::ForceLocalSpillID ( const bool  force)
inline

Definition at line 93 of file MainDaqParser.h.

Referenced by Fun4AllEVIOInputManager::ForceLocalSpillID().

+ Here is the caller graph for this function:

◆ GetCoda()

CodaInputManager* MainDaqParser::GetCoda ( )
inline

Definition at line 85 of file MainDaqParser.h.

Referenced by Fun4AllEVIOInputManager::SetOnline().

+ Here is the caller graph for this function:

◆ GetRunData()

RunData* MainDaqParser::GetRunData ( )
inline

Definition at line 88 of file MainDaqParser.h.

Referenced by Fun4AllEVIOInputManager::fileclose().

+ Here is the caller graph for this function:

◆ NextPhysicsEvent()

bool MainDaqParser::NextPhysicsEvent ( EventData *&  ed,
SpillData *&  sd,
RunData *&  rd 
)

Definition at line 79 of file MainDaqParser.cc.

References CodaInputManager::IsEnded().

Referenced by Fun4AllEVIOInputManager::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OpenCodaFile()

int MainDaqParser::OpenCodaFile ( const std::string  fname,
const long  file_size_min = 32768,
const int  sec_wait = 15,
const int  n_wait = 40 
)

Definition at line 64 of file MainDaqParser.cc.

References dec_par, DecoParam::fn_in, NULL, CodaInputManager::OpenFile(), and DecoParam::timeStart.

Referenced by Fun4AllEVIOInputManager::fileopen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UseLocalSpillID() [1/2]

bool MainDaqParser::UseLocalSpillID ( ) const
inline

Definition at line 92 of file MainDaqParser.h.

◆ UseLocalSpillID() [2/2]

void MainDaqParser::UseLocalSpillID ( const bool  use)
inline

Definition at line 91 of file MainDaqParser.h.

Referenced by Fun4AllEVIOInputManager::UseLocalSpillID().

+ Here is the caller graph for this function:

Member Data Documentation

◆ dec_err

DecoError MainDaqParser::dec_err

Definition at line 97 of file MainDaqParser.h.

Referenced by End().

◆ dec_par


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