Analysis Software
Documentation for sPHENIX simulation 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:
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  void SetOutDir(const std::string &dirname) { outdir = dirname; }
28  void SetPrecision(const int digits) { fp_precision = digits; }
29  void PrintEvtSeq(const int i) { print_evtseq = i; }
30 
31  private:
32  void perform(PHNode *) override;
33  int AddDumpObject(const std::string &NodeName, PHNode *node);
34  int initdump(const std::string &newnode, DumpObject *dmp);
35  std::map<std::string, DumpObject *> dumpthis;
36  std::set<std::string> ignore;
37  std::set<std::string> exclusive;
38  int runnumber = 0;
39  int evtsequence = -9999;
40  int fp_precision = -1;
42  int print_evtseq = 1;
43 };
44 
45 #endif