FACT++  1.0
EventBuilderWrapper Class Reference

#include <EventBuilderWrapper.h>

+ Inheritance diagram for EventBuilderWrapper:
+ Collaboration diagram for EventBuilderWrapper:

Classes

struct  EventData
 

Public Member Functions

 EventBuilderWrapper (MessageImp &imp)
 
virtual ~EventBuilderWrapper ()
 
uint32_t StartNewRun (int64_t maxtime, int64_t maxevt, const pair< string, FAD::Configuration > &ref)
 
bool IsThreadRunning ()
 
void SetMaxMemory (unsigned int mb) const
 
void SetEventTimeout (uint16_t to) const
 
void StartThread (const vector< tcp::endpoint > &addr)
 
void ConnectSlot (unsigned int i, const tcp::endpoint &addr)
 
void IgnoreSlot (unsigned int i)
 
void Abort ()
 
void ResetThread (bool soft)
 
void Exit ()
 
bool IsConnected (int i) const
 
bool IsConnecting (int i) const
 
bool IsDisconnected (int i) const
 
bool IsRunInProgress () const
 
void SetIgnore (int i, bool b) const
 
bool IsIgnored (int i) const
 
void SetOutputFormat (FAD::FileFormat_t f)
 
virtual int ResetSecondaryDrsBaseline ()
 
void LoadDrsCalibration (const char *fname)
 
virtual int CloseOpenFiles ()
 
void UpdateRuns (const string &fname="")
 
bool UpdateDimEvents (const pair< Time, array< uint32_t, 4 >> &stat)
 
bool UpdateDimTrigger (const tuple< Time, char, array< uint32_t, 8 >> &stat)
 
bool runOpen (const EVT_CTRL2 &evt)
 
bool runWrite (const EVT_CTRL2 &e)
 
void runClose (const EVT_CTRL2 &evt)
 
virtual void CloseRun (uint32_t)
 
bool UpdateDimRoi (const pair< Time, array< uint16_t, 2 >> &roi)
 
bool UpdateDimTempRefClk (const tuple< Time, array< uint32_t, 40 >, array< int16_t, 160 >> &dat)
 
bool eventCheck (const EVT_CTRL2 &evt)
 
bool UpdateDimRawData (const vector< char > &v)
 
bool UpdateDimEventData (const tuple< Time, uint32_t, EventData > &tup)
 
void applyCalib (const EVT_CTRL2 &evt, const size_t &size)
 
bool IsRunWaiting ()
 
uint32_t GetRunNumber () const
 
bool IncreaseRunNumber (uint32_t run)
 
void gotNewRun (RUN_CTRL2 &run)
 
void runFinished ()
 
void factOut (int severity, const char *message)
 
bool UpdateDimStatistics1 (const pair< Time, GUI_STAT > &stat)
 
void factStat (const GUI_STAT &stat)
 
void factReportIncomplete (uint64_t rep)
 
template<typename T , class S >
array< T, 42 > Compare (const S *vec, const T *t)
 
template<typename T >
array< T, 42 > CompareBits (const FAD::EventHeader *h, const T *t)
 
template<typename T , size_t N>
void Update (DimDescribedService &svc, const array< T, N > &data, const Time &t=Time(), int n=N)
 
template<typename T >
void Print (const char *name, const pair< bool, array< T, 43 >> &data)
 
bool procHeader (const tuple< Time, bool, FAD::EventHeader > &dat)
 
void debugHead (const FAD::EventHeader &h)
 

Public Attributes

MessageImpfMsg
 
map< uint32_t, FAD::RunDescription > fExpectedRuns
 
mutex mtx_newrun
 
shared_ptr< DataProcessorImpfFile
 
Time fLastDimRawData
 
Time fLastDimEventData
 
array< FAD::EventHeader, 40 > fVecHeader
 
vector< uint > fNumConnected
 

Static Public Attributes

static EventBuilderWrapperThis = 0
 

Protected Member Functions

bool InitRunNumber (const string &path="")
 

Private Types

enum  { kCurrent = 0, kTotal = 1, kEventId = 2, kTriggerId = 3 }
 

Private Member Functions

struct EventBuilderWrapper::EventData __attribute__ ((__packed__))
 

Private Attributes

boost::thread fThreadMain
 
FAD::FileFormat_t fFileFormat
 
uint32_t fLastOpened
 
uint32_t fLastClosed
 
array< uint32_t, 4 > fNumEvts
 
DimWriteStatistics fDimWriteStats
 
DimDescribedService fDimRuns
 
DimDescribedService fDimEvents
 
DimDescribedService fDimTrigger
 
DimDescribedService fDimRawData
 
DimDescribedService fDimEventData
 
DimDescribedService fDimFeedbackData
 
DimDescribedService fDimFwVersion
 
DimDescribedService fDimRunNumber
 
DimDescribedService fDimStatus
 
DimDescribedService fDimDNA
 
DimDescribedService fDimTemperature
 
DimDescribedService fDimPrescaler
 
DimDescribedService fDimRefClock
 
DimDescribedService fDimRoi
 
DimDescribedService fDimDac
 
DimDescribedService fDimDrsRuns
 
DimDescribedService fDimDrsCalibration
 
DimDescribedService fDimStatistics1
 
DimDescribedService fDimFileFormat
 
DimDescribedService fDimIncomplete
 
Queue< pair< Time, GUI_STAT > > fQueueStatistics1
 
Queue< tuple< Time, bool, FAD::EventHeader > > fQueueProcHeader
 
Queue< pair< Time, array< uint32_t, 4 > > > fQueueEvents
 
Queue< tuple< Time, char, array< uint32_t, 8 > > > fQueueTrigger
 
Queue< pair< Time, array< uint16_t, 2 > > > fQueueRoi
 
Queue< vector< char > > fQueueRawData
 
Queue< tuple< Time, uint32_t, EventData > > fQueueEventData
 
Queue< tuple< Time, array< uint32_t, 40 >, array< int16_t, 160 > > > fQueueTempRefClk
 
string fPath
 
uint32_t fNightAsInt
 
uint32_t fRunNumber
 
int64_t fRunInProgress
 
array< uint16_t, 2 > fVecRoi
 
pair< float, EventDatafMaxEvent
 

Detailed Description

Definition at line 45 of file EventBuilderWrapper.h.


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