test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Enumerations | Functions | Variables
evf::evtn Namespace Reference

Classes

union  sizes
 
class  TCDSBST
 
class  TCDSFEDHeader
 
class  TCDSHeader
 
class  TCDSL1AHistory
 
class  TCDSRecord
 

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 (TCDSRecord *record, unsigned int runNumber, unsigned int lumiSection, std::string const &processGUID)
 
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 19 of file GlobalEventNumber.h.

Function Documentation

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

Definition at line 67 of file GlobalEventNumber.h.

References DAQ_BOARDID_OFFSET, DAQ_BOARDID_SHIFT, DAQ_BOARDID_VALUE, and SLINK_WORD_SIZE.

68  {
69  return (*(unsigned int*)(p + sizeof(fedh_t) + DAQ_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >> DAQ_BOARDID_SHIFT) == DAQ_BOARDID_VALUE;
70  }
const unsigned int DAQ_BOARDID_SHIFT
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 7 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, and SLINK_WORD_SIZE.

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

8  {
9  switch(size){
10  case BST32_3BX:
11  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
12  EVM_FDL_NOBX = 3;
13  break;
14  case BST32_5BX:
15  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
16  EVM_FDL_NOBX = 5;
17  break;
18  case BST52_3BX:
19  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
20  EVM_FDL_NOBX = 3;
21  break;
22  case BST52_5BX:
23  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
24  EVM_FDL_NOBX = 5;
25  break;
26  default:
27  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
28  EVM_FDL_NOBX = 3;
29  }
30  return (*(const unsigned int*)(p + sizeof(fedh_t) + EVM_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >> EVM_BOARDID_SHIFT) == EVM_BOARDID_VALUE;
31  }
const unsigned int EVM_GTFE_BLOCK_V0000
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
tuple size
Write out results.
void evf::evtn::evm_board_setformat ( size_t  size)

Definition at line 40 of file GlobalEventNumber.cc.

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

Referenced by BxNumberFilter::filter().

41  {
42  switch(size){
43  case BST32_3BX:
44  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
45  EVM_FDL_NOBX = 3;
46  break;
47  case BST32_5BX:
48  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
49  EVM_FDL_NOBX = 5;
50  break;
51  case BST52_3BX:
52  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
53  EVM_FDL_NOBX = 3;
54  break;
55  case BST52_5BX:
56  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
57  EVM_FDL_NOBX = 5;
58  break;
59  default:
60  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
61  EVM_FDL_NOBX = 3;
62  }
63  }
const unsigned int EVM_GTFE_BLOCK_V0000
const unsigned int EVM_GTFE_BLOCK_V0011
tuple size
Write out results.
bool evf::evtn::evm_tcs_board_sense ( const unsigned char *  p)

Definition at line 32 of file GlobalEventNumber.cc.

References EVM_TCS_BOARDID_OFFSET, EVM_TCS_BOARDID_SHIFT, EVM_TCS_BOARDID_VALUE, and SLINK_WORD_SIZE.

Referenced by get().

32  {
33  return (*(const unsigned int*)(p + sizeof(fedh_t) +
34  (EVM_GTFE_BLOCK*2 + EVM_TCS_BOARDID_OFFSET)
35  * SLINK_WORD_SIZE / 2)
37 
38  }
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 73 of file GlobalEventNumber.cc.

References evm_tcs_board_sense(), offset(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by test::GlobalNumbersAnalysis::analyze(), FedRawDataInputSource::fillFEDRawDataCollection(), BxNumberFilter::filter(), and FRDStreamSource::setRunAndEventInfo().

74  {
75  if(evm && evm_tcs_board_sense(p))
76  return *(const unsigned int*)( p+offset(true));
77  else
78  return *(const unsigned int*)( p+offset(false)); // cover case of evm but invalid tcs info
79  }
bool evm_tcs_board_sense(const unsigned char *p)
unsigned int evf::evtn::getevtyp ( const unsigned char *  p)

Definition at line 105 of file GlobalEventNumber.cc.

References EVM_TCS_EVNTYP_MASK, EVM_TCS_EVNTYP_SHIFT, EVM_TCS_LSBLNR_OFFSET, and SLINK_WORD_SIZE.

106  {
107  return (((*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK*2 + EVM_TCS_LSBLNR_OFFSET) * SLINK_WORD_SIZE / 2))
109  }
const unsigned int EVM_TCS_LSBLNR_OFFSET
#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 114 of file GlobalEventNumber.cc.

References EVM_FDL_BCNRIN_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BCNRIN_MASK, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), and BxNumberFilter::filter().

115  {
116  return (*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
117  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2) ) * SLINK_WORD_SIZE +
119  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
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 124 of file GlobalEventNumber.cc.

References EVM_FDL_BLOCK, EVM_FDL_PSCVSN_OFFSET, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze().

125  {
126  return (*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
127  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
129  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
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 136 of file GlobalEventNumber.cc.

References EVM_FDL_ALGOB1_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

137  {
138  return (*(const unsigned long long*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
139  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
141  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
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 142 of file GlobalEventNumber.cc.

References EVM_FDL_ALGOB2_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

143  {
144  return (*(const unsigned long long*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
145  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
147  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
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 130 of file GlobalEventNumber.cc.

References EVM_FDL_BLOCK, EVM_FDL_TECTRG_OFFSET, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

131  {
132  return (*(const unsigned long long*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
133  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
135  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
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)
unsigned int evf::evtn::getgpslow ( const unsigned char *  p)
unsigned int evf::evtn::getlbn ( const unsigned char *  p)

Definition at line 84 of file GlobalEventNumber.cc.

References EVM_TCS_LSBLNR_MASK, EVM_TCS_LSBLNR_OFFSET, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), and BxNumberFilter::filter().

85  {
86  return (*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK*2 + EVM_TCS_LSBLNR_OFFSET) * SLINK_WORD_SIZE / 2))
88  }
const unsigned int EVM_TCS_LSBLNR_OFFSET
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_LSBLNR_MASK
unsigned int evf::evtn::getorbit ( const unsigned char *  p)

Definition at line 101 of file GlobalEventNumber.cc.

References EVM_TCS_ORBTNR_OFFSET, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), and BxNumberFilter::filter().

102  {
103  return (*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK*2 + EVM_TCS_ORBTNR_OFFSET) * SLINK_WORD_SIZE / 2));
104  }
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_ORBTNR_OFFSET
bool evf::evtn::gtpe_board_sense ( const unsigned char *  p)
inline
unsigned int evf::evtn::gtpe_get ( const unsigned char *  p)

Definition at line 80 of file GlobalEventNumber.cc.

References GTPE_TRIGNR_OFFSET, and SLINK_HALFWORD_SIZE.

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

81  {
82  return *(const unsigned int*)( p + GTPE_TRIGNR_OFFSET*SLINK_HALFWORD_SIZE );
83  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int GTPE_TRIGNR_OFFSET
unsigned int evf::evtn::gtpe_getbx ( const unsigned char *  p)

Definition at line 120 of file GlobalEventNumber.cc.

References GTPE_BCNRIN_MASK, GTPE_BCNRIN_OFFSET, and SLINK_HALFWORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze().

121  {
122  return (*(const unsigned int*)( p + GTPE_BCNRIN_OFFSET * SLINK_HALFWORD_SIZE)) & GTPE_BCNRIN_MASK;
123  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
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 89 of file GlobalEventNumber.cc.

References gtpe_getorbit().

Referenced by test::GlobalNumbersAnalysis::analyze().

90  {
91  return gtpe_getorbit(p)/0x00100000;
92  }
unsigned int gtpe_getorbit(const unsigned char *)
unsigned int evf::evtn::gtpe_getorbit ( const unsigned char *  p)

Definition at line 110 of file GlobalEventNumber.cc.

References GTPE_ORBTNR_OFFSET, and SLINK_HALFWORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), and gtpe_getlbn().

111  {
112  return (*(const unsigned int*)( p + GTPE_ORBTNR_OFFSET * SLINK_HALFWORD_SIZE));
113  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int GTPE_ORBTNR_OFFSET
edm::EventAuxiliary evf::evtn::makeEventAuxiliary ( TCDSRecord *  record,
unsigned int  runNumber,
unsigned int  lumiSection,
std::string const &  processGUID 
)

Definition at line 9 of file AuxiliaryMakers.cc.

References evf::evtn::TCDSHeader::tcdsheader::bcid, evf::evtn::TCDSFEDHeader::tcdsfedheader::eventid, evf::evtn::TCDSHeader::tcdsheader::eventNumber, FED_EVTY_EXTRACT, evf::evtn::TCDSBST::getBST(), evf::evtn::TCDSRecord::getBST(), evf::evtn::TCDSFEDHeader::getData(), evf::evtn::TCDSHeader::getData(), evf::evtn::TCDSRecord::getFEDHeader(), evf::evtn::TCDSRecord::getHeader(), evf::evtn::TCDSBST::bst::gpstimehigh, evf::evtn::TCDSBST::bst::gpstimelow, evf::evtn::TCDSFEDHeader::tcdsfedheader::header, evf::evtn::TCDSHeader::tcdsheader::header, edm::EventAuxiliary::invalidStoreNumber, evf::evtn::TCDSHeader::tcdsheader::lumiSection, evf::evtn::TCDSHeader::tcdsheader::orbitHigh, and evf::evtn::TCDSHeader::tcdsheader::orbitLow.

Referenced by FedRawDataInputSource::read().

12  {
13  edm::EventID eventId(runNumber, // check that runnumber from record is consistent
14  //record->getHeader().getData().header.lumiSection,//+1
15  lumiSection,
16  record->getHeader().getData().header.eventNumber);
17 
18  uint64_t gpsh = record->getBST().getBST().gpstimehigh;
19  uint32_t gpsl = record->getBST().getBST().gpstimelow;
20  edm::TimeValue_t time = static_cast<edm::TimeValue_t> ((gpsh << 32) + gpsl);
21  if (time == 0) {
22  timeval stv;
23  gettimeofday(&stv,0);
24  time = stv.tv_sec;
25  time = (time << 32) + stv.tv_usec;
26  }
27  uint64_t orbitnr = (((uint64_t)record->getHeader().getData().header.orbitHigh) << 16) + record->getHeader().getData().header.orbitLow;
28  uint32_t recordLumiSection = record->getHeader().getData().header.lumiSection;
29 
30  if (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  (edm::EventAuxiliary::ExperimentType)(FED_EVTY_EXTRACT(record->getFEDHeader().getData().header.eventid)),
40  (int)record->getHeader().getData().header.bcid,
42  (int)(orbitnr&0x7fffffffU));//framework supports only 32-bit signed
43  }
JetCorrectorParameters::Record record
Definition: classes.h:7
#define FED_EVTY_EXTRACT(a)
Definition: fed_header.h:38
unsigned long long TimeValue_t
Definition: Timestamp.h:28
unsigned long long uint64_t
Definition: Time.h:15
static int const invalidStoreNumber
unsigned int evf::evtn::offset ( bool  evm)

Definition at line 66 of file GlobalEventNumber.cc.

References DAQ_TOTTRG_OFFSET, EVM_TCS_TRIGNR_OFFSET, and SLINK_WORD_SIZE.

Referenced by get().

67  {
68  if(evm)
69  return sizeof(fedh_t) + (EVM_GTFE_BLOCK*2 + EVM_TCS_TRIGNR_OFFSET) * SLINK_WORD_SIZE / 2;
70  else
71  return sizeof(fedh_t) + DAQ_TOTTRG_OFFSET * SLINK_WORD_SIZE / 2;
72  }
const unsigned int EVM_TCS_TRIGNR_OFFSET
struct fedh_struct fedh_t
const unsigned int DAQ_TOTTRG_OFFSET
#define SLINK_WORD_SIZE

Variable Documentation

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

Definition at line 15 of file GlobalEventNumber.h.

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

Definition at line 14 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

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

Definition at line 16 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

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

Definition at line 17 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

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

Definition at line 13 of file GlobalEventNumber.h.

Referenced by offset().

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

Definition at line 27 of file GlobalEventNumber.h.

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

Definition at line 26 of file GlobalEventNumber.h.

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

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

Definition at line 28 of file GlobalEventNumber.h.

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

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

Definition at line 29 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 51 of file GlobalEventNumber.h.

Referenced by getfdlta1().

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

Definition at line 52 of file GlobalEventNumber.h.

Referenced by getfdlta2().

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

Definition at line 49 of file GlobalEventNumber.h.

Referenced by getfdlbx().

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

Definition at line 48 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 53 of file GlobalEventNumber.h.

Referenced by getfdlpsc().

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

Definition at line 50 of file GlobalEventNumber.h.

Referenced by getfdlttr().

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

Definition at line 31 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 32 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 33 of file GlobalEventNumber.h.

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

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

Definition at line 46 of file GlobalEventNumber.h.

Referenced by getfdlbx().

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

Definition at line 36 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 42 of file GlobalEventNumber.h.

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

Definition at line 39 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

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

Definition at line 43 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

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

Definition at line 35 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

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

Definition at line 44 of file GlobalEventNumber.h.

Referenced by getevtyp().

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

Definition at line 45 of file GlobalEventNumber.h.

Referenced by getevtyp().

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

Definition at line 41 of file GlobalEventNumber.h.

Referenced by getlbn().

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

Definition at line 38 of file GlobalEventNumber.h.

Referenced by getevtyp(), and getlbn().

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

Definition at line 40 of file GlobalEventNumber.h.

Referenced by getorbit().

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

Definition at line 37 of file GlobalEventNumber.h.

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

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

Definition at line 8 of file FEDConstants.h.

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

Definition at line 9 of file FEDConstants.h.

Referenced by evf::EvffedFillerRB::putTrailer().

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

Definition at line 64 of file GlobalEventNumber.h.

Referenced by gtpe_getbx().

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

Definition at line 63 of file GlobalEventNumber.h.

Referenced by gtpe_getbx().

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

Definition at line 58 of file GlobalEventNumber.h.

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

Definition at line 57 of file GlobalEventNumber.h.

Referenced by gtpe_board_sense().

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

Definition at line 59 of file GlobalEventNumber.h.

Referenced by gtpe_board_sense().

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

Definition at line 60 of file GlobalEventNumber.h.

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

Definition at line 62 of file GlobalEventNumber.h.

Referenced by gtpe_getorbit().

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

Definition at line 61 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