35 , evtNumber_(0xffffffff)
36 , lastCellIndex_(0xffffffff)
46 edm::LogInfo(
"FUShmReader")<<
"detach from shared memory segment."<<endl;
48 edm::LogWarning(
"FUShmReader") <<
"Class destructor called without received STOP event!"<<endl;
53 edm::LogWarning(
"ShmMissingPID")<<
"Destructor: did not find pid in shared memory index"<<endl;
73 edm::LogError(
"NoShmBuffer")<<
"Failed to retrieve shm segment."<<endl;
74 throw cms::Exception(
"NullPointer")<<
"Failed to retrieve shm segment."<<endl;
90 edm::LogInfo(
"ShutDown")<<
"Received STOP event, shut down."<<endl;
91 std::cout << getpid() <<
" Received STOP event, shut down." << std::endl;
94 <<
" GOT what claims to be a STOPPER event but eventType is "
101 edm::LogError(
"InconsistentStopCell")<<
"fillRawData:STOP: failed to discard STOP event raw cell!"<<endl;
103 edm::LogWarning(
"ShmMissingPID")<<
"fillRawData:STOP: did not find pid in shared memory pid index"<<endl;
114 <<
" GOT what claims to be an EOL event but eventType is "
116 <<
" and ls is " << ls
124 <<
" GOT an EOL event for ls 0!!!"
133 <<
"Received empty event, this should not happen !!!" <<endl;
134 std::cout << getpid() <<
"Received EPTY event!!! ERROR." << std::endl;
143 for (
unsigned int i=0;
i<newCell->
nFed();
i++) {
144 unsigned int fedSize=newCell->
fedSize(
i);
157 std::cout << getpid() <<
" ShmReader got event number zero !!! "
static const char runNumber_[]
FUShmRawCell * rawCellToRead()
bool writeErrorEventData(unsigned int runNumber, unsigned int fuProcessId, unsigned int iRawCell, bool checkValue)
int fillRawData(edm::EventID &eID, edm::Timestamp &tstamp, FEDRawDataCollection *&data)
unsigned int lastCellIndex_
bool removeClientPrcId(pid_t prcId)
FEDRawDataCollection * event_
evt::State_t evtState(unsigned int index)
unsigned int evtNumber() const
unsigned int getLumiSection() const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void resize(size_t newsize)
unsigned int getEventType() const
evf::FUShmBuffer * shmBuffer_
void scheduleRawEmptyCellForDiscard()
unsigned int readFed(unsigned int i, unsigned char *buffer) const
unsigned int index() const
unsigned int nFed() const
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
#define DEFINE_EDM_PLUGIN(factory, type, name)
unsigned int fedSize(unsigned int i) const
void finishReadingRawCell(FUShmRawCell *cell)
void scheduleRawCellForDiscard(unsigned int iCell)