File indexing completed on 2025-08-03 08:20:46
0001 #ifndef __ONCS_EVENT_H
0002 #define __ONCS_EVENT_H
0003
0004 #include "Event.h"
0005 #include "phenixTypes.h"
0006 #include "EvtConstants.h"
0007 #include "oncsEvtStructures.h"
0008 #include <map>
0009
0010 #ifndef __CINT__
0011 class WINDOWSEXPORT oncsEvent : public Event {
0012 #else
0013 class oncsEvent : public Event {
0014 #endif
0015
0016 public:
0017
0018 oncsEvent(int *);
0019 ~oncsEvent();
0020
0021 unsigned int getEvtLength() const;
0022 int getEvtType() const;
0023 int getEvtSequence() const;
0024 int getRunNumber() const;
0025
0026
0027 void identify(std::ostream& os = std::cout) const;
0028
0029
0030 Packet* getPacket(const int);
0031 Packet* getPacket(const int, const int hitFormat);
0032
0033 int getPacketList(Packet*[], const int);
0034 std::vector<Packet *> getPacketVector();
0035
0036 int existPacket (const int packetid);
0037
0038 int Copy ( int *destination, const unsigned int length, int *nw, const char *what="");
0039
0040 int is_pointer_type() const;
0041 int convert ();
0042
0043 int getDate() { return 0;};
0044 time_t getTime() const;
0045 Packet * makePacket(PHDWORD *pp, const int hitFormat = 0);
0046
0047 void setOriginBuffer(const int n) {originBuffer =n;};
0048 int getOriginBuffer() const {return originBuffer;};
0049
0050
0051 protected:
0052 int is_data_type;
0053
0054 oncsevtdata_ptr EventData;
0055
0056 int hasMap;
0057 int errorcode;
0058 virtual int createMap();
0059 std::map <int, PHDWORD *> pmap;
0060
0061 int originBuffer;
0062 };
0063
0064 #endif