ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllEventOutputManager.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4AllEventOutputManager.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FUN4ALLRAW_FUN4ALLEVENTOUTPUTMANAGER_H
4 #define FUN4ALLRAW_FUN4ALLEVENTOUTPUTMANAGER_H
5 
7 
8 #include <string>
9 
11 class PHCompositeNode;
12 
14 {
15  public:
16  Fun4AllEventOutputManager(const std::string &myname = "EVENTOUT", const std::string &filename = "eventout.prdf", const unsigned int sizeInMB = 0, const int offset = 0, const int increment = 1);
18 
19  int outfileopen(const std::string & /*fname*/) { return 0; }
20 
21  void Print(const std::string &what = "ALL") const;
22 
23  int Write(PHCompositeNode *startNode);
24 
25  int AddPacket(const int ipkt);
26  int DropPacket(const int ipkt);
27  int AddPacketRange(const int ipktmin, const int ipktmax);
28  int DropPacketRange(const int ipktmin, const int ipktmax);
29  void SetOutfileName(const std::string &fname);
30 
31  protected:
32  std::string m_OutFileRule;
34 };
35 
36 #endif /* FUN4ALL_FUN4ALLEVENTOUTPUTMANAGER_H */