CMS 3D CMS Logo

Enumerations | Functions | Variables
evf::evtn Namespace Reference

Enumerations

enum  EvmRecordScheme { BST32_3BX = 34 * SLINK_WORD_SIZE, BST32_5BX = 48 * SLINK_WORD_SIZE, BST52_3BX = 37 * SLINK_WORD_SIZE, BST52_5BX = 51 * SLINK_WORD_SIZE }
 

Functions

bool daq_board_sense (const unsigned char *p)
 
bool evm_board_sense (const unsigned char *p, size_t size)
 
void evm_board_setformat (size_t size)
 
bool evm_tcs_board_sense (const unsigned char *p)
 
unsigned int get (const unsigned char *, bool)
 
unsigned int getevtyp (const unsigned char *)
 
unsigned int getfdlbx (const unsigned char *)
 
unsigned int getfdlpsc (const unsigned char *)
 
unsigned long long getfdlta1 (const unsigned char *)
 
unsigned long long getfdlta2 (const unsigned char *)
 
unsigned long long getfdlttr (const unsigned char *)
 
unsigned int getgpshigh (const unsigned char *)
 
unsigned int getgpslow (const unsigned char *)
 
unsigned int getlbn (const unsigned char *)
 
unsigned int getorbit (const unsigned char *)
 
bool gtpe_board_sense (const unsigned char *p)
 
unsigned int gtpe_get (const unsigned char *)
 
unsigned int gtpe_getbx (const unsigned char *)
 
unsigned int gtpe_getlbn (const unsigned char *)
 
unsigned int gtpe_getorbit (const unsigned char *)
 
edm::EventAuxiliary makeEventAuxiliary (const tcds::Raw_v1 *, unsigned int runNumber, unsigned int lumiSection, const edm::EventAuxiliary::ExperimentType &, const std::string &processGUID, bool verifyLumiSection)
 
unsigned int offset (bool)
 

Variables

const unsigned int DAQ_BOARDID_MASK = 0xffff0000
 
const unsigned int DAQ_BOARDID_OFFSET = 1
 
const unsigned int DAQ_BOARDID_SHIFT = 24
 
const unsigned int DAQ_BOARDID_VALUE = 0x11
 
const unsigned int DAQ_TOTTRG_OFFSET = 2
 
const unsigned int EVM_BOARDID_MASK = 0xffff0000
 
const unsigned int EVM_BOARDID_OFFSET = 1
 
const unsigned int EVM_BOARDID_SHIFT = 24
 
const unsigned int EVM_BOARDID_VALUE = 0x11
 
const unsigned int EVM_FDL_ALGOB1_OFFSET = 4
 
const unsigned int EVM_FDL_ALGOB2_OFFSET = 6
 
const unsigned int EVM_FDL_BCNRIN_OFFSET = 1
 
const unsigned int EVM_FDL_BLOCK = 7
 
const unsigned int EVM_FDL_PSCVSN_OFFSET = 11
 
const unsigned int EVM_FDL_TECTRG_OFFSET = 2
 
const unsigned int EVM_GTFE_BLOCK_V0000 = 6
 
const unsigned int EVM_GTFE_BLOCK_V0011 = 9
 
const unsigned int EVM_GTFE_BSTGPS_OFFSET = 4
 
const unsigned int EVM_TCS_BCNRIN_MASK = 0x00000fff
 
const unsigned int EVM_TCS_BLOCK = 5
 
const unsigned int EVM_TCS_BOARDID_MASK = 0xffff0000
 
const unsigned int EVM_TCS_BOARDID_OFFSET = 1
 
const unsigned int EVM_TCS_BOARDID_SHIFT = 16
 
const unsigned int EVM_TCS_BOARDID_VALUE = 0xcc07
 
const unsigned int EVM_TCS_EVNTYP_MASK = 0x00f00000
 
const unsigned int EVM_TCS_EVNTYP_SHIFT = 20
 
const unsigned int EVM_TCS_LSBLNR_MASK = 0x0000ffff
 
const unsigned int EVM_TCS_LSBLNR_OFFSET = 0
 
const unsigned int EVM_TCS_ORBTNR_OFFSET = 6
 
const unsigned int EVM_TCS_TRIGNR_OFFSET = 5
 
const unsigned int FED_HEADER_SIZE = SLINK_WORD_SIZE
 
const unsigned int FED_TRAILER_SIZE = SLINK_WORD_SIZE
 
const unsigned int GTPE_BCNRIN_MASK = 0x00000fff
 
const unsigned int GTPE_BCNRIN_OFFSET = 3
 
const unsigned int GTPE_BOARDID_MASK = 0x000000ff
 
const unsigned int GTPE_BOARDID_OFFSET = 16
 
const unsigned int GTPE_BOARDID_SHIFT = 0
 
const unsigned int GTPE_BOARDID_VALUE = 0x1
 
const unsigned int GTPE_ORBTNR_OFFSET = 18
 
const unsigned int GTPE_TRIGNR_OFFSET = 14
 
const unsigned int SLINK_HALFWORD_SIZE = 4
 
const unsigned int SLINK_WORD_SIZE = 8
 

Enumeration Type Documentation

Enumerator
BST32_3BX 
BST32_5BX 
BST52_3BX 
BST52_5BX 

Definition at line 23 of file GlobalEventNumber.h.

Function Documentation

bool evf::evtn::daq_board_sense ( const unsigned char *  p)

Definition at line 6 of file GlobalEventNumber.cc.

References DAQ_BOARDID_OFFSET, DAQ_BOARDID_SHIFT, DAQ_BOARDID_VALUE, FEDHeader::length, and SLINK_WORD_SIZE.

7  {
9  }
const unsigned int DAQ_BOARDID_SHIFT
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int DAQ_BOARDID_OFFSET
#define SLINK_WORD_SIZE
const unsigned int DAQ_BOARDID_VALUE
bool evf::evtn::evm_board_sense ( const unsigned char *  p,
size_t  size 
)

Definition at line 16 of file GlobalEventNumber.cc.

References BST32_3BX, BST32_5BX, BST52_3BX, BST52_5BX, EVM_BOARDID_OFFSET, EVM_BOARDID_SHIFT, EVM_BOARDID_VALUE, EVM_GTFE_BLOCK_V0000, EVM_GTFE_BLOCK_V0011, FEDHeader::length, and SLINK_WORD_SIZE.

Referenced by FedRawDataInputSource::fillFEDRawDataCollection(), and FRDStreamSource::setRunAndEventInfo().

17  {
18  switch(size){
19  case BST32_3BX:
20  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
21  EVM_FDL_NOBX = 3;
22  break;
23  case BST32_5BX:
24  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
25  EVM_FDL_NOBX = 5;
26  break;
27  case BST52_3BX:
28  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
29  EVM_FDL_NOBX = 3;
30  break;
31  case BST52_5BX:
32  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
33  EVM_FDL_NOBX = 5;
34  break;
35  default:
36  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
37  EVM_FDL_NOBX = 3;
38  }
39  return (*(const unsigned int*)(p + FEDHeader::length + EVM_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >> EVM_BOARDID_SHIFT) == EVM_BOARDID_VALUE;
40  }
size
Write out results.
const unsigned int EVM_GTFE_BLOCK_V0000
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int EVM_BOARDID_VALUE
#define SLINK_WORD_SIZE
const unsigned int EVM_GTFE_BLOCK_V0011
const unsigned int EVM_BOARDID_OFFSET
const unsigned int EVM_BOARDID_SHIFT
void evf::evtn::evm_board_setformat ( size_t  size)

Definition at line 50 of file GlobalEventNumber.cc.

References BST32_3BX, BST32_5BX, BST52_3BX, BST52_5BX, EVM_GTFE_BLOCK_V0000, and EVM_GTFE_BLOCK_V0011.

51  {
52  switch(size){
53  case BST32_3BX:
54  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
55  EVM_FDL_NOBX = 3;
56  break;
57  case BST32_5BX:
58  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
59  EVM_FDL_NOBX = 5;
60  break;
61  case BST52_3BX:
62  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
63  EVM_FDL_NOBX = 3;
64  break;
65  case BST52_5BX:
66  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
67  EVM_FDL_NOBX = 5;
68  break;
69  default:
70  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
71  EVM_FDL_NOBX = 3;
72  }
73  }
size
Write out results.
const unsigned int EVM_GTFE_BLOCK_V0000
const unsigned int EVM_GTFE_BLOCK_V0011
bool evf::evtn::evm_tcs_board_sense ( const unsigned char *  p)

Definition at line 42 of file GlobalEventNumber.cc.

References EVM_TCS_BOARDID_OFFSET, EVM_TCS_BOARDID_SHIFT, EVM_TCS_BOARDID_VALUE, FEDHeader::length, and SLINK_WORD_SIZE.

Referenced by get().

42  {
43  return (*(const unsigned int*)(p + FEDHeader::length +
44  (EVM_GTFE_BLOCK*2 + EVM_TCS_BOARDID_OFFSET)
45  * SLINK_WORD_SIZE / 2)
47 
48  }
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int EVM_TCS_BOARDID_VALUE
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BOARDID_SHIFT
const unsigned int EVM_TCS_BOARDID_OFFSET
unsigned int evf::evtn::get ( const unsigned char *  p,
bool  evm 
)

Definition at line 83 of file GlobalEventNumber.cc.

References evm_tcs_board_sense(), and offset().

Referenced by FedRawDataInputSource::fillFEDRawDataCollection(), and FRDStreamSource::setRunAndEventInfo().

84  {
85  if(evm && evm_tcs_board_sense(p))
86  return *(const unsigned int*)( p+offset(true));
87  else
88  return *(const unsigned int*)( p+offset(false)); // cover case of evm but invalid tcs info
89  }
bool evm_tcs_board_sense(const unsigned char *p)
unsigned int evf::evtn::getevtyp ( const unsigned char *  p)

Definition at line 115 of file GlobalEventNumber.cc.

References EVM_TCS_EVNTYP_MASK, EVM_TCS_EVNTYP_SHIFT, EVM_TCS_LSBLNR_OFFSET, FEDHeader::length, and SLINK_WORD_SIZE.

116  {
117  return (((*(const unsigned int*)( p+FEDHeader::length + (EVM_GTFE_BLOCK*2 + EVM_TCS_LSBLNR_OFFSET) * SLINK_WORD_SIZE / 2))
119  }
const unsigned int EVM_TCS_LSBLNR_OFFSET
static const uint32_t length
Definition: FEDHeader.h:54
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_EVNTYP_SHIFT
const unsigned int EVM_TCS_EVNTYP_MASK
unsigned int evf::evtn::getfdlbx ( const unsigned char *  p)

Definition at line 124 of file GlobalEventNumber.cc.

References EVM_FDL_BCNRIN_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BCNRIN_MASK, EVM_TCS_BLOCK, FEDHeader::length, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

125  {
126  return (*(const unsigned int*)( p+FEDHeader::length + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
127  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2) ) * SLINK_WORD_SIZE +
129  }
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_BCNRIN_OFFSET
const unsigned int EVM_TCS_BCNRIN_MASK
unsigned int evf::evtn::getfdlpsc ( const unsigned char *  p)

Definition at line 134 of file GlobalEventNumber.cc.

References EVM_FDL_BLOCK, EVM_FDL_PSCVSN_OFFSET, EVM_TCS_BLOCK, FEDHeader::length, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

135  {
136  return (*(const unsigned int*)( p+FEDHeader::length + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
137  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
139  }
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_PSCVSN_OFFSET
unsigned long long evf::evtn::getfdlta1 ( const unsigned char *  p)

Definition at line 146 of file GlobalEventNumber.cc.

References EVM_FDL_ALGOB1_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BLOCK, FEDHeader::length, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

147  {
148  return (*(const unsigned long long*)( p+FEDHeader::length + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
149  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
151  }
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_ALGOB1_OFFSET
unsigned long long evf::evtn::getfdlta2 ( const unsigned char *  p)

Definition at line 152 of file GlobalEventNumber.cc.

References EVM_FDL_ALGOB2_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BLOCK, FEDHeader::length, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

153  {
154  return (*(const unsigned long long*)( p+FEDHeader::length + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
155  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
157  }
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_ALGOB2_OFFSET
unsigned long long evf::evtn::getfdlttr ( const unsigned char *  p)

Definition at line 140 of file GlobalEventNumber.cc.

References EVM_FDL_BLOCK, EVM_FDL_TECTRG_OFFSET, EVM_TCS_BLOCK, FEDHeader::length, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

141  {
142  return (*(const unsigned long long*)( p+FEDHeader::length + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
143  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
145  }
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_TECTRG_OFFSET
unsigned int evf::evtn::getgpshigh ( const unsigned char *  p)

Definition at line 107 of file GlobalEventNumber.cc.

References EVM_GTFE_BSTGPS_OFFSET, FEDHeader::length, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

Referenced by FedRawDataInputSource::fillFEDRawDataCollection(), and FRDStreamSource::setRunAndEventInfo().

108  {
109  return (*(const unsigned int*)( p+FEDHeader::length + EVM_GTFE_BSTGPS_OFFSET * SLINK_WORD_SIZE / 2 + SLINK_HALFWORD_SIZE));
110  }
static const uint32_t length
Definition: FEDHeader.h:54
const unsigned int SLINK_HALFWORD_SIZE
#define SLINK_WORD_SIZE
const unsigned int EVM_GTFE_BSTGPS_OFFSET
unsigned int evf::evtn::getgpslow ( const unsigned char *  p)

Definition at line 103 of file GlobalEventNumber.cc.

References EVM_GTFE_BSTGPS_OFFSET, FEDHeader::length, and SLINK_WORD_SIZE.

Referenced by FedRawDataInputSource::fillFEDRawDataCollection(), and FRDStreamSource::setRunAndEventInfo().

104  {
105  return (*(const unsigned int*)( p+FEDHeader::length + EVM_GTFE_BSTGPS_OFFSET * SLINK_WORD_SIZE / 2));
106  }
static const uint32_t length
Definition: FEDHeader.h:54
#define SLINK_WORD_SIZE
const unsigned int EVM_GTFE_BSTGPS_OFFSET
unsigned int evf::evtn::getlbn ( const unsigned char *  p)

Definition at line 94 of file GlobalEventNumber.cc.

References EVM_TCS_LSBLNR_MASK, EVM_TCS_LSBLNR_OFFSET, FEDHeader::length, and SLINK_WORD_SIZE.

95  {
96  return (*(const unsigned int*)( p+FEDHeader::length + (EVM_GTFE_BLOCK*2 + EVM_TCS_LSBLNR_OFFSET) * SLINK_WORD_SIZE / 2))
98  }
const unsigned int EVM_TCS_LSBLNR_OFFSET
static const uint32_t length
Definition: FEDHeader.h:54
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_LSBLNR_MASK
unsigned int evf::evtn::getorbit ( const unsigned char *  p)

Definition at line 111 of file GlobalEventNumber.cc.

References EVM_TCS_ORBTNR_OFFSET, FEDHeader::length, and SLINK_WORD_SIZE.

112  {
113  return (*(const unsigned int*)( p+FEDHeader::length + (EVM_GTFE_BLOCK*2 + EVM_TCS_ORBTNR_OFFSET) * SLINK_WORD_SIZE / 2));
114  }
static const uint32_t length
Definition: FEDHeader.h:54
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_ORBTNR_OFFSET
bool evf::evtn::gtpe_board_sense ( const unsigned char *  p)

Definition at line 11 of file GlobalEventNumber.cc.

References GTPE_BOARDID_OFFSET, GTPE_BOARDID_SHIFT, and SLINK_WORD_SIZE.

Referenced by FedRawDataInputSource::fillFEDRawDataCollection(), and FRDStreamSource::setRunAndEventInfo().

12  {
13  return (*(unsigned int*)(p + GTPE_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >> GTPE_BOARDID_SHIFT) != 0;
14  }
const unsigned int GTPE_BOARDID_OFFSET
#define SLINK_WORD_SIZE
const unsigned int GTPE_BOARDID_SHIFT
unsigned int evf::evtn::gtpe_get ( const unsigned char *  p)

Definition at line 90 of file GlobalEventNumber.cc.

References GTPE_TRIGNR_OFFSET, and SLINK_HALFWORD_SIZE.

Referenced by FedRawDataInputSource::fillFEDRawDataCollection(), and FRDStreamSource::setRunAndEventInfo().

91  {
92  return *(const unsigned int*)( p + GTPE_TRIGNR_OFFSET*SLINK_HALFWORD_SIZE );
93  }
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int GTPE_TRIGNR_OFFSET
unsigned int evf::evtn::gtpe_getbx ( const unsigned char *  p)

Definition at line 130 of file GlobalEventNumber.cc.

References GTPE_BCNRIN_MASK, GTPE_BCNRIN_OFFSET, and SLINK_HALFWORD_SIZE.

131  {
132  return (*(const unsigned int*)( p + GTPE_BCNRIN_OFFSET * SLINK_HALFWORD_SIZE)) & GTPE_BCNRIN_MASK;
133  }
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int GTPE_BCNRIN_MASK
const unsigned int GTPE_BCNRIN_OFFSET
unsigned int evf::evtn::gtpe_getlbn ( const unsigned char *  p)

Definition at line 99 of file GlobalEventNumber.cc.

References gtpe_getorbit().

100  {
101  return gtpe_getorbit(p)/0x00100000;
102  }
unsigned int gtpe_getorbit(const unsigned char *)
unsigned int evf::evtn::gtpe_getorbit ( const unsigned char *  p)

Definition at line 120 of file GlobalEventNumber.cc.

References GTPE_ORBTNR_OFFSET, and SLINK_HALFWORD_SIZE.

Referenced by gtpe_getlbn().

121  {
122  return (*(const unsigned int*)( p + GTPE_ORBTNR_OFFSET * SLINK_HALFWORD_SIZE));
123  }
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int GTPE_ORBTNR_OFFSET
edm::EventAuxiliary evf::evtn::makeEventAuxiliary ( const tcds::Raw_v1 tcds,
unsigned int  runNumber,
unsigned int  lumiSection,
const edm::EventAuxiliary::ExperimentType eventType,
const std::string &  processGUID,
bool  verifyLumiSection 
)

Definition at line 9 of file AuxiliaryMakers.cc.

References tcds::Raw_v1::bst, tcds::Header_v1::bxid, tcds::Header_v1::eventNumber, tcds::BST_v1::gpstimehigh, tcds::BST_v1::gpstimelow, tcds::Raw_v1::header, tcds::BST_v1::lhcFillHigh, tcds::BST_v1::lhcFillLow, tcds::Header_v1::lumiSection, tcds::Header_v1::orbitHigh, tcds::Header_v1::orbitLow, and protons_cff::time.

Referenced by FedRawDataInputSource::read().

14  {
15  edm::EventID eventId(runNumber, // check that runnumber from record is consistent
16  lumiSection,
17  tcds->header.eventNumber);
18 
19  edm::TimeValue_t time = static_cast<edm::TimeValue_t>(((uint64_t)tcds->bst.gpstimehigh << 32) | tcds->bst.gpstimelow);
20  if (time == 0) {
21  timeval stv;
22  gettimeofday(&stv,nullptr);
23  time = stv.tv_sec;
24  time = (time << 32) + stv.tv_usec;
25  }
26 
27  const uint64_t orbitnr = ((uint64_t)tcds->header.orbitHigh << 16) | tcds->header.orbitLow;
28  const uint32_t recordLumiSection = tcds->header.lumiSection;
29 
30  if (verifyLumiSection && recordLumiSection != lumiSection)
31  edm::LogWarning("AuxiliaryMakers") << "Lumisection mismatch, external : " << lumiSection << ", record : " << recordLumiSection;
32  if ((orbitnr >> 18) + 1 != recordLumiSection)
33  edm::LogWarning("AuxiliaryMakers") << "Lumisection and orbit number mismatch, LS : " << lumiSection << ", LS from orbit: " << ((orbitnr >> 18) + 1) << ", orbit:" << orbitnr;
34 
35  return edm::EventAuxiliary(eventId,
36  processGUID,
37  edm::Timestamp(time),
38  true,
39  eventType,
40  (int)tcds->header.bxid,
41  ((uint32_t)(tcds->bst.lhcFillHigh)<<16)|tcds->bst.lhcFillLow,
42  (int)(orbitnr&0x7fffffffU));//framework supports only 32-bit signed
43  }
const uint16_t orbitLow
Definition: TCDSRaw.h:50
const uint32_t lumiSection
Definition: TCDSRaw.h:44
const uint16_t bxid
Definition: TCDSRaw.h:49
const uint64_t eventNumber
Definition: TCDSRaw.h:53
const uint32_t orbitHigh
Definition: TCDSRaw.h:51
const struct BST_v1 bst
Definition: TCDSRaw.h:118
unsigned long long TimeValue_t
Definition: Timestamp.h:28
unsigned long long uint64_t
Definition: Time.h:15
const uint16_t lhcFillLow
Definition: TCDSRaw.h:84
const uint32_t gpstimelow
Definition: TCDSRaw.h:77
const uint32_t gpstimehigh
Definition: TCDSRaw.h:78
const struct Header_v1 header
Definition: TCDSRaw.h:116
const uint16_t lhcFillHigh
Definition: TCDSRaw.h:85
unsigned int evf::evtn::offset ( bool  evm)

Definition at line 76 of file GlobalEventNumber.cc.

References DAQ_TOTTRG_OFFSET, EVM_TCS_TRIGNR_OFFSET, FEDHeader::length, and SLINK_WORD_SIZE.

Referenced by get().

77  {
78  if(evm)
79  return FEDHeader::length + (EVM_GTFE_BLOCK*2 + EVM_TCS_TRIGNR_OFFSET) * SLINK_WORD_SIZE / 2;
80  else
82  }
const unsigned int EVM_TCS_TRIGNR_OFFSET
const unsigned int DAQ_TOTTRG_OFFSET
static const uint32_t length
Definition: FEDHeader.h:54
#define SLINK_WORD_SIZE

Variable Documentation

const unsigned int evf::evtn::DAQ_BOARDID_MASK = 0xffff0000

Definition at line 19 of file GlobalEventNumber.h.

const unsigned int evf::evtn::DAQ_BOARDID_OFFSET = 1

Definition at line 18 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

const unsigned int evf::evtn::DAQ_BOARDID_SHIFT = 24

Definition at line 20 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

const unsigned int evf::evtn::DAQ_BOARDID_VALUE = 0x11

Definition at line 21 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

const unsigned int evf::evtn::DAQ_TOTTRG_OFFSET = 2

Definition at line 17 of file GlobalEventNumber.h.

Referenced by offset().

const unsigned int evf::evtn::EVM_BOARDID_MASK = 0xffff0000

Definition at line 31 of file GlobalEventNumber.h.

const unsigned int evf::evtn::EVM_BOARDID_OFFSET = 1

Definition at line 30 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and DaqFakeReader::fillGTPFED().

const unsigned int evf::evtn::EVM_BOARDID_SHIFT = 24

Definition at line 32 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and DaqFakeReader::fillGTPFED().

const unsigned int evf::evtn::EVM_BOARDID_VALUE = 0x11

Definition at line 33 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and DaqFakeReader::fillGTPFED().

const unsigned int evf::evtn::EVM_FDL_ALGOB1_OFFSET = 4

Definition at line 55 of file GlobalEventNumber.h.

Referenced by getfdlta1().

const unsigned int evf::evtn::EVM_FDL_ALGOB2_OFFSET = 6

Definition at line 56 of file GlobalEventNumber.h.

Referenced by getfdlta2().

const unsigned int evf::evtn::EVM_FDL_BCNRIN_OFFSET = 1

Definition at line 53 of file GlobalEventNumber.h.

Referenced by getfdlbx().

const unsigned int evf::evtn::EVM_FDL_BLOCK = 7

Definition at line 52 of file GlobalEventNumber.h.

Referenced by getfdlbx(), getfdlpsc(), getfdlta1(), getfdlta2(), and getfdlttr().

const unsigned int evf::evtn::EVM_FDL_PSCVSN_OFFSET = 11

Definition at line 57 of file GlobalEventNumber.h.

Referenced by getfdlpsc().

const unsigned int evf::evtn::EVM_FDL_TECTRG_OFFSET = 2

Definition at line 54 of file GlobalEventNumber.h.

Referenced by getfdlttr().

const unsigned int evf::evtn::EVM_GTFE_BLOCK_V0000 = 6

Definition at line 35 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and evm_board_setformat().

const unsigned int evf::evtn::EVM_GTFE_BLOCK_V0011 = 9

Definition at line 36 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and evm_board_setformat().

const unsigned int evf::evtn::EVM_GTFE_BSTGPS_OFFSET = 4

Definition at line 37 of file GlobalEventNumber.h.

Referenced by DaqFakeReader::fillGTPFED(), getgpshigh(), and getgpslow().

const unsigned int evf::evtn::EVM_TCS_BCNRIN_MASK = 0x00000fff

Definition at line 50 of file GlobalEventNumber.h.

Referenced by getfdlbx().

const unsigned int evf::evtn::EVM_TCS_BLOCK = 5

Definition at line 40 of file GlobalEventNumber.h.

Referenced by getfdlbx(), getfdlpsc(), getfdlta1(), getfdlta2(), and getfdlttr().

const unsigned int evf::evtn::EVM_TCS_BOARDID_MASK = 0xffff0000

Definition at line 46 of file GlobalEventNumber.h.

const unsigned int evf::evtn::EVM_TCS_BOARDID_OFFSET = 1

Definition at line 43 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

const unsigned int evf::evtn::EVM_TCS_BOARDID_SHIFT = 16

Definition at line 47 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

const unsigned int evf::evtn::EVM_TCS_BOARDID_VALUE = 0xcc07

Definition at line 39 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

const unsigned int evf::evtn::EVM_TCS_EVNTYP_MASK = 0x00f00000

Definition at line 48 of file GlobalEventNumber.h.

Referenced by getevtyp().

const unsigned int evf::evtn::EVM_TCS_EVNTYP_SHIFT = 20

Definition at line 49 of file GlobalEventNumber.h.

Referenced by getevtyp().

const unsigned int evf::evtn::EVM_TCS_LSBLNR_MASK = 0x0000ffff

Definition at line 45 of file GlobalEventNumber.h.

Referenced by getlbn().

const unsigned int evf::evtn::EVM_TCS_LSBLNR_OFFSET = 0

Definition at line 42 of file GlobalEventNumber.h.

Referenced by getevtyp(), and getlbn().

const unsigned int evf::evtn::EVM_TCS_ORBTNR_OFFSET = 6

Definition at line 44 of file GlobalEventNumber.h.

Referenced by getorbit().

const unsigned int evf::evtn::EVM_TCS_TRIGNR_OFFSET = 5

Definition at line 41 of file GlobalEventNumber.h.

Referenced by DaqFakeReader::fillGTPFED(), and offset().

const unsigned int evf::evtn::FED_HEADER_SIZE = SLINK_WORD_SIZE

Definition at line 14 of file GlobalEventNumber.h.

const unsigned int evf::evtn::FED_TRAILER_SIZE = SLINK_WORD_SIZE

Definition at line 15 of file GlobalEventNumber.h.

const unsigned int evf::evtn::GTPE_BCNRIN_MASK = 0x00000fff

Definition at line 68 of file GlobalEventNumber.h.

Referenced by gtpe_getbx().

const unsigned int evf::evtn::GTPE_BCNRIN_OFFSET = 3

Definition at line 67 of file GlobalEventNumber.h.

Referenced by gtpe_getbx().

const unsigned int evf::evtn::GTPE_BOARDID_MASK = 0x000000ff

Definition at line 62 of file GlobalEventNumber.h.

const unsigned int evf::evtn::GTPE_BOARDID_OFFSET = 16

Definition at line 61 of file GlobalEventNumber.h.

Referenced by gtpe_board_sense().

const unsigned int evf::evtn::GTPE_BOARDID_SHIFT = 0

Definition at line 63 of file GlobalEventNumber.h.

Referenced by gtpe_board_sense().

const unsigned int evf::evtn::GTPE_BOARDID_VALUE = 0x1

Definition at line 64 of file GlobalEventNumber.h.

const unsigned int evf::evtn::GTPE_ORBTNR_OFFSET = 18

Definition at line 66 of file GlobalEventNumber.h.

Referenced by gtpe_getorbit().

const unsigned int evf::evtn::GTPE_TRIGNR_OFFSET = 14

Definition at line 65 of file GlobalEventNumber.h.

Referenced by gtpe_get().

const unsigned int evf::evtn::SLINK_HALFWORD_SIZE = 4
const unsigned int evf::evtn::SLINK_WORD_SIZE = 8