Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
oncsEvent.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file oncsEvent.h
1 #ifndef __ONCS_EVENT_H
2 #define __ONCS_EVENT_H
3 
4 #include "Event.h"
5 #include "phenixTypes.h"
6 #include "EvtConstants.h"
7 #include "oncsEvtStructures.h"
8 #include <map>
9 
10 #ifndef __CINT__
11 class WINDOWSEXPORT oncsEvent : public Event {
12 #else
13 class oncsEvent : public Event {
14 #endif
15 
16 public:
17  // constructors and destructors
18  oncsEvent(int *);
19  ~oncsEvent();
20 
21  virtual unsigned int getEvtLength();
22  virtual int getEvtType();
23  virtual int getEvtSequence();
24  virtual int getRunNumber();
25  //virtual PHTimeStamp * getTimeStamp() const;
26 
27  virtual void identify(std::ostream& os = std::cout) const;
28 
29 
30  virtual Packet* getPacket(const int);
31  virtual Packet* getPacket(const int, const int hitFormat);
32 
33  virtual int getPacketList(Packet*[], const int);
34 
35  virtual int existPacket (const int packetid);
36 
37  virtual int Copy ( int *destination, const unsigned int length, int *nw, const char *what="");
38 
39  virtual int is_pointer_type() const;
40  virtual int convert ();
41 
42  virtual int getDate() { return 0;};
43  virtual time_t getTime() const;
44  virtual Packet * makePacket(PHDWORD *pp, const int hitFormat = 0);
45 
46 protected:
47  int is_data_type; // 0 is pointer based -- 1 is data based
48 
50 
51  int hasMap;
52  int errorcode;
53  virtual int createMap();
54  std::map <int, PHDWORD *> pmap;
55 };
56 
57 #endif