herwig is hosted by Hepforge, IPPP Durham
Herwig  7.1.5
PotentialTree.h
1 // -*- C++ -*-
2 #ifndef HERWIG_PotentialTree_H
3 #define HERWIG_PotentialTree_H
4 //
5 // This is the declaration of the PotentialTree class.
6 //
7 
8 #include "CKKWTree.h"
9 
10 namespace Herwig {
11 
12 using namespace ThePEG;
13 
17 struct PotentialTree {
18 
23 
27  PotentialTree(CKKWTreePtr itree, DiagPtr idiag,
28  Ptr<ColourLines>::transient_const_pointer icl)
29  : tree_(itree), diagram_(idiag), cl_(icl), wgt_(0.)
30  {}
31 
35  CKKWTreePtr tree() const {return tree_;}
36 
40  void tree(CKKWTreePtr in) {tree_=in;}
41 
45  tcDiagPtr diagram() {return diagram_;}
46 
50  void diagram(tcDiagPtr in) {diagram_=in;}
51 
55  MEBase::DiagramVector & diagrams() {return diagrams_;}
56 
60  Ptr<ColourLines>::transient_const_pointer colourLines() {return cl_;}
61 
65  void colourLines(Ptr<ColourLines>::transient_const_pointer in) {cl_=in;}
66 
70  void weight(double weight) {wgt_ = weight;}
71 
75  double weight() const {return wgt_;}
76 
77 private:
78 
82  CKKWTreePtr tree_;
83 
88 
92  tcDiagPtr diagram_;
93 
97  Ptr<ColourLines>::transient_const_pointer cl_;
98 
102  double wgt_;
103 };
104 
105 }
106 
107 #endif /* HERWIG_PotentialTree_H */
double weight() const
Get the weight.
Definition: PotentialTree.h:75
PotentialTree(CKKWTreePtr itree, DiagPtr idiag, Ptr< ColourLines >::transient_const_pointer icl)
Constructor.
Definition: PotentialTree.h:27
void weight(double weight)
Set the weight.
Definition: PotentialTree.h:70
double wgt_
The weight.
Ptr< ColourLines >::transient_const_pointer colourLines()
Colour Structure.
Definition: PotentialTree.h:60
void diagram(tcDiagPtr in)
set the tree
Definition: PotentialTree.h:50
Ptr< ColourLines >::transient_const_pointer cl_
The colour structure.
Definition: PotentialTree.h:97
tcDiagPtr diagram_
The diagram.
Definition: PotentialTree.h:92
void colourLines(Ptr< ColourLines >::transient_const_pointer in)
Colour Structure.
Definition: PotentialTree.h:65
tcDiagPtr diagram()
Get the diagram.
Definition: PotentialTree.h:45
CKKWTreePtr tree() const
Get the tree.
Definition: PotentialTree.h:35
CKKWTreePtr tree_
The tree.
Definition: PotentialTree.h:82
PotentialTree()
Constructor.
Definition: PotentialTree.h:22
vector< DiagPtr > DiagramVector
-*- C++ -*-
void tree(CKKWTreePtr in)
set the tree
Definition: PotentialTree.h:40
MEBase::DiagramVector diagrams_
All diagrams.
Definition: PotentialTree.h:87
Struct to store a potential CKKWTree.
Definition: PotentialTree.h:17
MEBase::DiagramVector & diagrams()
All diagrams.
Definition: PotentialTree.h:55