Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
EventFilter
Utilities
src
AuxiliaryMakers.cc
Go to the documentation of this file.
1
#include <sys/time.h>
2
3
#include "
EventFilter/Utilities/interface/AuxiliaryMakers.h
"
4
5
namespace
evf{
6
namespace
evtn{
7
8
edm::EventAuxiliary
makeEventAuxiliary
(
TCDSRecord
*
record
,
9
unsigned
int
runNumber
,
10
unsigned
int
lumiSection,
11
std::string
const
&processGUID){
12
edm::EventID
eventId(runNumber,
// check that runnumber from record is consistent
13
//record->getHeader().getData().header.lumiSection,//+1
14
lumiSection,
15
record->
getHeader
().
getData
().
header
.
eventNumber
);
16
17
uint64_t
gpsh = record->
getBST
().
getBST
().
gpstimehigh
;
18
uint32_t gpsl = record->
getBST
().
getBST
().
gpstimelow
;
19
edm::TimeValue_t
time
=
static_cast<
edm::TimeValue_t
>
((gpsh << 32) + gpsl);
20
if
(time == 0) {
21
timeval stv;
22
gettimeofday(&stv,0);
23
time = stv.tv_sec;
24
time = (time << 32) + stv.tv_usec;
25
}
26
int64_t orbitnr = (((
uint64_t
)record->
getHeader
().
getData
().
header
.
orbitHigh
) << 16) + record->
getHeader
().
getData
().
header
.
orbitLow
;
27
return
edm::EventAuxiliary
(eventId,
28
processGUID,
29
edm::Timestamp
(time),
30
true
,
31
(
edm::EventAuxiliary::ExperimentType
)(
FED_EVTY_EXTRACT
(record->
getFEDHeader
().
getData
().
header
.
eventid
)),
32
(int)record->
getHeader
().
getData
().
header
.
bcid
,
33
edm::EventAuxiliary::invalidStoreNumber
,
34
(int)(orbitnr&0x7fffffffU));
//framework supports only 32-bit signed
35
}
36
}
37
}
AuxiliaryMakers.h
evf::evtn::TCDSRecord::getBST
TCDSBST & getBST()
Definition:
FED1024.h:152
evf::evtn::TCDSHeader::tcdsheader::orbitLow
uint16_t orbitLow
Definition:
FED1024.h:70
evf::evtn::TCDSRecord::getHeader
TCDSHeader & getHeader()
Definition:
FED1024.h:150
record
JetCorrectorParameters::Record record
Definition:
classes.h:7
evf::evtn::TCDSHeader::tcdsheader::bcid
uint16_t bcid
Definition:
FED1024.h:69
evf::evtn::TCDSFEDHeader::tcdsfedheader::eventid
uint32_t eventid
Definition:
FED1024.h:33
evf::evtn::makeEventAuxiliary
edm::EventAuxiliary makeEventAuxiliary(TCDSRecord *record, unsigned int runNumber, unsigned int lumiSection, std::string const &processGUID)
Definition:
AuxiliaryMakers.cc:8
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition:
EventAuxiliary.h:18
evf::evtn::TCDSFEDHeader::tcdsfedheader::header
struct evf::evtn::TCDSFEDHeader::tcdsfedheader::@319 header
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
evf::evtn::TCDSRecord::getFEDHeader
TCDSFEDHeader & getFEDHeader()
Definition:
FED1024.h:149
evf::evtn::TCDSBST::bst::gpstimelow
uint32_t gpstimelow
Definition:
FED1024.h:116
evf::evtn::TCDSHeader::tcdsheader::header
struct evf::evtn::TCDSHeader::tcdsheader::@320 header
evf::evtn::TCDSBST::bst::gpstimehigh
uint32_t gpstimehigh
Definition:
FED1024.h:117
FED_EVTY_EXTRACT
#define FED_EVTY_EXTRACT(a)
Definition:
fed_header.h:38
evf::evtn::TCDSHeader::getData
const tcdsheader & getData()
Definition:
FED1024.h:84
edm::EventID
Definition:
EventID.h:31
cond::rpcobgas::time
Definition:
RPCObGasPyWrapper.cc:61
edm::Timestamp
Definition:
Timestamp.h:30
evf::evtn::TCDSRecord
Definition:
FED1024.h:138
evf::evtn::TCDSHeader::tcdsheader::eventNumber
uint64_t eventNumber
Definition:
FED1024.h:73
evf::evtn::TCDSHeader::tcdsheader::orbitHigh
uint32_t orbitHigh
Definition:
FED1024.h:71
convertSQLiteXML.runNumber
runNumber
Definition:
convertSQLiteXML.py:90
edm::TimeValue_t
unsigned long long TimeValue_t
Definition:
Timestamp.h:28
edm::EventAuxiliary
Definition:
EventAuxiliary.h:14
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
evf::evtn::TCDSFEDHeader::getData
const tcdsfedheader & getData()
Definition:
FED1024.h:41
evf::evtn::TCDSBST::getBST
const bst & getBST()
Definition:
FED1024.h:133
edm::EventAuxiliary::invalidStoreNumber
static int const invalidStoreNumber
Definition:
EventAuxiliary.h:29
Generated for CMSSW Reference Manual by
1.8.5