31 static const unsigned int GTPEId= 814;
50 cout <<
"FED# " << setw(4) <<
GTEVMId <<
" " << setw(8) << size <<
" bytes " << endl;
53 cout <<
"FED# " << setw(4) <<
GTEVMId <<
" is the real GT EVM block " << endl;
68 cout <<
"FED# " << setw(4) <<
GTPEId <<
" " << setw(8) << size <<
" bytes " << endl;
71 cout <<
"FED# " << setw(4) <<
GTPEId <<
" is the real GTPE block " << endl;
85 << setw(8) << size <<
" bytes " << endl;
87 <<
" BGOSize " << std::hex << (
unsigned int)
record.getHeader().getSizes().size.BGOSize
88 <<
" reserved2;" << std::hex <<(
unsigned int)
record.getHeader().getSizes().size.reserved2
89 <<
" reserved1;" << std::hex <<(
unsigned int)
record.getHeader().getSizes().size.reserved1
90 <<
" reserved0;" << std::hex <<(
unsigned int)
record.getHeader().getSizes().size.reserved0
91 <<
" BSTSize;" << std::hex <<(
unsigned int)
record.getHeader().getSizes().size.BSTSize
92 <<
" L1AhistSize;" << std::hex <<(
unsigned int)
record.getHeader().getSizes().size.L1AhistSize
93 <<
" summarySize;" << std::hex <<(
unsigned int)
record.getHeader().getSizes().size.summarySize
94 <<
" headerSize;" << std::hex << (
unsigned int)
record.getHeader().getSizes().size.headerSize
98 << hex << (
uint64_t)
record.getHeader().getData().header.macAddress;
101 << hex << (
unsigned int)
record.getHeader().getData().header.sw;
104 << hex <<(
unsigned int)
record.getHeader().getData().header.fw;
107 << hex <<(
unsigned int)
record.getHeader().getData().header.reserved0;
110 << hex <<(
unsigned int)
record.getHeader().getData().header.format;
113 <<
dec << (
unsigned int)
record.getHeader().getData().header.runNumber;
116 << hex <<(
unsigned int)
record.getHeader().getData().header.reserved1;
119 << hex <<(
unsigned int)
record.getHeader().getData().header.activePartitions2;
122 << hex <<(
unsigned int)
record.getHeader().getData().header.reserved2;
125 << hex << (
unsigned int)
record.getHeader().getData().header.activePartitions0;
128 << hex <<(
unsigned int)
record.getHeader().getData().header.activePartitions1;
131 <<
dec << (
unsigned int)
record.getHeader().getData().header.nibble;
134 <<
dec << (
unsigned int)
record.getHeader().getData().header.lumiSection;
137 << hex <<(
unsigned int)
record.getHeader().getData().header.reserved3;
140 << hex <<(
unsigned int)
record.getHeader().getData().header. reserved4;
143 << hex <<(
unsigned int)
record.getHeader().getData().header.reserved5;
146 << hex <<(
unsigned int)
record.getHeader().getData().header.inputs;
149 <<
dec << (
unsigned int)
record.getHeader().getData().header.bcid;
152 <<
dec << (
unsigned int)
record.getHeader().getData().header.orbitLow;
155 <<
dec << (
unsigned int)
record.getHeader().getData().header.orbitHigh;
165 std::cout <<
"====================l1a history===================" << std::endl;
167 for(
unsigned int i = 0;
i < 16;
i++){
171 std::cout <<
i <<
" " << hex << (
unsigned int)history[
i].eventtype << std::endl;
174 std::cout <<
" gpstimehigh; " << hex <<
record.getBST().getBST().gpstimehigh;
175 std::cout <<
" gpstimelow; " << hex <<
record.getBST().getBST().gpstimelow;
191 time_t nowtime = (time_t)
record.getBST().getBST().gpstimehigh;
193 std::cout <<
" value of nowtime " << hex << nowtime <<
dec <<std::endl;
194 std::cout <<
"GPS time " << ctime(&nowtime) <<
"."
195 <<
dec <<
record.getBST().getBST().gpstimelow << std::endl;
EventNumber_t event() const
unsigned int getgpshigh(const unsigned char *)
unsigned int getfdlbx(const unsigned char *)
bool gtpe_board_sense(const unsigned char *p)
unsigned int get(const unsigned char *, bool)
#define DEFINE_FWK_MODULE(type)
edm::LuminosityBlockNumber_t luminosityBlock() const
unsigned int getfdlpsc(const unsigned char *)
size_t size() const
Lenght of the data buffer in bytes.
static const unsigned int GTEVMId
unsigned int getlbn(const unsigned char *)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
bool evm_board_sense(const unsigned char *p, size_t size)
unsigned int getorbit(const unsigned char *)
unsigned int gtpe_getorbit(const unsigned char *)
unsigned long long uint64_t
unsigned int gtpe_getbx(const unsigned char *)
char data[epos_bytes_allocation]
static const unsigned int GTPEId
edm::EventAuxiliary::ExperimentType experimentType() const
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
unsigned int gtpe_get(const unsigned char *)
unsigned int gtpe_getlbn(const unsigned char *)
GlobalNumbersAnalysis(const ParameterSet &pset)
void analyze(const Event &e, const EventSetup &c)
unsigned int getgpslow(const unsigned char *)
tuple size
Write out results.