LOGO

RestFrames  v1.0.1
RestFrames HEP Event Analysis Software Library
TreePlotLink.hh
Go to the documentation of this file.
1 // RestFrames: particle physics event analysis library
3 // --------------------------------------------------------------------
4 // Copyright (c) 2014-2016, Christopher Rogan
13 //
14 // This file is part of RestFrames.
15 //
16 // RestFrames is free software; you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation; either version 2 of the License, or
19 // (at your option) any later version.
20 //
21 // RestFrames is distributed in the hope that it will be useful,
22 // but WITHOUT ANY WARRANTY; without even the implied warranty of
23 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 // GNU General Public License for more details.
25 //
26 // You should have received a copy of the GNU General Public License
27 // along with RestFrames. If not, see <http://www.gnu.org/licenses/>.
29 
30 #ifndef TreePlotLink_HH
31 #define TreePlotLink_HH
32 
33 #include <string>
34 
35 namespace RestFrames {
36 
37  class TreePlotNode;
38  class Jigsaw;
39 
40  class TreePlotLink {
41  public:
42  TreePlotLink(TreePlotNode* Node1Ptr, TreePlotNode* Node2Ptr);
43  ~TreePlotLink();
44 
45  void SetLabel(const std::string& label);
46  void SetWavy(bool wavy);
47  void SetJigsaw(const Jigsaw& jigsaw);
48 
49  TreePlotNode* GetNode1() const;
50  TreePlotNode* GetNode2() const;
51  bool DoWavy() const;
52  std::string GetLabel() const;
53  bool DoLabel() const;
54  Jigsaw const& GetJigsaw() const;
55 
56  private:
57  TreePlotNode* m_Node1Ptr;
58  TreePlotNode* m_Node2Ptr;
59  bool m_Wavy;
60  bool m_DoLabel;
61  std::string m_Label;
62  const Jigsaw* m_JigsawPtr;
63 
64  };
65 
66 }
67 
68 #endif
RestFrames::TreePlotNode
Definition: TreePlotNode.hh:42
RestFrames::TreePlotLink
Definition: TreePlotLink.hh:40
RestFrames::Jigsaw
abstract base class for all Jigsaw objects
Definition: Jigsaw.hh:44