EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
oncsEventiterator.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file oncsEventiterator.h
1 // -*- c++ -*-
2 #ifndef __ONCSEVENTITERATOR_H__
3 #define __ONCSEVENTITERATOR_H__
4 
5 #include "Eventiterator.h"
6 #include "oncsBuffer.h"
7 
8 #ifndef __CINT__
10 #else
11 class oncsEventiterator : public Eventiterator {
12 #endif
13 public:
14 
15  virtual ~oncsEventiterator();
16  oncsEventiterator(const char *filename);
17  oncsEventiterator(const char *filename, int &status);
18 
19  const char * getIdTag() const;
20  virtual void identify(std::ostream& os = std::cout) const;
21 
22 
23  Event *getNextEvent();
24 
25 private:
26  int read_next_buffer();
27 
28  char * thefilename;
29  int fd;
30  unsigned int initialbuffer[BUFFERSIZE];
31  int *bp;
33 
38 
39 };
40 
41 #endif /* __ONCSEVENTITERATOR_H__ */
42