Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 // -*- c++ -*-
0002 #ifndef __ONCSEVENTITERATOR_H__
0003 #define __ONCSEVENTITERATOR_H__
0004 
0005 #include "Eventiterator.h"
0006 #include "oncsBuffer.h"
0007 
0008 #ifndef __CINT__
0009 class WINDOWSEXPORT oncsEventiterator : public Eventiterator {
0010 #else
0011 class  oncsEventiterator : public Eventiterator {
0012 #endif
0013 public:
0014 
0015   virtual ~oncsEventiterator();
0016   oncsEventiterator(const char *filename);
0017   oncsEventiterator(const char *filename, int &status);
0018 
0019   const char * getIdTag() const;
0020   virtual void identify(std::ostream& os = std::cout) const;
0021 
0022 
0023   Event *getNextEvent();
0024 
0025 private:
0026   int read_next_buffer();
0027   
0028   char * thefilename;
0029   int fd;
0030   unsigned int initialbuffer[BUFFERSIZE];
0031   int *bp;
0032   int allocatedsize;
0033 
0034   int current_index;
0035   int last_read_status;
0036   int buffer_size;
0037   oncsBuffer *bptr;
0038 
0039 };
0040 
0041 #endif /* __ONCSEVENTITERATOR_H__ */
0042