ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHNodeDump.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHNodeDump.h
1 #ifndef NODEDUMP_PHNODEDUMP_H
2 #define NODEDUMP_PHNODEDUMP_H
3 
5 
6 #include <map>
7 #include <set>
8 #include <string>
9 
10 class PHNode;
11 class DumpObject;
12 class PHCompositeNode;
13 
15 {
16  public:
17  PHNodeDump();
18  ~PHNodeDump() override;
19  int CloseOutputFiles();
20  int GetGlobalVars(PHCompositeNode *topNode);
21 
22  int RunNumber() { return runnumber; }
23  int EvtSequence() { return evtsequence; }
24 
25  int AddIgnore(const std::string &name);
26  int Select(const std::string &name);
27  int SetOutDir(const std::string &dirname);
28  void SetPrecision(const int digits) { fp_precision = digits; }
29 
30  protected:
31  void perform(PHNode *) override;
32  int AddDumpObject(const std::string &NodeName, PHNode *node);
33  std::map<std::string, DumpObject *> dumpthis;
34  std::set<std::string> ignore;
35  std::set<std::string> exclusive;
36  int runnumber;
39  std::string outdir;
40 };
41 
42 #endif