CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EvffedFillerEP.h
Go to the documentation of this file.
1 #ifndef EVENTFILTER_UTILITIES_PLUGINS_EVFFEDFILLEREP
2 #define EVENTFILTER_UTILITIES_PLUGINS_EVFFEDFILLEREP
3 
4 #include <unistd.h>
5 
7 
8 namespace evf{
9 
11 
12  public:
14  }
15  void setEPTimeStamp(uint64_t ts, unsigned char *payload){
16  *(uint64_t*) (payload + fedinterface::EVFFED_EPWCTIM_OFFSET) = ts;
17  }
18  void setEPProcessId(pid_t pid, unsigned char *payload){
19  *(uint32_t*)(payload+fedinterface::EVFFED_EPIDENT_OFFSET) =
21  }
22  void setEPEventId(uint32_t eid, unsigned char *payload){
23  *(uint32_t*)(payload+fedinterface::EVFFED_EPEVENT_OFFSET) =
24  eid;
25  }
26  void setEPEventCount(uint32_t evc, unsigned char *payload){
27  *(uint32_t*)(payload+fedinterface::EVFFED_EPEVTCT_OFFSET) =
28  evc;
29  }
30  void setEPEventHisto(uint64_t ehi, unsigned char *payload){
32  ehi;
33  }
34 
35  private:
36 
37  };
38 }
39 
40 
41 #endif
const unsigned int EVFFED_EPEVTCT_OFFSET
Definition: FED1023.h:46
const unsigned int EVFFED_EPIDENT_OFFSET
Definition: FED1023.h:41
const unsigned int EVFFED_EPHISTO_OFFSET
Definition: FED1023.h:52
void setEPEventId(uint32_t eid, unsigned char *payload)
const unsigned int EVFFED_EPPCIDE_SHIFT
Definition: FED1023.h:43
void setEPProcessId(pid_t pid, unsigned char *payload)
void setEPTimeStamp(uint64_t ts, unsigned char *payload)
const unsigned int EVFFED_EPEVENT_OFFSET
Definition: FED1023.h:40
void setEPEventCount(uint32_t evc, unsigned char *payload)
unsigned long long uint64_t
Definition: Time.h:15
tuple pid
Definition: sysUtil.py:22
const unsigned int EVFFED_EPWCTIM_OFFSET
Definition: FED1023.h:58
void setEPEventHisto(uint64_t ehi, unsigned char *payload)
const unsigned int EVFFED_EPPCIDE_MASK
Definition: FED1023.h:42