herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
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
10namespace Herwig {
11
12using namespace ThePEG;
13
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
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
77private:
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 */
vector< DiagPtr > DiagramVector
-*- C++ -*-
Struct to store a potential CKKWTree.
Definition: PotentialTree.h:17
Ptr< ColourLines >::transient_const_pointer colourLines()
Colour Structure.
Definition: PotentialTree.h:60
tcDiagPtr diagram_
The diagram.
Definition: PotentialTree.h:92
double weight() const
Get the weight.
Definition: PotentialTree.h:75
void diagram(tcDiagPtr in)
set the tree
Definition: PotentialTree.h:50
PotentialTree(CKKWTreePtr itree, DiagPtr idiag, Ptr< ColourLines >::transient_const_pointer icl)
Constructor.
Definition: PotentialTree.h:27
Ptr< ColourLines >::transient_const_pointer cl_
The colour structure.
Definition: PotentialTree.h:97
void colourLines(Ptr< ColourLines >::transient_const_pointer in)
Colour Structure.
Definition: PotentialTree.h:65
CKKWTreePtr tree() const
Get the tree.
Definition: PotentialTree.h:35
MEBase::DiagramVector & diagrams()
All diagrams.
Definition: PotentialTree.h:55
void weight(double weight)
Set the weight.
Definition: PotentialTree.h:70
tcDiagPtr diagram()
Get the diagram.
Definition: PotentialTree.h:45
double wgt_
The weight.
CKKWTreePtr tree_
The tree.
Definition: PotentialTree.h:82
PotentialTree()
Constructor.
Definition: PotentialTree.h:22
MEBase::DiagramVector diagrams_
All diagrams.
Definition: PotentialTree.h:87
void tree(CKKWTreePtr in)
set the tree
Definition: PotentialTree.h:40