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, bool isRealData, const edm::EventAuxiliary::ExperimentType &, const std::string &processGUID, bool verifyLumiSection, bool suppressWarning)
 
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

◆ EvmRecordScheme

Enumerator
BST32_3BX 
BST32_5BX 
BST52_3BX 
BST52_5BX 

Definition at line 22 of file GlobalEventNumber.h.

Function Documentation

◆ daq_board_sense()

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, AlCaHLTBitMon_ParallelJobs::p, and SLINK_WORD_SIZE.

6  {
7  return (*(unsigned int *)(p + FEDHeader::length + DAQ_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >>
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

◆ evm_board_sense()

bool evf::evtn::evm_board_sense ( const unsigned char *  p,
size_t  size 
)

Definition at line 15 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, AlCaHLTBitMon_ParallelJobs::p, findQualityFiles::size, and SLINK_WORD_SIZE.

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

15  {
16  switch (size) {
17  case BST32_3BX:
18  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
19  EVM_FDL_NOBX = 3;
20  break;
21  case BST32_5BX:
22  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
23  EVM_FDL_NOBX = 5;
24  break;
25  case BST52_3BX:
26  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
27  EVM_FDL_NOBX = 3;
28  break;
29  case BST52_5BX:
30  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
31  EVM_FDL_NOBX = 5;
32  break;
33  default:
34  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
35  EVM_FDL_NOBX = 3;
36  }
37  return (*(const unsigned int *)(p + FEDHeader::length + EVM_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >>
39  }
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

◆ evm_board_setformat()

void evf::evtn::evm_board_setformat ( size_t  size)

Definition at line 47 of file GlobalEventNumber.cc.

References BST32_3BX, BST32_5BX, BST52_3BX, BST52_5BX, EVM_GTFE_BLOCK_V0000, EVM_GTFE_BLOCK_V0011, and findQualityFiles::size.

47  {
48  switch (size) {
49  case BST32_3BX:
50  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
51  EVM_FDL_NOBX = 3;
52  break;
53  case BST32_5BX:
54  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
55  EVM_FDL_NOBX = 5;
56  break;
57  case BST52_3BX:
58  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
59  EVM_FDL_NOBX = 3;
60  break;
61  case BST52_5BX:
62  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
63  EVM_FDL_NOBX = 5;
64  break;
65  default:
66  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
67  EVM_FDL_NOBX = 3;
68  }
69  }
size
Write out results.
const unsigned int EVM_GTFE_BLOCK_V0000
const unsigned int EVM_GTFE_BLOCK_V0011

◆ evm_tcs_board_sense()

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

Definition at line 41 of file GlobalEventNumber.cc.

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

Referenced by get().

41  {
42  return (*(const unsigned int *)(p + FEDHeader::length +
43  (EVM_GTFE_BLOCK * 2 + EVM_TCS_BOARDID_OFFSET) * SLINK_WORD_SIZE / 2) >>
45  }
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

◆ get()

unsigned int evf::evtn::get ( const unsigned char *  p,
bool  evm 
)

Definition at line 77 of file GlobalEventNumber.cc.

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

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

77  {
78  if (evm && evm_tcs_board_sense(p))
79  return *(const unsigned int *)(p + offset(true));
80  else
81  return *(const unsigned int *)(p + offset(false)); // cover case of evm but invalid tcs info
82  }
bool evm_tcs_board_sense(const unsigned char *p)

◆ getevtyp()

unsigned int evf::evtn::getevtyp ( const unsigned char *  p)

Definition at line 103 of file GlobalEventNumber.cc.

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

103  {
104  return (((*(const unsigned int *)(p + FEDHeader::length +
105  (EVM_GTFE_BLOCK * 2 + EVM_TCS_LSBLNR_OFFSET) * SLINK_WORD_SIZE / 2)) &
108  }
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

◆ getfdlbx()

unsigned int evf::evtn::getfdlbx ( const unsigned char *  p)

Definition at line 112 of file GlobalEventNumber.cc.

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

112  {
113  return (*(const unsigned int *)(p + FEDHeader::length +
114  (EVM_GTFE_BLOCK + EVM_TCS_BLOCK + EVM_FDL_BLOCK * (EVM_FDL_NOBX / 2)) *
118  }
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

◆ getfdlpsc()

unsigned int evf::evtn::getfdlpsc ( const unsigned char *  p)

Definition at line 122 of file GlobalEventNumber.cc.

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

122  {
123  return (*(const unsigned int *)(p + FEDHeader::length +
124  (EVM_GTFE_BLOCK + EVM_TCS_BLOCK + EVM_FDL_BLOCK * (EVM_FDL_NOBX / 2)) *
127  }
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

◆ getfdlta1()

unsigned long long evf::evtn::getfdlta1 ( const unsigned char *  p)

Definition at line 134 of file GlobalEventNumber.cc.

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

134  {
135  return (*(const unsigned long long *)(p + FEDHeader::length +
136  (EVM_GTFE_BLOCK + EVM_TCS_BLOCK + EVM_FDL_BLOCK * (EVM_FDL_NOBX / 2)) *
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_ALGOB1_OFFSET

◆ getfdlta2()

unsigned long long evf::evtn::getfdlta2 ( const unsigned char *  p)

Definition at line 140 of file GlobalEventNumber.cc.

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

140  {
141  return (*(const unsigned long long *)(p + FEDHeader::length +
142  (EVM_GTFE_BLOCK + EVM_TCS_BLOCK + EVM_FDL_BLOCK * (EVM_FDL_NOBX / 2)) *
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_ALGOB2_OFFSET

◆ getfdlttr()

unsigned long long evf::evtn::getfdlttr ( const unsigned char *  p)

Definition at line 128 of file GlobalEventNumber.cc.

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

128  {
129  return (*(const unsigned long long *)(p + FEDHeader::length +
130  (EVM_GTFE_BLOCK + EVM_TCS_BLOCK + EVM_FDL_BLOCK * (EVM_FDL_NOBX / 2)) *
133  }
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

◆ getgpshigh()

unsigned int evf::evtn::getgpshigh ( const unsigned char *  p)

Definition at line 95 of file GlobalEventNumber.cc.

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

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

95  {
96  return (*(const unsigned int *)(p + FEDHeader::length + EVM_GTFE_BSTGPS_OFFSET * SLINK_WORD_SIZE / 2 +
98  }
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

◆ getgpslow()

unsigned int evf::evtn::getgpslow ( const unsigned char *  p)

Definition at line 92 of file GlobalEventNumber.cc.

References EVM_GTFE_BSTGPS_OFFSET, FEDHeader::length, AlCaHLTBitMon_ParallelJobs::p, and SLINK_WORD_SIZE.

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

92  {
93  return (*(const unsigned int *)(p + FEDHeader::length + EVM_GTFE_BSTGPS_OFFSET * SLINK_WORD_SIZE / 2));
94  }
static const uint32_t length
Definition: FEDHeader.h:54
#define SLINK_WORD_SIZE
const unsigned int EVM_GTFE_BSTGPS_OFFSET

◆ getlbn()

unsigned int evf::evtn::getlbn ( const unsigned char *  p)

Definition at line 86 of file GlobalEventNumber.cc.

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

86  {
87  return (*(const unsigned int *)(p + FEDHeader::length +
88  (EVM_GTFE_BLOCK * 2 + EVM_TCS_LSBLNR_OFFSET) * SLINK_WORD_SIZE / 2)) &
90  }
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

◆ getorbit()

unsigned int evf::evtn::getorbit ( const unsigned char *  p)

Definition at line 99 of file GlobalEventNumber.cc.

References EVM_TCS_ORBTNR_OFFSET, FEDHeader::length, AlCaHLTBitMon_ParallelJobs::p, and SLINK_WORD_SIZE.

99  {
100  return (*(const unsigned int *)(p + FEDHeader::length +
101  (EVM_GTFE_BLOCK * 2 + EVM_TCS_ORBTNR_OFFSET) * SLINK_WORD_SIZE / 2));
102  }
static const uint32_t length
Definition: FEDHeader.h:54
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_ORBTNR_OFFSET

◆ gtpe_board_sense()

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, AlCaHLTBitMon_ParallelJobs::p, and SLINK_WORD_SIZE.

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

11  {
12  return (*(unsigned int *)(p + GTPE_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >> GTPE_BOARDID_SHIFT) != 0;
13  }
const unsigned int GTPE_BOARDID_OFFSET
#define SLINK_WORD_SIZE
const unsigned int GTPE_BOARDID_SHIFT

◆ gtpe_get()

unsigned int evf::evtn::gtpe_get ( const unsigned char *  p)

Definition at line 83 of file GlobalEventNumber.cc.

References GTPE_TRIGNR_OFFSET, AlCaHLTBitMon_ParallelJobs::p, and SLINK_HALFWORD_SIZE.

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

83  {
84  return *(const unsigned int *)(p + GTPE_TRIGNR_OFFSET * SLINK_HALFWORD_SIZE);
85  }
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int GTPE_TRIGNR_OFFSET

◆ gtpe_getbx()

unsigned int evf::evtn::gtpe_getbx ( const unsigned char *  p)

Definition at line 119 of file GlobalEventNumber.cc.

References GTPE_BCNRIN_MASK, GTPE_BCNRIN_OFFSET, AlCaHLTBitMon_ParallelJobs::p, and SLINK_HALFWORD_SIZE.

119  {
120  return (*(const unsigned int *)(p + GTPE_BCNRIN_OFFSET * SLINK_HALFWORD_SIZE)) & GTPE_BCNRIN_MASK;
121  }
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int GTPE_BCNRIN_MASK
const unsigned int GTPE_BCNRIN_OFFSET

◆ gtpe_getlbn()

unsigned int evf::evtn::gtpe_getlbn ( const unsigned char *  p)

Definition at line 91 of file GlobalEventNumber.cc.

References gtpe_getorbit(), and AlCaHLTBitMon_ParallelJobs::p.

91 { return gtpe_getorbit(p) / 0x00100000; }
unsigned int gtpe_getorbit(const unsigned char *)

◆ gtpe_getorbit()

unsigned int evf::evtn::gtpe_getorbit ( const unsigned char *  p)

Definition at line 109 of file GlobalEventNumber.cc.

References GTPE_ORBTNR_OFFSET, AlCaHLTBitMon_ParallelJobs::p, and SLINK_HALFWORD_SIZE.

Referenced by gtpe_getlbn().

109  {
110  return (*(const unsigned int *)(p + GTPE_ORBTNR_OFFSET * SLINK_HALFWORD_SIZE));
111  }
const unsigned int SLINK_HALFWORD_SIZE
const unsigned int GTPE_ORBTNR_OFFSET

◆ makeEventAuxiliary()

edm::EventAuxiliary evf::evtn::makeEventAuxiliary ( const tcds::Raw_v1 tcds,
unsigned int  runNumber,
unsigned int  lumiSection,
bool  isRealData,
const edm::EventAuxiliary::ExperimentType eventType,
const std::string &  processGUID,
bool  verifyLumiSection,
bool  suppressWarning 
)

Definition at line 9 of file AuxiliaryMakers.cc.

References hcalcalib_dqm_sourceclient-live_cfg::eventType, edm::processGUID(), convertSQLiteXML::runNumber, Log4cplus_cff::suppressWarning, and hcalRecHitTable_cff::time.

Referenced by FedRawDataInputSource::read(), DataModeFRD::readEvent(), and DataModeFRDStriped::readEvent().

16  {
17  edm::EventID eventId(runNumber, // check that runnumber from record is consistent
18  lumiSection,
19  tcds->header.eventNumber);
20 
22  static_cast<edm::TimeValue_t>(((uint64_t)tcds->bst.gpstimehigh << 32) | tcds->bst.gpstimelow);
23  if (time == 0) {
24  timeval stv;
25  gettimeofday(&stv, nullptr);
26  time = stv.tv_sec;
27  time = (time << 32) + stv.tv_usec;
28  }
29 
30  const uint64_t orbitnr = ((uint64_t)tcds->header.orbitHigh << 16) | tcds->header.orbitLow;
31  const uint32_t recordLumiSection = tcds->header.lumiSection;
32 
33  if (isRealData && !suppressWarning) {
34  //warnings are disabled for generated data
35  if (verifyLumiSection && recordLumiSection != lumiSection)
36  edm::LogWarning("AuxiliaryMakers")
37  << "Lumisection mismatch, external : " << lumiSection << ", record : " << recordLumiSection;
38  if ((orbitnr >> 18) + 1 != recordLumiSection)
39  edm::LogWarning("AuxiliaryMakers") << "Lumisection and orbit number mismatch, LS : " << lumiSection
40  << ", LS from orbit: " << ((orbitnr >> 18) + 1) << ", orbit:" << orbitnr;
41  }
42 
43  return edm::EventAuxiliary(eventId,
46  isRealData,
47  eventType,
48  (int)tcds->header.bxid,
49  ((uint32_t)(tcds->bst.lhcFillHigh) << 16) | tcds->bst.lhcFillLow,
50  (int)(orbitnr & 0x7fffffffU)); //framework supports only 32-bit signed
51  }
Guid const & processGUID()
Definition: processGUID.cc:4
Definition: TCDSRaw.h:16
unsigned long long TimeValue_t
Definition: Timestamp.h:21
unsigned long long uint64_t
Definition: Time.h:13
Log< level::Warning, false > LogWarning

◆ offset()

unsigned int evf::evtn::offset ( bool  evm)

Definition at line 71 of file GlobalEventNumber.cc.

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

Referenced by get().

71  {
72  if (evm)
73  return FEDHeader::length + (EVM_GTFE_BLOCK * 2 + EVM_TCS_TRIGNR_OFFSET) * SLINK_WORD_SIZE / 2;
74  else
76  }
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

◆ DAQ_BOARDID_MASK

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

Definition at line 18 of file GlobalEventNumber.h.

◆ DAQ_BOARDID_OFFSET

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

Definition at line 17 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

◆ DAQ_BOARDID_SHIFT

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

Definition at line 19 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

◆ DAQ_BOARDID_VALUE

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

Definition at line 20 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

◆ DAQ_TOTTRG_OFFSET

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

Definition at line 16 of file GlobalEventNumber.h.

Referenced by offset().

◆ EVM_BOARDID_MASK

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

Definition at line 30 of file GlobalEventNumber.h.

◆ EVM_BOARDID_OFFSET

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

Definition at line 29 of file GlobalEventNumber.h.

Referenced by evm_board_sense().

◆ EVM_BOARDID_SHIFT

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

Definition at line 31 of file GlobalEventNumber.h.

Referenced by evm_board_sense().

◆ EVM_BOARDID_VALUE

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

Definition at line 32 of file GlobalEventNumber.h.

Referenced by evm_board_sense().

◆ EVM_FDL_ALGOB1_OFFSET

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

Definition at line 54 of file GlobalEventNumber.h.

Referenced by getfdlta1().

◆ EVM_FDL_ALGOB2_OFFSET

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

Definition at line 55 of file GlobalEventNumber.h.

Referenced by getfdlta2().

◆ EVM_FDL_BCNRIN_OFFSET

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

Definition at line 52 of file GlobalEventNumber.h.

Referenced by getfdlbx().

◆ EVM_FDL_BLOCK

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

Definition at line 51 of file GlobalEventNumber.h.

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

◆ EVM_FDL_PSCVSN_OFFSET

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

Definition at line 56 of file GlobalEventNumber.h.

Referenced by getfdlpsc().

◆ EVM_FDL_TECTRG_OFFSET

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

Definition at line 53 of file GlobalEventNumber.h.

Referenced by getfdlttr().

◆ EVM_GTFE_BLOCK_V0000

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

Definition at line 34 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and evm_board_setformat().

◆ EVM_GTFE_BLOCK_V0011

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

Definition at line 35 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and evm_board_setformat().

◆ EVM_GTFE_BSTGPS_OFFSET

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

Definition at line 36 of file GlobalEventNumber.h.

Referenced by getgpshigh(), and getgpslow().

◆ EVM_TCS_BCNRIN_MASK

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

Definition at line 49 of file GlobalEventNumber.h.

Referenced by getfdlbx().

◆ EVM_TCS_BLOCK

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

Definition at line 39 of file GlobalEventNumber.h.

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

◆ EVM_TCS_BOARDID_MASK

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

Definition at line 45 of file GlobalEventNumber.h.

◆ EVM_TCS_BOARDID_OFFSET

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

Definition at line 42 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

◆ EVM_TCS_BOARDID_SHIFT

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

Definition at line 46 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

◆ EVM_TCS_BOARDID_VALUE

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

Definition at line 38 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

◆ EVM_TCS_EVNTYP_MASK

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

Definition at line 47 of file GlobalEventNumber.h.

Referenced by getevtyp().

◆ EVM_TCS_EVNTYP_SHIFT

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

Definition at line 48 of file GlobalEventNumber.h.

Referenced by getevtyp().

◆ EVM_TCS_LSBLNR_MASK

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

Definition at line 44 of file GlobalEventNumber.h.

Referenced by getlbn().

◆ EVM_TCS_LSBLNR_OFFSET

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

Definition at line 41 of file GlobalEventNumber.h.

Referenced by getevtyp(), and getlbn().

◆ EVM_TCS_ORBTNR_OFFSET

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

Definition at line 43 of file GlobalEventNumber.h.

Referenced by getorbit().

◆ EVM_TCS_TRIGNR_OFFSET

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

Definition at line 40 of file GlobalEventNumber.h.

Referenced by offset().

◆ FED_HEADER_SIZE

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

Definition at line 13 of file GlobalEventNumber.h.

◆ FED_TRAILER_SIZE

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

Definition at line 14 of file GlobalEventNumber.h.

◆ GTPE_BCNRIN_MASK

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

Definition at line 65 of file GlobalEventNumber.h.

Referenced by gtpe_getbx().

◆ GTPE_BCNRIN_OFFSET

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

Definition at line 64 of file GlobalEventNumber.h.

Referenced by gtpe_getbx().

◆ GTPE_BOARDID_MASK

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

Definition at line 59 of file GlobalEventNumber.h.

◆ GTPE_BOARDID_OFFSET

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

Definition at line 58 of file GlobalEventNumber.h.

Referenced by gtpe_board_sense().

◆ GTPE_BOARDID_SHIFT

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

Definition at line 60 of file GlobalEventNumber.h.

Referenced by gtpe_board_sense().

◆ GTPE_BOARDID_VALUE

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

Definition at line 61 of file GlobalEventNumber.h.

◆ GTPE_ORBTNR_OFFSET

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

Definition at line 63 of file GlobalEventNumber.h.

Referenced by gtpe_getorbit().

◆ GTPE_TRIGNR_OFFSET

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

Definition at line 62 of file GlobalEventNumber.h.

Referenced by gtpe_get().

◆ SLINK_HALFWORD_SIZE

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

◆ SLINK_WORD_SIZE

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