ThePEG  1.8.0
GraphvizPlot.h
1 // -*- C++ -*-
2 //
3 // Graphviz.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2011 Leif Lonnblad
5 //
6 // ThePEG is licenced under version 2 of the GPL, see COPYING for details.
7 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
8 //
9 #ifndef THEPEG_GraphvizPlot_H
10 #define THEPEG_GraphvizPlot_H
11 //
12 // This is the declaration of the GraphvizPlot class.
13 //
14 
15 #include "ThePEG/Repository/CurrentGenerator.h"
16 #include "ThePEG/Handlers/AnalysisHandler.h"
17 
18 namespace ThePEG {
19 
28 
29 public:
30 
36  GraphvizPlot() : _eventNumber(1), _quiet(false) {}
38 
39 public:
40 
60  virtual void analyze(tEventPtr event, long ieve, int loop, int state);
62 
63 public:
64 
71  void persistentOutput(PersistentOStream & os) const;
72 
78  void persistentInput(PersistentIStream & is, int version);
80 
87  static void Init();
88 
89 protected:
90 
97  virtual IBPtr clone() const {return new_ptr(*this);}
98 
103  virtual IBPtr fullclone() const {return new_ptr(*this);}
105 
106 protected:
107 
114  virtual void dofinish();
116 
120  string particleName(tcPPtr) const;
121 
122 private:
123 
129 
135 
136 private:
137 
142 
146  bool _quiet;
147 
148 
149 };
150 
151 }
152 
153 #include "ThePEG/Utilities/ClassTraits.h"
154 
155 namespace ThePEG {
156 
161 template <>
162 struct BaseClassTrait<GraphvizPlot,1> {
164  typedef AnalysisHandler NthBase;
165 };
166 
169 template <>
170 struct ClassTraits<GraphvizPlot>
171  : public ClassTraitsBase<GraphvizPlot> {
173  static string className() { return "ThePEG::GraphvizPlot"; }
177  static string library() { return "GraphvizPlot.so"; }
178 };
179 
182 }
183 
184 #endif /* THEPEG_GraphvizPlot_H */