ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllRolloverFileOutStream.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4AllRolloverFileOutStream.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FUN4ALLRAW_FUN4ALLROLLOVERFILEOUTSTREAM_H
4 #define FUN4ALLRAW_FUN4ALLROLLOVERFILEOUTSTREAM_H
5 
6 #include "Fun4AllFileOutStream.h"
7 
8 #include <iostream> // for cout, ostream
9 #include <string> // for string
10 
11 class Event;
12 
14 {
15  public:
16  Fun4AllRolloverFileOutStream(const std::string &frule = "OUTDATA-%010d-%04d.PRDFF",
17  const unsigned int sizeInMB = 0,
18  const int offset = 0,
19  const int increment = 1,
20  const std::string &name = "Fun4AllRolloverFileOutStream");
22  int WriteEventOut(Event *evt);
23  void identify(std::ostream &os = std::cout) const;
24 
25  private:
26  unsigned long long m_MaxFileFize;
28  int m_Offset;
30 };
31 
32 #endif /* __FUN4ALLFILEOUTSTREAM_H__ */