CbmRoot
CbmStar2019EventBuilderEtof Class Reference

#include <CbmStar2019EventBuilderEtof.h>

Inheritance diagram for CbmStar2019EventBuilderEtof:
[legend]
Collaboration diagram for CbmStar2019EventBuilderEtof:
[legend]

Public Member Functions

 CbmStar2019EventBuilderEtof (UInt_t uNbGdpb=1)
 
virtual ~CbmStar2019EventBuilderEtof ()
 
virtual Bool_t Init ()
 
virtual Bool_t DoUnpack (const fles::Timeslice &ts, size_t component)
 
virtual void Reset ()
 
virtual void Finish ()
 
void SetParContainers ()
 
Bool_t InitContainers ()
 
Bool_t ReInitContainers ()
 
void SetSandboxMode (Bool_t bSandboxMode=kTRUE)
 
void SetEventDumpEnable (Bool_t bDumpEna=kTRUE)
 
void SetMonitorMode (Bool_t bFlagIn=kTRUE)
 
void SetDebugMonitorMode (Bool_t bFlagIn=kTRUE)
 
void SetStoreLostEventMsg (Bool_t bFlagIn=kTRUE)
 
void SetAddStatusToEvent (Bool_t bFlagIn=kTRUE)
 
void SetPulserTotLimits (UInt_t uMin, UInt_t uMax)
 
void AddMsComponentToList (size_t component, UShort_t usDetectorId)
 Temp until we change from CbmMcbmUnpack to something else. More...
 
void SetNbMsInTs (size_t, size_t)
 
void UseDaqBuffer (Bool_t)
 

Private Member Functions

Bool_t SaveHistograms ()
 
 CbmStar2019EventBuilderEtof (const CbmStar2019EventBuilderEtof &)
 
CbmStar2019EventBuilderEtof operator= (const CbmStar2019EventBuilderEtof &)
 

Private Attributes

Bool_t fbMonitorMode
 Control flags. More...
 
Bool_t fbDebugMonitorMode
 Switch ON the filling of a minimal set of histograms. More...
 
Bool_t fbStoreLostEventMsg
 Switch ON the filling of a additional set of histograms. More...
 
Bool_t fbAddStatusToEvent
 Switch ON the insertion of the LostEvent messages from GET4s with the critical errors. More...
 
Bool_t fbSandboxMode
 Switch ON the readout and insertion of STATUS pattern message (default is true) More...
 
Bool_t fbEventDumpEna
 Switch OFF the emission of data toward the STAR DAQ. More...
 
TList * fParCList
 Switch ON the dumping of the events to a binary file. More...
 
UInt_t fuMinTotPulser
 User settings: Data selection parameters. More...
 
UInt_t fuMaxTotPulser
 
TString fsHistoFileName
 
uint64_t fulTsCounter
 Statistics & first TS rejection. More...
 
CbmStar2019EventBuilderEtofAlgofEventBuilderAlgo
 Processing algo. More...
 
Double_t fdMsSizeInNs
 Processing speed watch. More...
 
Double_t fdTsCoreSizeInSec
 Size of a single MS, [nanoseconds]. More...
 
TStopwatch fTimer
 Total size of the core MS in a TS, [seconds]. More...
 
Double_t fdRealTime
 
Double_t fdRealTimeMin
 
Double_t fdRealTimeMax
 
Double_t fdRealTimeAll
 
Double_t fdRealTimeMinAll
 
Double_t fdRealTimeMaxAll
 
uint64_t fulNbEvents
 
uint64_t fulNbEventsSinceLastPrintout
 
TH1 * fhRealTimeDistr
 
TH2 * fhRealTimeEvo
 Exclude from dictionary because ?!?! More...
 
TProfile * fhMeanRealTimeEvo
 Exclude from dictionary because ?!?! More...
 
std::fstream * fpBinDumpFile
 Exclude from dictionary because ?!?! More...
 
const UInt_t kuBinDumpBegWord = 0xFEEDBEAF
 
const UInt_t kuBinDumpEndWord = 0xFAEBDEEF
 

Detailed Description

Definition at line 32 of file CbmStar2019EventBuilderEtof.h.

Constructor & Destructor Documentation

◆ CbmStar2019EventBuilderEtof() [1/2]

CbmStar2019EventBuilderEtof::CbmStar2019EventBuilderEtof ( UInt_t  uNbGdpb = 1)

Definition at line 36 of file CbmStar2019EventBuilderEtof.cxx.

References fEventBuilderAlgo.

◆ ~CbmStar2019EventBuilderEtof()

CbmStar2019EventBuilderEtof::~CbmStar2019EventBuilderEtof ( )
virtual

Definition at line 68 of file CbmStar2019EventBuilderEtof.cxx.

References fEventBuilderAlgo.

◆ CbmStar2019EventBuilderEtof() [2/2]

CbmStar2019EventBuilderEtof::CbmStar2019EventBuilderEtof ( const CbmStar2019EventBuilderEtof )
private

Member Function Documentation

◆ AddMsComponentToList()

void CbmStar2019EventBuilderEtof::AddMsComponentToList ( size_t  component,
UShort_t  usDetectorId 
)
virtual

Temp until we change from CbmMcbmUnpack to something else.

Implements CbmMcbmUnpack.

Definition at line 245 of file CbmStar2019EventBuilderEtof.cxx.

References CbmStar2019EventBuilderEtofAlgo::AddMsComponentToList(), and fEventBuilderAlgo.

◆ DoUnpack()

Bool_t CbmStar2019EventBuilderEtof::DoUnpack ( const fles::Timeslice &  ts,
size_t  component 
)
virtual

◆ Finish()

void CbmStar2019EventBuilderEtof::Finish ( )
virtual

If monitor mode enabled, trigger histos creation, obtain pointer on them and add them to the HTTP server

Implements CbmMcbmUnpack.

Definition at line 381 of file CbmStar2019EventBuilderEtof.cxx.

References fbMonitorMode, fpBinDumpFile, and SaveHistograms().

◆ Init()

Bool_t CbmStar2019EventBuilderEtof::Init ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 72 of file CbmStar2019EventBuilderEtof.cxx.

◆ InitContainers()

Bool_t CbmStar2019EventBuilderEtof::InitContainers ( )
virtual

Control flags

Parameters for FLES containers processing

If monitor mode enabled, trigger histos creation, obtain pointer on them and add them to the HTTP server

Trigger histo creation on all associated algos

Obtain vector of pointers on each histo from the algo (+ optionally desired folder)

Obtain vector of pointers on each canvas from the algo (+ optionally desired folder)

Register the histos in the HTTP server

Reimplemented from CbmMcbmUnpack.

Definition at line 106 of file CbmStar2019EventBuilderEtof.cxx.

References CbmStar2019EventBuilderEtofAlgo::CreateHistograms(), fbAddStatusToEvent, fbDebugMonitorMode, fbMonitorMode, fbStoreLostEventMsg, fdMsSizeInNs, fEventBuilderAlgo, fhMeanRealTimeEvo, fhRealTimeDistr, fhRealTimeEvo, fuMaxTotPulser, fuMinTotPulser, CbmStar2019Algo< T >::GetCanvasVector(), CbmStar2019Algo< T >::GetHistoVector(), CbmStar2019TofPar::GetSizeMsInNs(), CbmStar2019EventBuilderEtofAlgo::InitContainers(), CbmStar2019EventBuilderEtofAlgo::SetAddStatusToEvent(), CbmStar2019EventBuilderEtofAlgo::SetDebugMonitorMode(), CbmStar2019EventBuilderEtofAlgo::SetMonitorMode(), CbmStar2019EventBuilderEtofAlgo::SetPulserTotLimits(), and CbmStar2019EventBuilderEtofAlgo::SetStoreLostEventMsg().

◆ operator=()

CbmStar2019EventBuilderEtof CbmStar2019EventBuilderEtof::operator= ( const CbmStar2019EventBuilderEtof )
private

◆ ReInitContainers()

Bool_t CbmStar2019EventBuilderEtof::ReInitContainers ( )
virtual

◆ Reset()

void CbmStar2019EventBuilderEtof::Reset ( )
virtual

Implements CbmMcbmUnpack.

Definition at line 379 of file CbmStar2019EventBuilderEtof.cxx.

◆ SaveHistograms()

bool CbmStar2019EventBuilderEtof::SaveHistograms ( )
private

Obtain vector of pointers on each histo from the algo (+ optionally desired folder)

(Re-)Create ROOT file to store the histos

Register the histos in the HTTP server

Make sure we end up in chosen folder

Write plot

Make sure we end up in chosen folder

Write plot

Definition at line 394 of file CbmStar2019EventBuilderEtof.cxx.

References fEventBuilderAlgo, fsHistoFileName, CbmStar2019Algo< T >::GetCanvasVector(), and CbmStar2019Algo< T >::GetHistoVector().

Referenced by Finish().

◆ SetAddStatusToEvent()

void CbmStar2019EventBuilderEtof::SetAddStatusToEvent ( Bool_t  bFlagIn = kTRUE)
inline

Definition at line 62 of file CbmStar2019EventBuilderEtof.h.

References fbAddStatusToEvent.

◆ SetDebugMonitorMode()

void CbmStar2019EventBuilderEtof::SetDebugMonitorMode ( Bool_t  bFlagIn = kTRUE)
inline

Definition at line 56 of file CbmStar2019EventBuilderEtof.h.

References fbDebugMonitorMode.

◆ SetEventDumpEnable()

void CbmStar2019EventBuilderEtof::SetEventDumpEnable ( Bool_t  bDumpEna = kTRUE)

Definition at line 208 of file CbmStar2019EventBuilderEtof.cxx.

References fbEventDumpEna, and fpBinDumpFile.

◆ SetMonitorMode()

void CbmStar2019EventBuilderEtof::SetMonitorMode ( Bool_t  bFlagIn = kTRUE)
inline

Definition at line 53 of file CbmStar2019EventBuilderEtof.h.

References fbMonitorMode.

◆ SetNbMsInTs()

void CbmStar2019EventBuilderEtof::SetNbMsInTs ( size_t  ,
size_t   
)
inlinevirtual

Implements CbmMcbmUnpack.

Definition at line 72 of file CbmStar2019EventBuilderEtof.h.

◆ SetParContainers()

void CbmStar2019EventBuilderEtof::SetParContainers ( )
virtual

◆ SetPulserTotLimits()

void CbmStar2019EventBuilderEtof::SetPulserTotLimits ( UInt_t  uMin,
UInt_t  uMax 
)
inline

Definition at line 65 of file CbmStar2019EventBuilderEtof.h.

References fuMaxTotPulser, and fuMinTotPulser.

◆ SetSandboxMode()

void CbmStar2019EventBuilderEtof::SetSandboxMode ( Bool_t  bSandboxMode = kTRUE)
inline

Definition at line 49 of file CbmStar2019EventBuilderEtof.h.

References fbSandboxMode.

◆ SetStoreLostEventMsg()

void CbmStar2019EventBuilderEtof::SetStoreLostEventMsg ( Bool_t  bFlagIn = kTRUE)
inline

Definition at line 59 of file CbmStar2019EventBuilderEtof.h.

References fbStoreLostEventMsg.

◆ UseDaqBuffer()

void CbmStar2019EventBuilderEtof::UseDaqBuffer ( Bool_t  )
inline

Definition at line 74 of file CbmStar2019EventBuilderEtof.h.

Member Data Documentation

◆ fbAddStatusToEvent

Bool_t CbmStar2019EventBuilderEtof::fbAddStatusToEvent
private

Switch ON the insertion of the LostEvent messages from GET4s with the critical errors.

Definition at line 85 of file CbmStar2019EventBuilderEtof.h.

Referenced by InitContainers(), and SetAddStatusToEvent().

◆ fbDebugMonitorMode

Bool_t CbmStar2019EventBuilderEtof::fbDebugMonitorMode
private

Switch ON the filling of a minimal set of histograms.

Definition at line 81 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), InitContainers(), and SetDebugMonitorMode().

◆ fbEventDumpEna

Bool_t CbmStar2019EventBuilderEtof::fbEventDumpEna
private

Switch OFF the emission of data toward the STAR DAQ.

Definition at line 88 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), and SetEventDumpEnable().

◆ fbMonitorMode

Bool_t CbmStar2019EventBuilderEtof::fbMonitorMode
private

Control flags.

Definition at line 79 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), Finish(), InitContainers(), and SetMonitorMode().

◆ fbSandboxMode

Bool_t CbmStar2019EventBuilderEtof::fbSandboxMode
private

Switch ON the readout and insertion of STATUS pattern message (default is true)

Definition at line 86 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), and SetSandboxMode().

◆ fbStoreLostEventMsg

Bool_t CbmStar2019EventBuilderEtof::fbStoreLostEventMsg
private

Switch ON the filling of a additional set of histograms.

Definition at line 83 of file CbmStar2019EventBuilderEtof.h.

Referenced by InitContainers(), and SetStoreLostEventMsg().

◆ fdMsSizeInNs

Double_t CbmStar2019EventBuilderEtof::fdMsSizeInNs
private

Processing speed watch.

Definition at line 105 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), and InitContainers().

◆ fdRealTime

Double_t CbmStar2019EventBuilderEtof::fdRealTime
private

Definition at line 108 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ fdRealTimeAll

Double_t CbmStar2019EventBuilderEtof::fdRealTimeAll
private

Definition at line 111 of file CbmStar2019EventBuilderEtof.h.

◆ fdRealTimeMax

Double_t CbmStar2019EventBuilderEtof::fdRealTimeMax
private

Definition at line 110 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ fdRealTimeMaxAll

Double_t CbmStar2019EventBuilderEtof::fdRealTimeMaxAll
private

Definition at line 113 of file CbmStar2019EventBuilderEtof.h.

◆ fdRealTimeMin

Double_t CbmStar2019EventBuilderEtof::fdRealTimeMin
private

Definition at line 109 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ fdRealTimeMinAll

Double_t CbmStar2019EventBuilderEtof::fdRealTimeMinAll
private

Definition at line 112 of file CbmStar2019EventBuilderEtof.h.

◆ fdTsCoreSizeInSec

Double_t CbmStar2019EventBuilderEtof::fdTsCoreSizeInSec
private

Size of a single MS, [nanoseconds].

Definition at line 106 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ fEventBuilderAlgo

◆ fhMeanRealTimeEvo

TProfile* CbmStar2019EventBuilderEtof::fhMeanRealTimeEvo
private

Exclude from dictionary because ?!?!

Definition at line 118 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), and InitContainers().

◆ fhRealTimeDistr

TH1* CbmStar2019EventBuilderEtof::fhRealTimeDistr
private

Definition at line 116 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), and InitContainers().

◆ fhRealTimeEvo

TH2* CbmStar2019EventBuilderEtof::fhRealTimeEvo
private

Exclude from dictionary because ?!?!

Definition at line 117 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), and InitContainers().

◆ fParCList

TList* CbmStar2019EventBuilderEtof::fParCList
private

Switch ON the dumping of the events to a binary file.

Parameters management

Definition at line 91 of file CbmStar2019EventBuilderEtof.h.

Referenced by SetParContainers().

◆ fpBinDumpFile

std::fstream* CbmStar2019EventBuilderEtof::fpBinDumpFile
private

Exclude from dictionary because ?!?!

Event dump to binary file

Definition at line 121 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack(), Finish(), and SetEventDumpEnable().

◆ fsHistoFileName

TString CbmStar2019EventBuilderEtof::fsHistoFileName
private

Definition at line 96 of file CbmStar2019EventBuilderEtof.h.

Referenced by SaveHistograms().

◆ fTimer

TStopwatch CbmStar2019EventBuilderEtof::fTimer
private

Total size of the core MS in a TS, [seconds].

Definition at line 107 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ fulNbEvents

uint64_t CbmStar2019EventBuilderEtof::fulNbEvents
private

Definition at line 114 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ fulNbEventsSinceLastPrintout

uint64_t CbmStar2019EventBuilderEtof::fulNbEventsSinceLastPrintout
private

Definition at line 115 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ fulTsCounter

uint64_t CbmStar2019EventBuilderEtof::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 99 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ fuMaxTotPulser

UInt_t CbmStar2019EventBuilderEtof::fuMaxTotPulser
private

Definition at line 95 of file CbmStar2019EventBuilderEtof.h.

Referenced by InitContainers(), and SetPulserTotLimits().

◆ fuMinTotPulser

UInt_t CbmStar2019EventBuilderEtof::fuMinTotPulser
private

User settings: Data selection parameters.

Definition at line 94 of file CbmStar2019EventBuilderEtof.h.

Referenced by InitContainers(), and SetPulserTotLimits().

◆ kuBinDumpBegWord

const UInt_t CbmStar2019EventBuilderEtof::kuBinDumpBegWord = 0xFEEDBEAF
private

Definition at line 122 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().

◆ kuBinDumpEndWord

const UInt_t CbmStar2019EventBuilderEtof::kuBinDumpEndWord = 0xFAEBDEEF
private

Definition at line 123 of file CbmStar2019EventBuilderEtof.h.

Referenced by DoUnpack().


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