Class Reference for E1039 Core & Analysis Software
Fun4AllEventOutputManager.h
Go to the documentation of this file.
1 #ifndef __FUN4ALLEVENTOUTPUTMANAGER_H__
2 #define __FUN4ALLEVENTOUTPUTMANAGER_H__
3 
4 
5 #include "Fun4AllOutputManager.h"
6 #include <string>
7 
9 class PHNodeIOManager;
10 class PHCompositeNode;
11 
13 {
14  public:
15 
16  Fun4AllEventOutputManager(const std::string &myname = "EVENTOUT"
17  ,const std::string &filename = "eventout.prdf"
18  ,const unsigned int sizeInMB =0
19  ,const int offset=0
20  ,const int increment = 1 );
22 
23  int outfileopen(const std::string& /*fname*/) {return 0;}
24 
25  void Print(const std::string &what = "ALL") const;
26 
27  int Write(PHCompositeNode *startNode);
28 
29  int AddPacket(const int ipkt);
30  int DropPacket(const int ipkt);
31  int AddPacketRange(const int ipktmin, const int ipktmax);
32  int DropPacketRange(const int ipktmin, const int ipktmax);
33  void SetOutfileName(const std::string &fname);
34 
35  protected:
36  std::string outfilerule;
38 };
39 
40 #endif /* __FUN4ALLEVENTOUTPUTMANAGER_H__ */
void Print(const std::string &what="ALL") const
print method (dump event selector)
int Write(PHCompositeNode *startNode)
write starting from given node
int AddPacketRange(const int ipktmin, const int ipktmax)
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)
Fun4AllEventOutStream * outstream
int outfileopen(const std::string &)
opens output file
void SetOutfileName(const std::string &fname)
int DropPacketRange(const int ipktmin, const int ipktmax)