Warning, file /include/Rivet/Tools/ProjectionTreePlotter.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002 #include "Rivet/Tools/Logging.hh"
0003 #include "Rivet/Analysis.hh"
0004 #include "Rivet/Tools/Logging.hh"
0005 #include "Rivet/AnalysisHandler.hh"
0006 #include "Rivet/ProjectionHandler.hh"
0007
0008 #ifndef RIVET_RivetProjectionTree_HH
0009 #define RIVET_RivetProjectionTree_HH
0010
0011
0012 namespace Rivet{
0013
0014
0015 class ProjectionTreeGenerator{
0016 private:
0017
0018
0019
0020 std::string _path;
0021
0022
0023 std::string _title;
0024
0025
0026 bool _treeGenerated;
0027
0028
0029 size_t _nAnalyses;
0030
0031
0032
0033
0034
0035 std::vector<Rivet::ConstProjectionPtr> _projVector;
0036
0037
0038
0039 std::vector<std::pair<size_t, size_t>> _edgeVector;
0040
0041
0042 std::vector<std::string> _nameVector;
0043
0044
0045
0046 public:
0047
0048 ProjectionTreeGenerator(const std::string& path);
0049
0050
0051 ProjectionTreeGenerator();
0052
0053
0054 void setPath(const std::string& path);
0055
0056
0057 void setTitle(const std::string& title);
0058
0059
0060 int generateProjTree(const std::vector<std::string>& analyses);
0061
0062
0063 int getProjTree(const AnalysisHandler& ah);
0064
0065
0066 void writeProjTree() const;
0067
0068
0069
0070 inline const std::vector<string>& getProjNames() const{
0071 return _nameVector;
0072 }
0073
0074
0075 inline const std::vector<std::pair<size_t, size_t>>& getEdges() const {
0076 return _edgeVector;
0077 }
0078
0079
0080 Log& getLog() const;
0081 };
0082 }
0083
0084 #endif