Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
daqdataformats Namespace Reference

Class to hold the data from the FEBs in correct formats. More...

Namespaces

 CURRENT_FIELDS_SUB_NAMESPACE
 
 datablockheader
 
 microblock
 
 rawconfhdr
 
 rawconfname
 
 rawconftail
 
 rawdaqdataformat
 
 rawmicro
 
 rawruntail
 
 timmarker
 
 triggerheader
 
 triggermask
 
 triggertimingmarker
 
 VERSION_NAMESPACE
 

Classes

class  ConfigurationBlockUnitTest
 
class  ConfigurationHeaderUnitTest
 
class  ConfigurationNameUnitTest
 
class  ConfigurationSystemIDUnitTest
 
class  ConfigurationTailUnitTest
 
class  DataBlockConstructor
 
class  DataBlockHeaderUnitTest
 
class  DataBlockUnitTest
 
class  DataFormatException
 
class  DCMSimulator
 
class  EventConstructor
 
class  EventHeaderUnitTest
 
class  EventTailUnitTest
 
class  EventUnitTest
 
class  FEBSimulator
 
class  FEBVersioningRegisters
 Class describing the values of the FEB registers for the NanoSlice version. More...
 
class  MicroBlockHeaderUnitTest
 
class  MicroBlockUnitTest
 
class  MicroSliceConstructor
 
class  MicroSliceHeaderConstructor
 
class  MicroSliceHeaderUnitTest
 
class  MicroSliceUnitTest
 
class  MilliSliceConstructor
 
class  MilliSliceHeaderConstructor
 
class  MilliSliceHeaderUnitTest
 
class  MilliSliceUnitTest
 
struct  NanoSlice
 Data structure for holding all the nanoslice data of interest. More...
 
struct  NanoSliceHeader
 Data structure for holding all the nanoslice data of interest. More...
 
class  NanoSliceHeaderUnitTest
 
class  NanoSliceUnitTest
 
class  NanoSliceVersionConvention
 
class  NOvACheckSum
 
class  RawConfigurationBlock
 
class  RawConfigurationHeader
 
class  RawConfigurationName
 
class  RawConfigurationSystemID
 
class  RawConfigurationTail
 
class  RawDAQData
 
class  RawDAQDataConstructor
 
class  RawDAQDataUnitTest
 Base class for RawDAQData unittest. More...
 
class  RawDataBlock
 
class  RawDataBlockHeader
 
class  RawDCMChan
 
class  RawEvent
 
class  RawEventHeader
 
class  RawEventTail
 
class  RawMicroBlock
 
class  RawMicroBlockHeader
 
class  RawMicroSlice
 Class to hold the MicroSlice data. More...
 
class  RawMicroSliceHeader
 
class  RawMilliSlice
 
class  RawMilliSliceHeader
 
class  RawMilliSliceIndex
 
class  RawMilliSliceIndexHeader
 
class  RawNanoSlice
 
class  RawNanoSliceHeader
 
class  RawRunHeader
 
class  RawRunTail
 
class  RawSummaryDCMData
 
class  RawSummaryDCMDataHeader
 
class  RawSummaryDCMDataPoint
 
class  RawSummaryDroppedMicroblock
 
class  RawTimingMarker
 Class to hold the timing markers used in the construction of Microslices in the DCMs. More...
 
class  RawTrigger
 Class to hold the data from the global trigger in the correct format. More...
 
class  RawTriggerHeader
 
class  RawTriggerMask
 Class to hold the data corresponding to the trigger mask. More...
 
class  RawTriggerRange
 Class to hold the data from the global trigger range in the correct format. More...
 
class  RawTriggerTime
 Class to hold the data corresponding to the trigger mask. More...
 
class  RawTriggerTimingMarker
 Class that contains the timing information relating to a given trigger. More...
 
class  RunHeaderUnitTest
 
struct  TimingMarker
 Data structure to hold the parts of the timing word. More...
 
class  TimingMarkerConstructor
 
class  TimingMarkerUnitTest
 
class  TriggerConstructor
 
class  TriggerHeaderConstructor
 
class  TriggerHeaderUnitTest
 
class  TriggerMaskUnitTest
 
class  TriggerRangeConstructor
 
class  TriggerRangeUnitTest
 
class  TriggerTimeConstructor
 
class  TriggerTimeUnitTest
 
class  TriggerTimingMarkerConstructor
 
class  TriggerTimingMarkerUnitTest
 
class  TriggerUnitTest
 

Typedefs

typedef uint32_t link_id_t
 
typedef int32_t version_t
 

Enumerations

enum  Encode_Type { DCSENCODE_12_in_16 = 0x0, RAWENCODE_12_in_16 = 0x1, ENCODE_UNKNOWN = 0xFFFFF }
 All encoding types. More...
 
enum  readDataStatus { rds_error = -1, rds_incomplete, rds_complete }
 
enum  DCMDataPointType { DCMDataPointType_MissingDCM = 0, DCMDataPointType_MissingMicroslice = 1, DCMDataPointType_CorruptMicroslice = 2 }
 
enum  trigSource {
  TRIGSRC_BEAMSTAMP_SYSTEM =1, TRIGSRC_PULSER_SYSTEM =2, TRIGSRC_HARDWARE_PULSER_SYSTEM =3, TRIGSRC_BUFFNODE_SYSTEM =4,
  TRIGSRC_GT_SYSTEM =5, TRIGSRC_MANUAL =6, TRIGSRC_SIMULATED =7, TRIGSRC_SNEWS =8,
  TRIGSRC_LIGO =9, TRIGSRC_USERDEF_3 =10, TRIGSRC_USERDEF_4 =11, TRIGSRC_USERDEF_5 =12,
  TRIGSRC_USERDEF_6 =13, TRIGSRC_UNKNOWN = 14, TRIGSRC_DUMMY = 0xF, TRIGSRC_MAX = 0xF
}
 Trigger Source Enumeration. More...
 
enum  trigSourceID {
  TRIGSRC_ID_BEAMSTAMP_NUMI_1 = 1, TRIGSRC_ID_BEAMSTAMP_NUMI_2, TRIGSRC_ID_BEAMSTAMP_NDOS_1 = 10, TRIGSRC_ID_BEAMSTAMP_NDOS_2,
  TRIGSRC_ID_BEAMSTAMP_NDOS_3, TRIGSRC_ID_BEAMSTAMP_NDOS_4, TRIGSRC_ID_BEAMSTAMP_MINOS_1 = 20, TRIGSRC_ID_BEAMSTAMP_MINOS_2,
  TRIGSRC_ID_BEAMSTAMP_FEYNMAN_1 = 30, TRIGSRC_ID_BEAMSTAMP_FEYNMAN_2, TRIGSRC_ID_BEAMSTAMP_BOOSTER_1 = 40, TRIGSRC_ID_BEAMSTAMP_BOOSTER_2,
  TRIGSRC_ID_BEAMSTAMP_PPS = 50, TRIGSRC_ID_BEAMSTAMP_TESTBEAM = 60, TRIGSRC_ID_BEAMSTAMP_UNKNOWN = 98, TRIGSRC_ID_BEAMSTAMP_MAX = 99,
  TRIGSRC_ID_PULSER_P1 =200, TRIGSRC_ID_PULSER_P2, TRIGSRC_ID_PULSER_P3, TRIGSRC_ID_PULSER_P4,
  TRIGSRC_ID_PULSER_P5, TRIGSRC_ID_PULSER_P6, TRIGSRC_ID_PULSER_P7, TRIGSRC_ID_PULSER_P8,
  TRIGSRC_ID_PULSER_P9, TRIGSRC_ID_PULSER_P10, TRIGSRC_ID_PULSER_P11, TRIGSRC_ID_PULSER_P12,
  TRIGSRC_ID_PULSER_UNKNOWN = 298, TRIGSRC_ID_PULSER_MAX = 299, TRIGSRC_ID_GT_FAR = 300, TRIGSRC_ID_GT_NEAR,
  TRIGSRC_ID_GT_NDOS, TRIGSRC_ID_GT_TEST, TRIGSRC_ID_GT_TESTBEAM, TRIGSRC_ID_GT_UNKNOWN = 398,
  TRIGSRC_ID_GT_MAX = 399, TRIGSRC_ID_GT_DUMMY = 399, TRIGSRC_ID_SNEWS_BNL = 400, TRIGSRC_ID_SNEWS_MASTER = 400,
  TRIGSRC_ID_SNEWS_INFN = 401, TRIGSRC_ID_SNEWS_SECONDARY = 401, TRIGSRC_ID_LIGO_HANFORD = 500, TRIGSRC_ID_LIGO_MASTER = 500,
  TRIGSRC_ID_LIGO_LIVINGSTON = 501, TRIGSRC_ID_LIGO_SECONDARY = 501, TRIGSRC_ID_BUFFNODE_1 = 1000, TRIGSRC_ID_BUFFNODE_2,
  TRIGSRC_ID_BUFFNODE_3, TRIGSRC_ID_BUFFNODE_4, TRIGSRC_ID_BUFFNODE_5, TRIGSRC_ID_BUFFNODE_6,
  TRIGSRC_ID_BUFFNODE_7, TRIGSRC_ID_BUFFNODE_8, TRIGSRC_ID_BUFFNODE_9, TRIGSRC_ID_BUFFNODE_10,
  TRIGSRC_ID_BUFFNODE_11, TRIGSRC_ID_BUFFNODE_12, TRIGSRC_ID_BUFFNODE_13, TRIGSRC_ID_BUFFNODE_14,
  TRIGSRC_ID_BUFFNODE_15, TRIGSRC_ID_BUFFNODE_16, TRIGSRC_ID_BUFFNODE_17, TRIGSRC_ID_BUFFNODE_18,
  TRIGSRC_ID_BUFFNODE_19, TRIGSRC_ID_BUFFNODE_20, TRIGSRC_ID_BUFFNODE_UNKNOWN = 1998, TRIGSRC_ID_BUFFNODE_DUMMY = 1999,
  TRIGSRC_ID_BUFFNODE_MAX = 1999, TRIGSRC_ID_UNKNOWN = 0xFFFE, TRIGSRC_ID_DUMMY = 0xFFFF, TRIGSRC_ID_MAX = 0xFFFF
}
 
enum  trigSourceSubID {
  TRIGSRC_SUBID_TDU_01 = 1, TRIGSRC_SUBID_TDU_02, TRIGSRC_SUBID_TDU_03, TRIGSRC_SUBID_TDU_04,
  TRIGSRC_SUBID_TDU_05, TRIGSRC_SUBID_TDU_06, TRIGSRC_SUBID_TDU_07, TRIGSRC_SUBID_TDU_08,
  TRIGSRC_SUBID_PULSER_C1 =100, TRIGSRC_SUBID_PULSER_C2, TRIGSRC_SUBID_PULSER_C3, TRIGSRC_SUBID_PULSER_C4,
  TRIGSRC_SUBID_PULSER_C5, TRIGSRC_SUBID_PULSER_C6, TRIGSRC_SUBID_PULSER_C7, TRIGSRC_SUBID_PULSER_C8,
  TRIGSRC_SUBID_PARTITION_0 =200, TRIGSRC_SUBID_PARTITION_1, TRIGSRC_SUBID_PARTITION_2, TRIGSRC_SUBID_PARTITION_3,
  TRIGSRC_SUBID_PARTITION_4, TRIGSRC_SUBID_SNEWS_TRIG =300, TRIGSRC_SUBID_SNEWS_BEAT_SLOW, TRIGSRC_SUBID_SNEWS_BEAT_FAST,
  TRIGSRC_SUBID_LIGO_TRIG =400, TRIGSRC_SUBID_LIGO_BEAT_SLOW, TRIGSRC_SUBID_LIGO_BEAT_FAST, TRIGSRC_SUBID_OTHER_DETECTOR,
  TRIGSRC_SUBID_DUMMY = 0xFF
}
 
enum  trigClockSource {
  CLOCKSRC_GPS_FNAL_NUMI_1 = 1, CLOCKSRC_GPS_FNAL_NUMI_2, CLOCKSRC_GPS_FNAL_NUMI_3, CLOCKSRC_GPS_FNAL_NDOS_1 = 10,
  CLOCKSRC_GPS_FNAL_NDOS_2, CLOCKSRC_GPS_FNAL_NDOS_3, CLOCKSRC_GPS_FNAL_MINOS_1 = 20, CLOCKSRC_GPS_FNAL_MINOS_2,
  CLOCKSRC_GPS_FNAL_MINOS_3, CLOCKSRC_GPS_FNAL_FEYNMAN_1 = 30, CLOCKSRC_GPS_FNAL_FEYNMAN_2, CLOCKSRC_GPS_FNAL_BOOSTER_1 = 40,
  CLOCKSRC_GPS_FNAL_BOOSTER_2, CLOCKSRC_GPS_ASHRIVER_1 = 50, CLOCKSRC_GPS_ASHRIVER_2, CLOCKSRC_GPS_TESTBEAM_1 = 60,
  CLOCKSRC_GPS_TESTBEAM_2, CLOCKSRC_UNIX_PPC_FNAL_NUMI_1 = 1, CLOCKSRC_UNIX_PPC_FNAL_NUMI_2, CLOCKSRC_UNIX_PPC_FNAL_NUMI_3,
  CLOCKSRC_UNIX_PPC_FNAL_NDOS_1 = 10, CLOCKSRC_UNIX_PPC_FNAL_NDOS_2, CLOCKSRC_UNIX_PPC_FNAL_NDOS_3, CLOCKSRC_UNIX_PPC_FNAL_MINOS_1 = 20,
  CLOCKSRC_UNIX_PPC_FNAL_MINOS_2, CLOCKSRC_UNIX_PPC_FNAL_MINOS_3, CLOCKSRC_UNIX_PPC_FNAL_FEYNMAN_1 = 30, CLOCKSRC_UNIX_PPC_FNAL_FEYNMAN_2,
  CLOCKSRC_UNIX_PPC_FNAL_BOOSTER_1 = 40, CLOCKSRC_UNIX_PPC_FNAL_BOOSTER_2, CLOCKSRC_UNIX_X86_FNAL_GT_1 = 100, CLOCKSRC_UNIX_X86_FNAL_GT_2,
  CLOCKSRC_UNIX_X86_FNAL_GT_3, CLOCKSRC_UNIX_X86_ASHRIVER_GT_1 = 200, CLOCKSRC_UNIX_X86_ASHRIVER_GT_2, CLOCKSRC_UNIX_X86_FNAL_BUFFERFARM_1 = 1000,
  CLOCKSRC_UNIX_X86_FNAL_BUFFERFARM_2, CLOCKSRC_UNIX_X86_ASHRIVER_BUFFERFARM_1 = 2000, CLOCKSRC_UNIX_X86_ASHRIVER_BUFFERFARM_2, CLOCKSRC_UNKNOWN,
  CLOCKSRC_DUMMY = 0xFF, CLOCKSRC_MAX = 0xFF
}
 
enum  trigID {
  TRIG_ID_NULL = 0, TRIG_ID_BEAM_NUMI = 1, TRIG_ID_BEAM_BOONE = 2, TRIG_ID_SOFT_CAL_PER = 3,
  TRIG_ID_SOFT_CAL_RND = 4, TRIG_ID_SOFT_MANUAL = 5, TRIG_ID_BEAM_1PPS = 6, TRIG_ID_SOFT_STREAM_PER = 7,
  TRIG_ID_SOFT_STREAM_RND = 8, TRIG_ID_SOFT_DAQ_STATUS = 9, TRIG_ID_DATA_SN = 13, TRIG_ID_DATA_ENERGY = 14,
  TRIG_ID_DATA_CALMU = 15, TRIG_ID_DATA_UPMU = 16, TRIG_ID_DATA_NUMU = 17, TRIG_ID_DATA_NUE = 18,
  TRIG_ID_DATA_FASTMONO = 19, TRIG_ID_DATA_SLOWMONO = 20, TRIG_ID_DATA_FEBOVERFLOW = 21, TRIG_ID_DATA_ACTIVITY_1 = 22,
  TRIG_ID_DATA_ACTIVITY_2 = 23, TRIG_ID_SOFT_MONTECARLO = 24, TRIG_ID_SNEWS_TRIGGER = 25, TRIG_ID_SNEWS_BEAT_SLOW = 26,
  TRIG_ID_SNEWS_BEAT_FAST = 27, TRIG_ID_DATA_CONTAINED = 28, TRIG_ID_DATA_MOON = 29, TRIG_ID_DATA_SUN = 30,
  TRIG_ID_DATA_MICHEL = 31, TRIG_ID_DATA_SNXTRIG = 32, TRIG_ID_DATA_MICHEL_VAR2 = 33, TRIG_ID_DATA_MICHEL_VAR3 = 34,
  TRIG_ID_DATA_MICHEL_VAR4 = 35, TRIG_ID_DATA_MICHEL_TEST = 36, TRIG_ID_DATA_FASTMONONN = 37, TRIG_ID_DATA_FASTMONONN_VAR2 = 38,
  TRIG_ID_DATA_FASTMONONN_VAR3 = 39, TRIG_ID_DATA_FASTMONONN_TEST = 40, TRIG_ID_LIGO_TRIGGER = 41, TRIG_ID_LIGO_BEAT_SLOW = 42,
  TRIG_ID_LIGO_BEAT_FAST = 43, TRIG_ID_TESTBEAM_SPILL = 44, TRIG_ID_TESTBEAM_TRIGGERED = 45, TRIG_ID_DATA_NNBAR = 46,
  TRIG_ID_DATA_H_MU = 47, TRIG_ID_MAX = 88
}
 
enum  trigBitID {
  TRIG_BIT_NULL =0x00, TRIG_BIT_BEAM_NUMI =0x01, TRIG_BIT_BEAM_BOONE =0x02, TRIG_BIT_SOFT_CAL_PER =0x04,
  TRIG_BIT_SOFT_CAL_RND =0x08, TRIG_BIT_SOFT_MANUAL =0x10, TRIG_BIT_BEAM_1PPS =0x20, TRIG_BIT_SOFT_STREAM_PER =0x40,
  TRIG_BIT_SOFT_STREAM_RND =0x80, TRIG_BIT_SOFT_DAQ_STATUS =0x100, TRIG_BIT_SOFT_MONTECARLO =0x800000, TRIG_BIT_DATA_SN =0x001000,
  TRIG_BIT_DATA_ENERGY =0x002000, TRIG_BIT_DATA_CALMU =0x004000, TRIG_BIT_DATA_UPMU =0x008000, TRIG_BIT_DATA_NUMU =0x010000,
  TRIG_BIT_DATA_NUE =0x020000, TRIG_BIT_DATA_FASTMONO =0x040000, TRIG_BIT_DATA_SLOWMONO =0x080000, TRIG_BIT_DATA_FEBOVERFLOW =0x100000,
  TRIG_BIT_DATA_ACTIVITY_1 =0x200000, TRIG_BIT_DATA_ACTIVITY_2 =0x400000, TRIG_BIT_SNEWS_TRIGGER =0x00000001, TRIG_BIT_SNEWS_BEAT_SLOW =0x00000002,
  TRIG_BIT_SNEWS_BEAT_FAST =0x00000004, TRIG_BIT_DATA_CONTAINED =0x00000008, TRIG_BIT_DATA_MOON =0x00000010, TRIG_BIT_DATA_SUN =0x00000020,
  TRIG_BIT_DATA_MICHEL =0x00000040, TRIG_BIT_DATA_SNXTRIG =0x00000080, TRIG_BIT_DATA_MICHEL_VAR2 =0x00000100, TRIG_BIT_DATA_MICHEL_VAR3 =0x00000200,
  TRIG_BIT_DATA_MICHEL_VAR4 =0x00000400, TRIG_BIT_DATA_MICHEL_TEST =0x00000800, TRIG_BIT_DATA_FASTMONO_NN =0x00001000, TRIG_BIT_DATA_FASTMONO_NN_VAR2 =0x00002000,
  TRIG_BIT_DATA_FASTMONO_NN_VAR3 =0x00004000, TRIG_BIT_DATA_FASTMONO_NN_TEST =0x00008000, TRIG_BIT_LIGO_TRIGGER =0x00010000, TRIG_BIT_LIGO_BEAT_SLOW =0x00020000,
  TRIG_BIT_LIGO_BEAT_FAST =0x00040000, TRIG_BIT_TESTBEAM_SPILL =0x00080000, TRIG_BIT_TESTBEAM_TRIGGERED =0x00100000, TRIG_BIT_DATA_NNBAR =0x00200000,
  TRIG_BIT_DATA_H_MU =0x00400000, TRIG_BIT_MID24 =0x00800000, TRIG_BIT_MID25 =0x01000000, TRIG_BIT_MID26 =0x02000000,
  TRIG_BIT_MID27 =0x04000000, TRIG_BIT_MID28 =0x08000000, TRIG_BIT_MID29 =0x10000000, TRIG_BIT_MID30 =0x20000000,
  TRIG_BIT_MID31 =0x40000000, TRIG_BIT_MID32 =0x80000000
}
 
enum  MicroSliceHeaderTestValues { TEST_VALUE_DataPresent = 1, TEST_VALUE_ByteCount = 5 }
 
enum  DATAFORMAT_COMPARE_RESULTS { DATAFORMATS_ARE_DIFFERENT = 1, DATAFORMATS_ARE_THE_SAME, FIRST_CONTAINS_SECOND, SECOND_CONTAINS_FIRST }
 Enumeration of the two dataformat comparisson results. More...
 
enum  TriggerHeaderTestValues {
  TEST_VALUE_HWFlag = 1, TEST_VALUE_Source = 2, TEST_VALUE_SourceSubID = 3, TEST_VALUE_SourceID = 4,
  TEST_VALUE_TriggerNumberLow = 5, TEST_VALUE_TriggerNumberHigh = 6, TEST_VALUE_MasterTriggerNumberLow = 7, TEST_VALUE_MasterTriggerNumberHigh = 8
}
 
enum  TriggerRangeTestValues { TEST_VALUE_TriggerLength = 1256 }
 
enum  TriggerTimeTestValues {
  TEST_VALUE_TriggerTimeStampLow = 1256, TEST_VALUE_TriggerTimeStampHigh = 1257, TEST_VALUE_TriggerTimeStamp_sec = 1258, TEST_VALUE_TriggerTimeStamp_usec = 1259,
  TEST_VALUE_ClockSource = 126, TEST_VALUE_TriggerTimeStamp = 1261, TEST_VALUE_TriggerTimeStampTvUsec = 1262
}
 
enum  TriggerTimingMarkerTestValues {
  TEST_VALUE_TriggerStartLow_baseClock = 1256, TEST_VALUE_TriggerStartHigh_baseClock = 1257, TEST_VALUE_TriggerStartLow_833kHz = 1258, TEST_VALUE_TriggerStartHigh_833kHz = 1259,
  TEST_VALUE_TriggerStart_baseClock = 1260, TEST_VALUE_TriggerStart_833kHz = 1261
}
 

Functions

std::ostream & operator<< (std::ostream &os, const daqdataformats::RawDAQData &dataformat)
 operator << so that one can put print it into an output stream directly More...
 
uint32_t calculateShiftFromAGivenMask (const uint32_t mask)
 
version_t getTailVersion (const version_t event_version)
 Function to get the tail version from Event version. More...
 
uint32_t getTailSize (const version_t event_version)
 Function to get the tail size from Event version. More...
 
const char * getTriggerName (trigID triggerID)
 
const char * getTriggerNameFromMask (unsigned int trigmask)
 
const char * getTriggerShortName (trigID triggerID)
 
const char * getTriggerShortNameFromMask (unsigned int trigmask)
 
trigID DecodeTrigMask (unsigned int trigmask)
 
trigBitID EncodeTrigMask (trigID triggerID)
 
trigID DecodeTrigMask32 (unsigned int trigmask)
 
trigBitID EncodeTrigMask32 (trigID triggerID)
 
trigSourceSubID PartitionToSubID (int32_t)
 
int32_t SubIDtoPartition (trigSourceSubID)
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (ConfigurationBlockUnitTest,"DAQDataFormats")
 
 CPPUNIT_REGISTRY_ADD_TO_DEFAULT ("DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (ConfigurationHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (ConfigurationNameUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (ConfigurationSystemIDUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (ConfigurationTailUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (DataBlockHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (DataBlockUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (EventHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (EventTailUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (EventUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (MicroBlockHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (MicroBlockUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (MicroSliceHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (MicroSliceUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (MilliSliceHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (MilliSliceUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (NanoSliceHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (NanoSliceUnitTest,"DAQDataFormats")
 
std::string getNameForResults (const DATAFORMAT_COMPARE_RESULTS res)
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (RunHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TimingMarkerUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TriggerHeaderUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TriggerMaskUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TriggerRangeUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TriggerTimeUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TriggerTimingMarkerUnitTest,"DAQDataFormats")
 
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (TriggerUnitTest,"DAQDataFormats")
 

Variables

const float DEFAULT_HIT_PROBABILITY = 0.1
 
static const uint32_t DEFAULT_DATABLOCK_SIZE = 262144
 
static const uint32_t RAWDCMCHAN_SIZE = 1
 
static const uint32_t DEFAULT_EVENT_SIZE = 262144
 
static const uint32_t DEFAULT_MICROBLOCK_SIZE = 16385
 
static const uint32_t RAWMICROSLICEHEADER_SIZE = 1
 
static const uint32_t DEFAULT_MILLISLICE_SIZE = 262144
 
static const uint32_t DEFAULT_MILLISLICEINDEX_MAXIMUM_SIZE = 2000
 
static const uint32_t DEFAULT_DCMDATA_SIZE = 2
 
static const uint32_t RAWTIMINGMARKER_SIZE = 2
 
const char * trigIDStrings []
 
const char * trigIDShortStrings []
 
static NanoSliceVersionConventionfNanoSliceVersionConvention = NULL
 
const uint32_t TEST_VALUE_MonteCarloFlag = 1
 
const uint32_t TEST_VALUE_LowWord = 5
 
const uint32_t TEST_VALUE_HighWord = 8
 
const uint64_t TEST_VALUE_Time = 0xB00000000A0L
 
const uint32_t TEST_VALUE_SliceSize = 4
 
const uint32_t TEST_VALUE_Partition = 5
 
const uint32_t TEST_VALUE_DestBuffID = 6
 
const uint32_t TEST_VALUE_DiblockId = 7
 
const uint32_t TEST_VALUE_DCMId = 8
 
const uint32_t TEST_VALUE_DetId = 3
 
const uint32_t TEST_VALUE_GlobalDCMID = 9
 
const uint32_t TEST_VALUE_MilliSliceSEQ = 56
 
const uint32_t TEST_VALUE_TimeStartLow = 57
 
const uint32_t TEST_VALUE_TimeStartHigh = 58
 
const uint32_t TEST_VALUE_TimeLength = 59
 
const uint32_t TEST_VALUE_Complete = 1
 
const rawmillihdr::Mode_t TEST_VALUE_Mode = rawmillihdr::Mode_Discard_Empty_MicroSlices
 
const uint32_t TEST_VALUE_ConnectionInitialization = 1
 
const uint32_t TEST_VALUE_CloseConnection = 1
 
const uint32_t TEST_VALUE_CorruptData = 1
 
const uint32_t TEST_VALUE_MissingData = 1
 
const uint32_t TEST_VALUE_MicrosliceNumber = 60
 
const uint32_t TEST_VALUE_FrameSEQ = 42
 
const uint32_t TEST_VALUE_MilliSliceIndexNumber = 61
 
const uint32_t TEST_VALUE_MicroSliceTimeLength_usec = 31
 
const uint32_t TEST_VALUE_CRCCalculationUsed = 1
 
const uint32_t TEST_VALUE_MilliSliceIndexUsed = 1
 

Detailed Description

Class to hold the data from the FEBs in correct formats.

This header contains all of the enumerated data that specify the trigger types.

Class to hold the data from the global trigger header in the correct format.

The NOVA DAQDataFormats Library contains classes for all of the major data types that are produced by the data acquisition hardware and software chains.

DAQDataFormats.h should be included when ever be included whenever the programmer needs access to forward declarations of these objects (i.e. in other class headers)

For access to the individual class objects, it is safe to include both this library header, and the header for the object you need to access (i.e. include "DAQDataFormats.h" and include "RawNanoSlice.h"

anorm.nosp@m.an@f.nosp@m.nal.g.nosp@m.ov

The RawDAQData class is a virtual class definition that all the NOVA DAQ data format classes inherit from.

All RawDAQData class decendants must impliment:

A writeData method that writes the objects data in a packed format to a memory location.

A readData method that reads the objects data in a packed format from a memory location.

and

A sizeofdata method that returns the native size of the packed data object in 32bit words

The RawDCMChan class is for storing DCm ID information Currently, there is no versioning for this class

The RawMicroSlice class is designed to mimic the format of the data produced in the DCM by the DCM firmware

CAUTION!!!!!!!!!!! Right now the MicroSlice Header size is considered to be equal to 1 always! If you plan on changing it, could be a hassle. RawMicroSlice::setBufferSource uses 1 explisitly

CAUTION!!!!! It is assumes that MicroSlice header always has a size of 1 for all versions

The RawNanoSlice class is designed to mimic the format of the actual data block that the NOvA Front End6 Boards (FEBS) produce when they detect a signal above the zero suppression threshold.

The class supports general initialization with or with out data blocks as well as copyin style initialization for use with STL containers.

Pack and unpack methods for the data rely on two types of structured data blocks that are provided in association with the class.

The NanoSliceBlock structure breaks the raw data block out into its related high and low half words to give the headers, time stamps and pulseheight information

The NanoSliceHeader structure further breaks out the header blocks into the individual data information parts.

The RawTriggerHeader contains the basic information required to reconstruct where and how the trigger was generated.

The class supports general initialization with an internal or external data buffer as well as copyin style initialization for use with STL containers.

Typedef Documentation

typedef uint32_t daqdataformats::link_id_t

Definition at line 8 of file FEBSimulator.h.

typedef int32_t daqdataformats::version_t

Definition at line 72 of file RawDAQData.h.

Enumeration Type Documentation

Enumeration of the two dataformat comparisson results.

Enumerator
DATAFORMATS_ARE_DIFFERENT 
DATAFORMATS_ARE_THE_SAME 
FIRST_CONTAINS_SECOND 
SECOND_CONTAINS_FIRST 

Definition at line 98 of file RawDAQDataUnitTest.h.

All encoding types.

Enumerator
DCSENCODE_12_in_16 
RAWENCODE_12_in_16 
ENCODE_UNKNOWN 

Definition at line 27 of file NanoSliceVersionConvention.h.

Enumerator
rds_error 
rds_incomplete 
rds_complete 

Definition at line 74 of file RawDAQData.h.

Enumerator
TRIG_BIT_NULL 
TRIG_BIT_BEAM_NUMI 
TRIG_BIT_BEAM_BOONE 
TRIG_BIT_SOFT_CAL_PER 
TRIG_BIT_SOFT_CAL_RND 
TRIG_BIT_SOFT_MANUAL 
TRIG_BIT_BEAM_1PPS 
TRIG_BIT_SOFT_STREAM_PER 
TRIG_BIT_SOFT_STREAM_RND 
TRIG_BIT_SOFT_DAQ_STATUS 
TRIG_BIT_SOFT_MONTECARLO 
TRIG_BIT_DATA_SN 
TRIG_BIT_DATA_ENERGY 
TRIG_BIT_DATA_CALMU 
TRIG_BIT_DATA_UPMU 
TRIG_BIT_DATA_NUMU 
TRIG_BIT_DATA_NUE 
TRIG_BIT_DATA_FASTMONO 
TRIG_BIT_DATA_SLOWMONO 
TRIG_BIT_DATA_FEBOVERFLOW 
TRIG_BIT_DATA_ACTIVITY_1 
TRIG_BIT_DATA_ACTIVITY_2 
TRIG_BIT_SNEWS_TRIGGER 
TRIG_BIT_SNEWS_BEAT_SLOW 
TRIG_BIT_SNEWS_BEAT_FAST 
TRIG_BIT_DATA_CONTAINED 
TRIG_BIT_DATA_MOON 
TRIG_BIT_DATA_SUN 
TRIG_BIT_DATA_MICHEL 
TRIG_BIT_DATA_SNXTRIG 
TRIG_BIT_DATA_MICHEL_VAR2 
TRIG_BIT_DATA_MICHEL_VAR3 
TRIG_BIT_DATA_MICHEL_VAR4 
TRIG_BIT_DATA_MICHEL_TEST 
TRIG_BIT_DATA_FASTMONO_NN 
TRIG_BIT_DATA_FASTMONO_NN_VAR2 
TRIG_BIT_DATA_FASTMONO_NN_VAR3 
TRIG_BIT_DATA_FASTMONO_NN_TEST 
TRIG_BIT_LIGO_TRIGGER 
TRIG_BIT_LIGO_BEAT_SLOW 
TRIG_BIT_LIGO_BEAT_FAST 
TRIG_BIT_TESTBEAM_SPILL 
TRIG_BIT_TESTBEAM_TRIGGERED 
TRIG_BIT_DATA_NNBAR 
TRIG_BIT_DATA_H_MU 
TRIG_BIT_MID24 
TRIG_BIT_MID25 
TRIG_BIT_MID26 
TRIG_BIT_MID27 
TRIG_BIT_MID28 
TRIG_BIT_MID29 
TRIG_BIT_MID30 
TRIG_BIT_MID31 
TRIG_BIT_MID32 

Definition at line 312 of file TriggerDefines.h.

312  {
313  // Precomputed Trigger Masks
314  TRIG_BIT_NULL =0x00,
315  TRIG_BIT_BEAM_NUMI =0x01, // A NuMI beam trigger
316  TRIG_BIT_BEAM_BOONE =0x02, // A Booster beam trigger
317  TRIG_BIT_SOFT_CAL_PER =0x04, // A calibration periodic trigger
318  TRIG_BIT_SOFT_CAL_RND =0x08, // A calibration random trigger
319  TRIG_BIT_SOFT_MANUAL =0x10, // A manually issued trigger
320  TRIG_BIT_BEAM_1PPS =0x20, // An accelerator 1 pulse/sec trigger
321  TRIG_BIT_SOFT_STREAM_PER =0x40, // A streamer periodic trigger
322  TRIG_BIT_SOFT_STREAM_RND =0x80, // A streamer random trigger
323  TRIG_BIT_SOFT_DAQ_STATUS =0x100, // A DAQ status block trigger
324  TRIG_BIT_SOFT_MONTECARLO =0x800000, // A Montecarlo Trigger
325 
326  /***********************************************************************
327  * Data Driven Triggers, one for each algorithm. *
328  * There is also room in the "trigger mod" field in the trigger header *
329  * to encode further info, eg, what version of the algorithm *
330  ***********************************************************************/
331  TRIG_BIT_DATA_SN =0x001000, // a SN trigger
332  TRIG_BIT_DATA_ENERGY =0x002000, // big-energy events (brehms, air showers)
333  TRIG_BIT_DATA_CALMU =0x004000, // a calibration muon trigger
334  TRIG_BIT_DATA_UPMU =0x008000, // upgoing muon trigger
335  TRIG_BIT_DATA_NUMU =0x010000, // contained nu-induced muons
336  TRIG_BIT_DATA_NUE =0x020000, // electron showers
337  TRIG_BIT_DATA_FASTMONO =0x040000, // fast monopoles
338  TRIG_BIT_DATA_SLOWMONO =0x080000, // slow monopoles
339  TRIG_BIT_DATA_FEBOVERFLOW=0x100000, // FEB Overflow error trigger
340  TRIG_BIT_DATA_ACTIVITY_1 =0x200000, // Activity Trigger Variant 1 (Near Det)
341  TRIG_BIT_DATA_ACTIVITY_2 =0x400000, // Activity Trigger Variant 2 (Near Det)
342 
343  // warning: SNEWS Trigger on up uses mid word
344  TRIG_BIT_SNEWS_TRIGGER =0x00000001, // SNEWS Trigger, mid word
345  TRIG_BIT_SNEWS_BEAT_SLOW =0x00000002, // SNEWS Heart Beat Slow, mid word
346  TRIG_BIT_SNEWS_BEAT_FAST =0x00000004, // SNEWS Heart Beat Fast, mid word
347  TRIG_BIT_DATA_CONTAINED =0x00000008, // a contained vertex trigger, mid word
348  TRIG_BIT_DATA_MOON =0x00000010, // muon from near moon, mid word
349  TRIG_BIT_DATA_SUN =0x00000020, // muon from near sun, mid word
350  TRIG_BIT_DATA_MICHEL =0x00000040, // michel electron, mid word
351  TRIG_BIT_DATA_SNXTRIG =0x00000080, // The other detector has seen a SN
352  TRIG_BIT_DATA_MICHEL_VAR2 =0x00000100, // Michel electron trigger (production)
353  TRIG_BIT_DATA_MICHEL_VAR3 =0x00000200, // Michel electron trigger variant 2
354  TRIG_BIT_DATA_MICHEL_VAR4 =0x00000400, // Michel electron trigger variant 3
355  TRIG_BIT_DATA_MICHEL_TEST =0x00000800, // Michel electron test trigger (test)
356  TRIG_BIT_DATA_FASTMONO_NN =0x00001000, // Fast Monopole using Neural Network (production)
357  TRIG_BIT_DATA_FASTMONO_NN_VAR2 =0x00002000, // Fast Monopole using Neural Network Variant 2 (production)
358  TRIG_BIT_DATA_FASTMONO_NN_VAR3 =0x00004000, // Fast Monopole using Neural Network Variant 3 (production)
359  TRIG_BIT_DATA_FASTMONO_NN_TEST =0x00008000, // Fast Monopole test trigger using Neural Network (test)
360  TRIG_BIT_LIGO_TRIGGER =0x00010000, // LIGO Trigger, mid word
361  TRIG_BIT_LIGO_BEAT_SLOW =0x00020000, // LIGO Heart Beat Slow, mid word
362  TRIG_BIT_LIGO_BEAT_FAST =0x00040000, // LIGO Heart Beat Fast, mid word
363  TRIG_BIT_TESTBEAM_SPILL =0x00080000, // Testbeam whole spill
364  TRIG_BIT_TESTBEAM_TRIGGERED =0x00100000, // Testbeam triggered particle
365  TRIG_BIT_DATA_NNBAR =0x00200000, // N-Nbar oscillation trigger
366  TRIG_BIT_DATA_H_MU =0x00400000, // Horizontal muon trigger
367  TRIG_BIT_MID24 =0x00800000, // New Triggers
368  TRIG_BIT_MID25 =0x01000000, // New Triggers
369  TRIG_BIT_MID26 =0x02000000, // New Triggers
370  TRIG_BIT_MID27 =0x04000000, // New Triggers
371  TRIG_BIT_MID28 =0x08000000, // New Triggers
372  TRIG_BIT_MID29 =0x10000000, // New Triggers
373  TRIG_BIT_MID30 =0x20000000, // New Triggers
374  TRIG_BIT_MID31 =0x40000000, // New Triggers
375  TRIG_BIT_MID32 =0x80000000 // New Triggers
376 
377 
378  };
Enumerator
CLOCKSRC_GPS_FNAL_NUMI_1 
CLOCKSRC_GPS_FNAL_NUMI_2 
CLOCKSRC_GPS_FNAL_NUMI_3 
CLOCKSRC_GPS_FNAL_NDOS_1 
CLOCKSRC_GPS_FNAL_NDOS_2 
CLOCKSRC_GPS_FNAL_NDOS_3 
CLOCKSRC_GPS_FNAL_MINOS_1 
CLOCKSRC_GPS_FNAL_MINOS_2 
CLOCKSRC_GPS_FNAL_MINOS_3 
CLOCKSRC_GPS_FNAL_FEYNMAN_1 
CLOCKSRC_GPS_FNAL_FEYNMAN_2 
CLOCKSRC_GPS_FNAL_BOOSTER_1 
CLOCKSRC_GPS_FNAL_BOOSTER_2 
CLOCKSRC_GPS_ASHRIVER_1 
CLOCKSRC_GPS_ASHRIVER_2 
CLOCKSRC_GPS_TESTBEAM_1 
CLOCKSRC_GPS_TESTBEAM_2 
CLOCKSRC_UNIX_PPC_FNAL_NUMI_1 
CLOCKSRC_UNIX_PPC_FNAL_NUMI_2 
CLOCKSRC_UNIX_PPC_FNAL_NUMI_3 
CLOCKSRC_UNIX_PPC_FNAL_NDOS_1 
CLOCKSRC_UNIX_PPC_FNAL_NDOS_2 
CLOCKSRC_UNIX_PPC_FNAL_NDOS_3 
CLOCKSRC_UNIX_PPC_FNAL_MINOS_1 
CLOCKSRC_UNIX_PPC_FNAL_MINOS_2 
CLOCKSRC_UNIX_PPC_FNAL_MINOS_3 
CLOCKSRC_UNIX_PPC_FNAL_FEYNMAN_1 
CLOCKSRC_UNIX_PPC_FNAL_FEYNMAN_2 
CLOCKSRC_UNIX_PPC_FNAL_BOOSTER_1 
CLOCKSRC_UNIX_PPC_FNAL_BOOSTER_2 
CLOCKSRC_UNIX_X86_FNAL_GT_1 
CLOCKSRC_UNIX_X86_FNAL_GT_2 
CLOCKSRC_UNIX_X86_FNAL_GT_3 
CLOCKSRC_UNIX_X86_ASHRIVER_GT_1 
CLOCKSRC_UNIX_X86_ASHRIVER_GT_2 
CLOCKSRC_UNIX_X86_FNAL_BUFFERFARM_1 
CLOCKSRC_UNIX_X86_FNAL_BUFFERFARM_2 
CLOCKSRC_UNIX_X86_ASHRIVER_BUFFERFARM_1 
CLOCKSRC_UNIX_X86_ASHRIVER_BUFFERFARM_2 
CLOCKSRC_UNKNOWN 
CLOCKSRC_DUMMY 
CLOCKSRC_MAX 

Definition at line 185 of file TriggerDefines.h.

185  {
186  // These are the clock sources which caused the trigger
187  // This corresponds to the system which ISSUED the
188  // initial trigger (i.e. for beam spill triggers this
189  // is typically a TDU's clock, while for a software
190  // pulser this would be the Unix system clock)
191 
192  // GPS Based Clocks (Extend from 1-99)
196 
200 
204 
207 
210 
213 
216 
217  // Unix System Clocks
221 
225 
229 
232 
235 
239 
242 
245 
248 
250  CLOCKSRC_DUMMY = 0xFF,
251  CLOCKSRC_MAX = 0xFF
252  };
Enumerator
TEST_VALUE_TriggerLength 

Definition at line 30 of file TriggerRangeConstructor.h.

30  {
32  };// end of TriggerRangeMASKS
Enumerator
TEST_VALUE_TriggerTimeStampLow 
TEST_VALUE_TriggerTimeStampHigh 
TEST_VALUE_TriggerTimeStamp_sec 
TEST_VALUE_TriggerTimeStamp_usec 
TEST_VALUE_ClockSource 
TEST_VALUE_TriggerTimeStamp 
TEST_VALUE_TriggerTimeStampTvUsec 

Definition at line 30 of file TriggerTimeConstructor.h.

Enumerator
TRIG_ID_NULL 
TRIG_ID_BEAM_NUMI 
TRIG_ID_BEAM_BOONE 
TRIG_ID_SOFT_CAL_PER 
TRIG_ID_SOFT_CAL_RND 
TRIG_ID_SOFT_MANUAL 
TRIG_ID_BEAM_1PPS 
TRIG_ID_SOFT_STREAM_PER 
TRIG_ID_SOFT_STREAM_RND 
TRIG_ID_SOFT_DAQ_STATUS 
TRIG_ID_DATA_SN 
TRIG_ID_DATA_ENERGY 
TRIG_ID_DATA_CALMU 
TRIG_ID_DATA_UPMU 
TRIG_ID_DATA_NUMU 
TRIG_ID_DATA_NUE 
TRIG_ID_DATA_FASTMONO 
TRIG_ID_DATA_SLOWMONO 
TRIG_ID_DATA_FEBOVERFLOW 
TRIG_ID_DATA_ACTIVITY_1 
TRIG_ID_DATA_ACTIVITY_2 
TRIG_ID_SOFT_MONTECARLO 
TRIG_ID_SNEWS_TRIGGER 
TRIG_ID_SNEWS_BEAT_SLOW 
TRIG_ID_SNEWS_BEAT_FAST 
TRIG_ID_DATA_CONTAINED 
TRIG_ID_DATA_MOON 
TRIG_ID_DATA_SUN 
TRIG_ID_DATA_MICHEL 
TRIG_ID_DATA_SNXTRIG 
TRIG_ID_DATA_MICHEL_VAR2 
TRIG_ID_DATA_MICHEL_VAR3 
TRIG_ID_DATA_MICHEL_VAR4 
TRIG_ID_DATA_MICHEL_TEST 
TRIG_ID_DATA_FASTMONONN 
TRIG_ID_DATA_FASTMONONN_VAR2 
TRIG_ID_DATA_FASTMONONN_VAR3 
TRIG_ID_DATA_FASTMONONN_TEST 
TRIG_ID_LIGO_TRIGGER 
TRIG_ID_LIGO_BEAT_SLOW 
TRIG_ID_LIGO_BEAT_FAST 
TRIG_ID_TESTBEAM_SPILL 
TRIG_ID_TESTBEAM_TRIGGERED 
TRIG_ID_DATA_NNBAR 
TRIG_ID_DATA_H_MU 
TRIG_ID_MAX 

Definition at line 258 of file TriggerDefines.h.

258  {
259  TRIG_ID_NULL = 0,
260  TRIG_ID_BEAM_NUMI = 1,
261  TRIG_ID_BEAM_BOONE = 2,
265  TRIG_ID_BEAM_1PPS = 6,
269 
270  // Data Driven ones
271  TRIG_ID_DATA_SN = 13,
272  TRIG_ID_DATA_ENERGY = 14,
273  TRIG_ID_DATA_CALMU = 15,
274  TRIG_ID_DATA_UPMU = 16,
275  TRIG_ID_DATA_NUMU = 17,
276  TRIG_ID_DATA_NUE = 18,
279 
283 
285 
290  TRIG_ID_DATA_MOON = 29,
291  TRIG_ID_DATA_SUN = 30,
292  TRIG_ID_DATA_MICHEL = 31,
307  TRIG_ID_DATA_NNBAR = 46,
308  TRIG_ID_DATA_H_MU = 47,
309  TRIG_ID_MAX = 88
310  };

Trigger Source Enumeration.

Enumerator
TRIGSRC_BEAMSTAMP_SYSTEM 
TRIGSRC_PULSER_SYSTEM 
TRIGSRC_HARDWARE_PULSER_SYSTEM 
TRIGSRC_BUFFNODE_SYSTEM 
TRIGSRC_GT_SYSTEM 
TRIGSRC_MANUAL 
TRIGSRC_SIMULATED 
TRIGSRC_SNEWS 
TRIGSRC_LIGO 
TRIGSRC_USERDEF_3 
TRIGSRC_USERDEF_4 
TRIGSRC_USERDEF_5 
TRIGSRC_USERDEF_6 
TRIGSRC_UNKNOWN 
TRIGSRC_DUMMY 
TRIGSRC_MAX 

Definition at line 12 of file TriggerDefines.h.

12  {
13  // These are the source type that is issuing the trigger
14 
15  /*************************************************************************
16  * Standard Systems (these are predefined and guaranteed not to change *
17  *************************************************************************/
18  // Beam Time Stamp Systems (i.e. tdu master)
20  // Pulser System (Software)
22  // Pulser System (Hardware)
24  // Software Trigger from Buffer Nodes
26  // Trigger Originating from Global Trigger System (e.g. software pulser)
28  // Manual Triggering of the event
29  TRIGSRC_MANUAL =6,
30  // Simulated Event Play back trigger
32  // External SNEWS trigger
33  TRIGSRC_SNEWS =8,
34  // External LIGO trigger
35  TRIGSRC_LIGO =9,
36  /*************************************************************************
37  * User Defined Sources (these should be named when they are first used) *
38  *************************************************************************/
43  /*************************************************************************
44  * Catch all sources (if you don't have something defined yet) *
45  *************************************************************************/
46  // Unknown Source
47  TRIGSRC_UNKNOWN = 14,
48  // Dummy Source for testing
49  TRIGSRC_DUMMY = 0xF,
50  TRIGSRC_MAX = 0xF
51  };
Enumerator
TRIGSRC_ID_BEAMSTAMP_NUMI_1 
TRIGSRC_ID_BEAMSTAMP_NUMI_2 
TRIGSRC_ID_BEAMSTAMP_NDOS_1 
TRIGSRC_ID_BEAMSTAMP_NDOS_2 
TRIGSRC_ID_BEAMSTAMP_NDOS_3 
TRIGSRC_ID_BEAMSTAMP_NDOS_4 
TRIGSRC_ID_BEAMSTAMP_MINOS_1 
TRIGSRC_ID_BEAMSTAMP_MINOS_2 
TRIGSRC_ID_BEAMSTAMP_FEYNMAN_1 
TRIGSRC_ID_BEAMSTAMP_FEYNMAN_2 
TRIGSRC_ID_BEAMSTAMP_BOOSTER_1 
TRIGSRC_ID_BEAMSTAMP_BOOSTER_2 
TRIGSRC_ID_BEAMSTAMP_PPS 
TRIGSRC_ID_BEAMSTAMP_TESTBEAM 
TRIGSRC_ID_BEAMSTAMP_UNKNOWN 
TRIGSRC_ID_BEAMSTAMP_MAX 
TRIGSRC_ID_PULSER_P1 
TRIGSRC_ID_PULSER_P2 
TRIGSRC_ID_PULSER_P3 
TRIGSRC_ID_PULSER_P4 
TRIGSRC_ID_PULSER_P5 
TRIGSRC_ID_PULSER_P6 
TRIGSRC_ID_PULSER_P7 
TRIGSRC_ID_PULSER_P8 
TRIGSRC_ID_PULSER_P9 
TRIGSRC_ID_PULSER_P10 
TRIGSRC_ID_PULSER_P11 
TRIGSRC_ID_PULSER_P12 
TRIGSRC_ID_PULSER_UNKNOWN 
TRIGSRC_ID_PULSER_MAX 
TRIGSRC_ID_GT_FAR 
TRIGSRC_ID_GT_NEAR 
TRIGSRC_ID_GT_NDOS 
TRIGSRC_ID_GT_TEST 
TRIGSRC_ID_GT_TESTBEAM 
TRIGSRC_ID_GT_UNKNOWN 
TRIGSRC_ID_GT_MAX 
TRIGSRC_ID_GT_DUMMY 
TRIGSRC_ID_SNEWS_BNL 
TRIGSRC_ID_SNEWS_MASTER 
TRIGSRC_ID_SNEWS_INFN 
TRIGSRC_ID_SNEWS_SECONDARY 
TRIGSRC_ID_LIGO_HANFORD 
TRIGSRC_ID_LIGO_MASTER 
TRIGSRC_ID_LIGO_LIVINGSTON 
TRIGSRC_ID_LIGO_SECONDARY 
TRIGSRC_ID_BUFFNODE_1 
TRIGSRC_ID_BUFFNODE_2 
TRIGSRC_ID_BUFFNODE_3 
TRIGSRC_ID_BUFFNODE_4 
TRIGSRC_ID_BUFFNODE_5 
TRIGSRC_ID_BUFFNODE_6 
TRIGSRC_ID_BUFFNODE_7 
TRIGSRC_ID_BUFFNODE_8 
TRIGSRC_ID_BUFFNODE_9 
TRIGSRC_ID_BUFFNODE_10 
TRIGSRC_ID_BUFFNODE_11 
TRIGSRC_ID_BUFFNODE_12 
TRIGSRC_ID_BUFFNODE_13 
TRIGSRC_ID_BUFFNODE_14 
TRIGSRC_ID_BUFFNODE_15 
TRIGSRC_ID_BUFFNODE_16 
TRIGSRC_ID_BUFFNODE_17 
TRIGSRC_ID_BUFFNODE_18 
TRIGSRC_ID_BUFFNODE_19 
TRIGSRC_ID_BUFFNODE_20 
TRIGSRC_ID_BUFFNODE_UNKNOWN 
TRIGSRC_ID_BUFFNODE_DUMMY 
TRIGSRC_ID_BUFFNODE_MAX 
TRIGSRC_ID_UNKNOWN 
TRIGSRC_ID_DUMMY 
TRIGSRC_ID_MAX 

Definition at line 53 of file TriggerDefines.h.

53  {
54  // Beam Time Stamp Source (i.e. TDU Masters) by location
55  TRIGSRC_ID_BEAMSTAMP_NUMI_1 = 1, // Location: NuMI Cavern
56  TRIGSRC_ID_BEAMSTAMP_NUMI_2, // same, but from kNuMItclk instead of just kNuMI
57  TRIGSRC_ID_BEAMSTAMP_NDOS_1 = 10, // Location: Near Detector on the Surface Building
61  TRIGSRC_ID_BEAMSTAMP_MINOS_1 = 20, // Location: Minos Service Building
63  TRIGSRC_ID_BEAMSTAMP_FEYNMAN_1 = 30, // Location: FCC3
65  TRIGSRC_ID_BEAMSTAMP_BOOSTER_1 = 40, // Location: MI-12
66  TRIGSRC_ID_BEAMSTAMP_BOOSTER_2, // same, but from kBNBtclk instead of just kBNB
67  TRIGSRC_ID_BEAMSTAMP_PPS = 50, // from the accelerator PPS signal
68  TRIGSRC_ID_BEAMSTAMP_TESTBEAM = 60, // from the NOvA testbeam
70  TRIGSRC_ID_BEAMSTAMP_MAX = 99, // Maximum ID for a TDU source
71 
72  // Pulser Source Block
73  TRIGSRC_ID_PULSER_P1 =200, // cal_per
74  TRIGSRC_ID_PULSER_P2, // cal_rnd
75  TRIGSRC_ID_PULSER_P3, // stream_per
76  TRIGSRC_ID_PULSER_P4, // stream_rnd
87 
88  // Global Trigger Source Block
89  TRIGSRC_ID_GT_FAR = 300,
95  TRIGSRC_ID_GT_MAX = 399,
96  TRIGSRC_ID_GT_DUMMY = 399,
97 
98  // SNEWS Trigger Sources
101  TRIGSRC_ID_SNEWS_INFN = 401,
103 
104  // LIGO Trigger Sources
109 
110  // Buffer Node Sources
111  TRIGSRC_ID_BUFFNODE_1 = 1000,
134 
135  TRIGSRC_ID_UNKNOWN = 0xFFFE,
136  TRIGSRC_ID_DUMMY = 0xFFFF,
137  TRIGSRC_ID_MAX = 0xFFFF
138 
139  };
Enumerator
TRIGSRC_SUBID_TDU_01 
TRIGSRC_SUBID_TDU_02 
TRIGSRC_SUBID_TDU_03 
TRIGSRC_SUBID_TDU_04 
TRIGSRC_SUBID_TDU_05 
TRIGSRC_SUBID_TDU_06 
TRIGSRC_SUBID_TDU_07 
TRIGSRC_SUBID_TDU_08 
TRIGSRC_SUBID_PULSER_C1 
TRIGSRC_SUBID_PULSER_C2 
TRIGSRC_SUBID_PULSER_C3 
TRIGSRC_SUBID_PULSER_C4 
TRIGSRC_SUBID_PULSER_C5 
TRIGSRC_SUBID_PULSER_C6 
TRIGSRC_SUBID_PULSER_C7 
TRIGSRC_SUBID_PULSER_C8 
TRIGSRC_SUBID_PARTITION_0 
TRIGSRC_SUBID_PARTITION_1 
TRIGSRC_SUBID_PARTITION_2 
TRIGSRC_SUBID_PARTITION_3 
TRIGSRC_SUBID_PARTITION_4 
TRIGSRC_SUBID_SNEWS_TRIG 
TRIGSRC_SUBID_SNEWS_BEAT_SLOW 
TRIGSRC_SUBID_SNEWS_BEAT_FAST 
TRIGSRC_SUBID_LIGO_TRIG 
TRIGSRC_SUBID_LIGO_BEAT_SLOW 
TRIGSRC_SUBID_LIGO_BEAT_FAST 
TRIGSRC_SUBID_OTHER_DETECTOR 
TRIGSRC_SUBID_DUMMY 

Definition at line 141 of file TriggerDefines.h.

141  {
142  // These are the specific units or some other sub-ID name
143  // to fully enumerate a given source of a trigger
144  // these need not have unique values outside of their
145  // given source class (i.e. TDU-01 could have the same
146  // number as DCM-01 since both have different parent
147  // classes. The maximum value of this field is 0xFF.
156 
165 
171 
175 
179 
181 
182  TRIGSRC_SUBID_DUMMY = 0xFF
183  };

Function Documentation

uint32_t daqdataformats::calculateShiftFromAGivenMask ( const uint32_t  mask)

Method to calculate a shifts from a given mask. The method is private for DAQDataFormats. Used by calculateShiftsFromMasks(). This method should not be used by any DAQDataFormat

check that mask is not zero

find the number of first non-zero bit

check if the bit is non-zero

check that mask is not zero

find the number of first non-zero bit

check if the bit is non-zero

Definition at line 993 of file RawDAQData.cpp.

References x1.

993  {
994 
995  /// check that mask is not zero
996  if(mask == 0x0) return 0;
997 
998  /// find the number of first non-zero bit
999  uint32_t ibit = 0;
1000  for(; ibit < 32; ++ibit){
1001 
1002  /// check if the bit is non-zero
1003  if(mask & (0x1 << ibit)) return ibit;
1004 
1005  }// end of loop over bits
1006 
1007  return ibit;
1008 }// end of calculateShiftFromAGivenMask
Float_t x1[n_points_granero]
Definition: compare.C:5
daqdataformats::CPPUNIT_REGISTRY_ADD_TO_DEFAULT ( "DAQDataFormats"  )

Referenced by daqdataformats::MicroSliceUnitTest::loopedcheckShallowCopyConstructor(), daqdataformats::MilliSliceUnitTest::loopedcheckShallowCopyConstructor(), daqdataformats::MicroBlockUnitTest::loopedcheckShallowCopyConstructor(), RawMilliSliceTests::testCalculateCheckSumCorrupt(), daqdataformats::ConfigurationBlockUnitTest::~ConfigurationBlockUnitTest(), daqdataformats::ConfigurationHeaderUnitTest::~ConfigurationHeaderUnitTest(), daqdataformats::ConfigurationNameUnitTest::~ConfigurationNameUnitTest(), daqdataformats::ConfigurationSystemIDUnitTest::~ConfigurationSystemIDUnitTest(), daqdataformats::ConfigurationTailUnitTest::~ConfigurationTailUnitTest(), daqdataformats::DataBlockHeaderUnitTest::~DataBlockHeaderUnitTest(), daqdataformats::DataBlockUnitTest::~DataBlockUnitTest(), daqdataformats::EventHeaderUnitTest::~EventHeaderUnitTest(), daqdataformats::EventTailUnitTest::~EventTailUnitTest(), daqdataformats::EventUnitTest::~EventUnitTest(), daqdataformats::MicroBlockHeaderUnitTest::~MicroBlockHeaderUnitTest(), daqdataformats::MicroSliceHeaderUnitTest::~MicroSliceHeaderUnitTest(), daqdataformats::MilliSliceHeaderUnitTest::~MilliSliceHeaderUnitTest(), daqdataformats::NanoSliceHeaderUnitTest::~NanoSliceHeaderUnitTest(), daqdataformats::NanoSliceUnitTest::~NanoSliceUnitTest(), daqdataformats::RunHeaderUnitTest::~RunHeaderUnitTest(), daqdataformats::TimingMarkerUnitTest::~TimingMarkerUnitTest(), daqdataformats::TriggerHeaderUnitTest::~TriggerHeaderUnitTest(), daqdataformats::TriggerMaskUnitTest::~TriggerMaskUnitTest(), daqdataformats::TriggerRangeUnitTest::~TriggerRangeUnitTest(), daqdataformats::TriggerTimeUnitTest::~TriggerTimeUnitTest(), daqdataformats::TriggerTimingMarkerUnitTest::~TriggerTimingMarkerUnitTest(), and daqdataformats::TriggerUnitTest::~TriggerUnitTest().

daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( TimingMarkerUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( MicroSliceHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( ConfigurationNameUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( TriggerRangeUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( MicroBlockHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( ConfigurationSystemIDUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( ConfigurationTailUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( DataBlockUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( EventTailUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( TriggerMaskUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( TriggerTimingMarkerUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( TriggerHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( TriggerTimeUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( TriggerUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( EventUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( ConfigurationHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( NanoSliceHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( DataBlockHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( ConfigurationBlockUnitTest  ,
"DAQDataFormats"   
)

Referenced by daqdataformats::MicroSliceUnitTest::loopedcheckShallowCopyConstructor(), daqdataformats::MilliSliceUnitTest::loopedcheckShallowCopyConstructor(), daqdataformats::MicroBlockUnitTest::loopedcheckShallowCopyConstructor(), RawMilliSliceTests::testCalculateCheckSumCorrupt(), daqdataformats::ConfigurationBlockUnitTest::~ConfigurationBlockUnitTest(), daqdataformats::ConfigurationHeaderUnitTest::~ConfigurationHeaderUnitTest(), daqdataformats::ConfigurationNameUnitTest::~ConfigurationNameUnitTest(), daqdataformats::ConfigurationSystemIDUnitTest::~ConfigurationSystemIDUnitTest(), daqdataformats::ConfigurationTailUnitTest::~ConfigurationTailUnitTest(), daqdataformats::DataBlockHeaderUnitTest::~DataBlockHeaderUnitTest(), daqdataformats::DataBlockUnitTest::~DataBlockUnitTest(), daqdataformats::EventHeaderUnitTest::~EventHeaderUnitTest(), daqdataformats::EventTailUnitTest::~EventTailUnitTest(), daqdataformats::EventUnitTest::~EventUnitTest(), daqdataformats::MicroBlockHeaderUnitTest::~MicroBlockHeaderUnitTest(), daqdataformats::MicroSliceHeaderUnitTest::~MicroSliceHeaderUnitTest(), daqdataformats::MilliSliceHeaderUnitTest::~MilliSliceHeaderUnitTest(), daqdataformats::NanoSliceHeaderUnitTest::~NanoSliceHeaderUnitTest(), daqdataformats::NanoSliceUnitTest::~NanoSliceUnitTest(), daqdataformats::RunHeaderUnitTest::~RunHeaderUnitTest(), daqdataformats::TimingMarkerUnitTest::~TimingMarkerUnitTest(), daqdataformats::TriggerHeaderUnitTest::~TriggerHeaderUnitTest(), daqdataformats::TriggerMaskUnitTest::~TriggerMaskUnitTest(), daqdataformats::TriggerRangeUnitTest::~TriggerRangeUnitTest(), daqdataformats::TriggerTimeUnitTest::~TriggerTimeUnitTest(), daqdataformats::TriggerTimingMarkerUnitTest::~TriggerTimingMarkerUnitTest(), and daqdataformats::TriggerUnitTest::~TriggerUnitTest().

daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( MilliSliceHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( NanoSliceUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( EventHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( RunHeaderUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( MicroBlockUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( MicroSliceUnitTest  ,
"DAQDataFormats"   
)
daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION ( MilliSliceUnitTest  ,
"DAQDataFormats"   
)
trigID daqdataformats::DecodeTrigMask ( unsigned int  trigmask)
trigID daqdataformats::DecodeTrigMask32 ( unsigned int  t)

Decode a trigger masked based to a given trigger ID

Definition at line 242 of file TriggerDefines.cpp.

References MECModelEnuComparisons::i, TRIG_BIT_NULL, TRIG_ID_NULL, and x1.

Referenced by getTriggerNameFromMask(), and getTriggerShortNameFromMask().

242  {
243 
244  if( t == TRIG_BIT_NULL){return TRIG_ID_NULL;}
245 
246  // We only decode a 32bit word and return
247  // the lowest bit that was set
248  int i=0;
249  for(i=0; i<32; ++i){
250  if( t & (0x1 << i)){return (trigID)(i+1);}
251  }
252  return TRIG_ID_NULL;
253  }
Float_t x1[n_points_granero]
Definition: compare.C:5
trigBitID daqdataformats::EncodeTrigMask ( trigID  triggerID)
trigBitID daqdataformats::EncodeTrigMask32 ( trigID  t)

Encode a trigger masked based on a given trigger ID

Definition at line 223 of file TriggerDefines.cpp.

References MAX_TRIGGER_BITS, and TRIG_BIT_NULL.

223  {
224  if( t < 1){return TRIG_BIT_NULL;}
225  if( t > MAX_TRIGGER_BITS){return TRIG_BIT_NULL;}
226 
227  // We return only a 32bit mask for the trigger
228  // triggers > 32 are returned shifted down by 32/64 bits
229 
230  if( t < 33){
231  return (trigBitID)( 0x1 << (t-1));
232  }else{
233  return (trigBitID)( 0x1 << (t % 33));
234  }
235  return TRIG_BIT_NULL;
236  }
#define MAX_TRIGGER_BITS
std::string daqdataformats::getNameForResults ( const DATAFORMAT_COMPARE_RESULTS  res)

Definition at line 360 of file RawDAQDataUnitTest.cpp.

References DATAFORMATS_ARE_DIFFERENT, DATAFORMATS_ARE_THE_SAME, FIRST_CONTAINS_SECOND, and SECOND_CONTAINS_FIRST.

Referenced by daqdataformats::RawDAQDataUnitTest::compareDataFormats().

361 {
362  if (res == DATAFORMATS_ARE_DIFFERENT) return "\"Data Formats are Different\"";
363  else if(res == DATAFORMATS_ARE_THE_SAME) return "\"Data Formats are Same\"";
364  else if(res == FIRST_CONTAINS_SECOND) return "\"First Format Contains Second\"";
365  else if(res == SECOND_CONTAINS_FIRST) return "\"Second Format Contains First\"";
366  return "\"What the heck\"";
367 }
uint32_t daqdataformats::getTailSize ( const version_t  event_version)
inline

Function to get the tail size from Event version.

Definition at line 36 of file RawEvent.h.

References daqdataformats::rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION, getTailVersion(), and log_trawl::tail().

36  {
37  const version_t event_tail_version = getTailVersion(event_version);
38 
39  if(event_tail_version == rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION)
40  return 0;
41 
42  const RawEventTail tail(event_tail_version);
43  return tail.sizeofdata();
44  }
version_t getTailVersion(const version_t event_version)
Function to get the tail version from Event version.
Definition: RawEvent.h:25
int32_t version_t
Definition: RawDAQData.h:72
def tail(path, window=20)
Definition: log_trawl.py:24
static const version_t DAQDATAFORMAT_UNKNOWN_VERSION
Definition: RawDAQData.h:81
version_t daqdataformats::getTailVersion ( const version_t  event_version)
inline

Function to get the tail version from Event version.

Definition at line 25 of file RawEvent.h.

References daqdataformats::rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION, and submit_syst::header.

Referenced by daqdataformats::VERSION_NAMESPACE::RawEventHeader::getTailFilled(), getTailSize(), and daqdataformats::VERSION_NAMESPACE::RawEventHeader::init().

25  {
26 
29 
30  const RawEventHeader header(event_version);
31  return header.getTailVersion();
32  }
static const version_t DAQDATAFORMAT_UNKNOWN_VERSION
Definition: RawDAQData.h:81
const char * daqdataformats::getTriggerName ( trigID  triggerID)

Definition at line 196 of file TriggerDefines.cpp.

References MAX_TRIGGER_BITS.

Referenced by getTriggerNameFromMask().

196  {
197  if(t < 0){return "Invalid Trigger";}
198  if(t == 0){return "NULL Trigger";}
199  if(t > MAX_TRIGGER_BITS){return "Invalid Trigger";}
200  return trigIDStrings[t-1];
201  }
const char * trigIDStrings[]
#define MAX_TRIGGER_BITS
const char * daqdataformats::getTriggerNameFromMask ( unsigned int  trigmask)

Definition at line 203 of file TriggerDefines.cpp.

References DecodeTrigMask32(), and getTriggerName().

203  {
205  }
trigID DecodeTrigMask32(unsigned int trigmask)
const char * getTriggerName(trigID triggerID)
const char * daqdataformats::getTriggerShortName ( trigID  triggerID)

Definition at line 207 of file TriggerDefines.cpp.

References MAX_TRIGGER_BITS.

Referenced by getTriggerShortNameFromMask().

207  {
208  if(t < 0){return "Invalid Trigger";}
209  if(t == 0){return "NULL";}
210  if(t > MAX_TRIGGER_BITS){return "Invalid Trigger";}
211  return trigIDShortStrings[t-1];
212  }
#define MAX_TRIGGER_BITS
const char * trigIDShortStrings[]
const char * daqdataformats::getTriggerShortNameFromMask ( unsigned int  trigmask)

Definition at line 214 of file TriggerDefines.cpp.

References DecodeTrigMask32(), and getTriggerShortName().

214  {
216  }
trigID DecodeTrigMask32(unsigned int trigmask)
const char * getTriggerShortName(trigID triggerID)
std::ostream & daqdataformats::operator<< ( std::ostream &  os,
const daqdataformats::RawDAQData dataformat 
)

operator << so that one can put print it into an output stream directly

implement << operator

Definition at line 1012 of file RawDAQData.cpp.

References daqdataformats::RawDAQData::print().

1012  {
1013  //dataformat.printFromFunctionPointer(os);
1014  dataformat.print(os);
1015  return os;
1016 }// end of << operator
void print(std::ostream &os=std::cout) const
Method for printing the content of the Buffer.
Definition: RawDAQData.cpp:500
trigSourceSubID daqdataformats::PartitionToSubID ( int32_t  partition)

Map an integer partition number to an enum trigSourceSubID

Definition at line 259 of file TriggerDefines.cpp.

References TRIGSRC_SUBID_DUMMY, TRIGSRC_SUBID_PARTITION_0, TRIGSRC_SUBID_PARTITION_1, TRIGSRC_SUBID_PARTITION_2, TRIGSRC_SUBID_PARTITION_3, and TRIGSRC_SUBID_PARTITION_4.

260  {
261  switch(partition) {
262  case 0:
264  break;
265  case 1:
267  break;
268  case 2:
270  break;
271  case 3:
273  break;
274  case 4:
276  break;
277  default:
278  return TRIGSRC_SUBID_DUMMY;
279  }
280  }
int32_t daqdataformats::SubIDtoPartition ( trigSourceSubID  subid)

Map an enum trigSourceSubID to an integer partition

Definition at line 287 of file TriggerDefines.cpp.

References TRIGSRC_SUBID_PARTITION_0, TRIGSRC_SUBID_PARTITION_1, TRIGSRC_SUBID_PARTITION_2, TRIGSRC_SUBID_PARTITION_3, and TRIGSRC_SUBID_PARTITION_4.

288  {
289  switch(subid) {
291  return 0;
292  break;
294  return 1;
295  break;
297  return 2;
298  break;
300  return 3;
301  break;
303  return 4;
304  break;
305  default:
306  return -1;
307  }
308  }

Variable Documentation

const uint32_t daqdataformats::DEFAULT_DATABLOCK_SIZE = 262144
static

Definition at line 25 of file RawDataBlock.h.

const uint32_t daqdataformats::DEFAULT_DCMDATA_SIZE = 2
static
const uint32_t daqdataformats::DEFAULT_EVENT_SIZE = 262144
static

Definition at line 46 of file RawEvent.h.

const float daqdataformats::DEFAULT_HIT_PROBABILITY = 0.1
const uint32_t daqdataformats::DEFAULT_MICROBLOCK_SIZE = 16385
static

Definition at line 21 of file RawMicroBlock.h.

const uint32_t daqdataformats::DEFAULT_MILLISLICE_SIZE = 262144
static

Definition at line 11 of file RawMilliSlice.h.

const uint32_t daqdataformats::DEFAULT_MILLISLICEINDEX_MAXIMUM_SIZE = 2000
static

Definition at line 15 of file RawMilliSliceIndex.h.

NanoSliceVersionConvention* daqdataformats::fNanoSliceVersionConvention = NULL
static

Definition at line 20 of file RawNanoSliceV0.cpp.

const uint32_t daqdataformats::RAWDCMCHAN_SIZE = 1
static

Definition at line 20 of file RawDCMChan.h.

Referenced by daqdataformats::RawDCMChan::sizeofdata().

const uint32_t daqdataformats::RAWMICROSLICEHEADER_SIZE = 1
static
const uint32_t daqdataformats::RAWTIMINGMARKER_SIZE = 2
static
const uint32_t daqdataformats::TEST_VALUE_CloseConnection = 1

Definition at line 34 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_Complete = 1

Definition at line 31 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_ConnectionInitialization = 1

Definition at line 33 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_CorruptData = 1

Definition at line 35 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_CRCCalculationUsed = 1

Definition at line 42 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_DCMId = 8

Definition at line 24 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_DestBuffID = 6

Definition at line 22 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_DetId = 3

Definition at line 25 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_DiblockId = 7

Definition at line 23 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_FrameSEQ = 42

Definition at line 38 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_GlobalDCMID = 9

Definition at line 26 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_HighWord = 8

Definition at line 22 of file MicroSliceConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_LowWord = 5

Definition at line 21 of file MicroSliceConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_MicrosliceNumber = 60

Definition at line 37 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_MicroSliceTimeLength_usec = 31

Definition at line 40 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_MilliSliceIndexNumber = 61

Definition at line 39 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_MilliSliceIndexUsed = 1

Definition at line 43 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_MilliSliceSEQ = 56

Definition at line 27 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_MissingData = 1

Definition at line 36 of file MilliSliceHeaderConstructor.h.

const rawmillihdr::Mode_t daqdataformats::TEST_VALUE_Mode = rawmillihdr::Mode_Discard_Empty_MicroSlices

Definition at line 32 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_MonteCarloFlag = 1

Definition at line 20 of file MicroSliceConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_Partition = 5

Definition at line 21 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_SliceSize = 4

Definition at line 20 of file MilliSliceHeaderConstructor.h.

const uint64_t daqdataformats::TEST_VALUE_Time = 0xB00000000A0L

Definition at line 23 of file MicroSliceConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_TimeLength = 59

Definition at line 30 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_TimeStartHigh = 58

Definition at line 29 of file MilliSliceHeaderConstructor.h.

const uint32_t daqdataformats::TEST_VALUE_TimeStartLow = 57

Definition at line 28 of file MilliSliceHeaderConstructor.h.

const char * daqdataformats::trigIDShortStrings

Definition at line 103 of file TriggerDefines.cpp.

Referenced by evd::HeaderDrawer::Text().

const char * daqdataformats::trigIDStrings

Definition at line 9 of file TriggerDefines.cpp.

Referenced by ddt::DDTEva::analyze(), and evtsum::EventSummary::MakeOutput().