Data Structures | Typedefs | Enumerations | Functions

beamtime/cern-oct11/sorter/oct11-sorter.cxx File Reference

(r4864/r3084)

#include "dabc/logging.h"
#include "dabc/timing.h"
#include "dabc/ModuleSync.h"
#include "dabc/Port.h"
#include "dabc/Timer.h"
#include "dabc/Command.h"
#include "dabc/Manager.h"
#include "dabc/MemoryPool.h"
#include "dabc/PoolHandle.h"
#include "dabc/threads.h"
#include "dabc/Application.h"
#include "dabc/SocketDevice.h"
#include "dabc/statistic.h"
#include "dabc/TimeSyncModule.h"
#include "dabc/Factory.h"
#include "dabc/Configuration.h"
#include "mbs/MbsTypeDefs.h"
#include "mbs/Iterator.h"
#include <string>
#include <vector>
#include <map>
Include dependency graph for oct11-sorter.cxx:

Go to the source code of this file.

Data Structures

class  CernOct11SorterModule
class  CernOct11Factory

Typedefs

typedef std::map< uint32_t, int > SubeventsMap

Enumerations

enum  ERocMbsTypes {
  proc_RocEvent = 1, proc_ErrEvent = 2, proc_MergedEvent = 3, proc_RawData = 4,
  proc_Triglog = 5, proc_TRD_MADC = 6, proc_TRD_Spadic = 7, proc_CERN_Oct11 = 8,
  proc_SlaveMbs = 9, proc_EPICS = 10, proc_COSY_Nov11 = 11, proc_RocEvent = 1,
  proc_ErrEvent = 2, proc_MergedEvent = 3, proc_RawData = 4, proc_Triglog = 5,
  proc_TRD_MADC = 6, proc_TRD_Spadic = 7, proc_CERN_Oct11 = 8, proc_SlaveMbs = 9,
  proc_EPICS = 10, proc_COSY_Nov11 = 11, proc_SpadicV10Raw = 12, proc_SpadicV10Event = 13,
  proc_CERN_Oct12 = 14, proc_FASP = 15, proc_TRBEvent = 31
}

Functions

std::string GetHeaderInfo (uint32_t id)
int last_master (0)
int last_slave (0)
int last_mastertm (0)
int GetEventNumber (uint32_t id, void *dataptr, int datalen)
dabc::FactoryPlugin cernoct11 (new CernOct11Factory("cern-oct11"))
void RunSorter ()

Typedef Documentation

typedef std::map<uint32_t,int> SubeventsMap

Definition at line 99 of file oct11-sorter.cxx.


Enumeration Type Documentation

Enumerator:
proc_RocEvent 

complete event from one roc board (iSubcrate = rocid)

proc_ErrEvent 

one or several events with corrupted data inside (iSubcrate = rocid)

proc_MergedEvent 

sorted and synchronized data from several rocs (iSubcrate = upper rocid bits)

proc_RawData 

unsorted uncorrelated data from one ROC, no SYNC markers required (mainly for FEET case)

proc_Triglog 

subevent produced by MBS directly with sync number and trigger module scalers

proc_TRD_MADC 

subevent produced by MBS directly with CERN-Nov10 data

proc_TRD_Spadic 

collection of data from susibo board

proc_CERN_Oct11 

id for CERN beamtime in October 11

proc_SlaveMbs 

subevent produce by slave MBS system, which emulates number of triglog module

proc_EPICS 

subevent produced by dabc EPICS plugin (ezca)

proc_COSY_Nov11 

id for COSY beamtime in November 11

proc_RocEvent 

complete event from one roc board (iSubcrate = rocid)

proc_ErrEvent 

one or several events with corrupted data inside (iSubcrate = rocid)

proc_MergedEvent 

sorted and synchronized data from several rocs (iSubcrate = upper rocid bits)

proc_RawData 

unsorted uncorrelated data from one ROC, no SYNC markers required (mainly for FEET case)

proc_Triglog 

subevent produced by MBS directly with sync number and trigger module scalers

proc_TRD_MADC 

subevent produced by MBS directly with CERN-Nov10 data

proc_TRD_Spadic 

collection of data from susibo board

proc_CERN_Oct11 

id for CERN beamtime in October 11

proc_SlaveMbs 

subevent produce by slave MBS system, which emulates number of triglog module

proc_EPICS 

subevent produced by dabc EPICS plugin (ezca)

proc_COSY_Nov11 

id for COSY beamtime in November 11

proc_SpadicV10Raw 

raw data from single spadic V1.0 chip

proc_SpadicV10Event 

dabc-packed data for spadic V1.0 from SP605

proc_CERN_Oct12 

id for CERN beamtime in October 12

proc_FASP 

id for FASP data

proc_TRBEvent 

container for TRB frontend data

Definition at line 26 of file oct11-sorter.cxx.


Function Documentation

dabc::FactoryPlugin cernoct11 ( new   CernOct11Factory"cern-oct11"  ) 
int GetEventNumber ( uint32_t  id,
void *  dataptr,
int  datalen 
)
std::string GetHeaderInfo ( uint32_t  id  ) 
int last_master (  ) 
int last_mastertm (  ) 

Referenced by GetEventNumber().

int last_slave (  ) 
void RunSorter (  ) 

Definition at line 311 of file oct11-sorter.cxx.