Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:50

0001 #ifndef __OSPEVENT_H
0002 #define __OSPEVENT_H
0003 
0004 
0005 #include "phenixTypes.h"
0006 
0007 #include "oncsSubConstants.h"
0008 #include "oncsEvtStructures.h"
0009 #include "oncsSubevent.h"
0010 
0011 
0012 class  ospEvent {
0013 
0014 public:
0015 
0016   //** Constructors
0017   ospEvent(PHDWORD *, const int maxlength
0018      , const int irun, const int itype, const int eseq);
0019 
0020   virtual ~ospEvent() {}
0021   virtual int prepare_next();
0022   virtual int prepare_next( const int, const int);
0023   virtual void set_event_type(const int);
0024 
0025   virtual int addPacket ( const Packet * p);
0026 
0027   virtual int addUnstructPacketData(PHDWORD * data, 
0028             const int length,
0029             const int id,
0030             const int wordsize,
0031             const int hitformat);
0032 protected:
0033   
0034   PHDWORD *event_base;
0035   int current;
0036   int in_frame;
0037   int max_length;
0038   int left;
0039   oncsevtdata_ptr evthdr;
0040 };
0041 
0042 #endif