Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:24:26

0001 // -*- C++ -*-
0002 #ifndef HERWIG_PotentialTree_H
0003 #define HERWIG_PotentialTree_H
0004 //
0005 // This is the declaration of the PotentialTree class.
0006 //
0007 
0008 #include "CKKWTree.h"
0009 
0010 namespace Herwig {
0011 
0012 using namespace ThePEG;
0013 
0014 /**
0015  *  Struct to store a potential CKKWTree 
0016  */  
0017 struct PotentialTree {
0018 
0019   /**
0020    *  Constructor
0021    */
0022   PotentialTree() {}
0023 
0024   /**
0025    *  Constructor
0026    */
0027   PotentialTree(CKKWTreePtr itree, DiagPtr idiag, 
0028         Ptr<ColourLines>::transient_const_pointer icl) 
0029     : tree_(itree), diagram_(idiag), cl_(icl), wgt_(0.)
0030   {}
0031 
0032   /**
0033    *  Get the tree
0034    */
0035   CKKWTreePtr tree() const {return tree_;}
0036 
0037   /**
0038    *  set the tree
0039    */
0040   void tree(CKKWTreePtr in) {tree_=in;}
0041 
0042   /**
0043    *  Get the diagram
0044    */
0045   tcDiagPtr diagram() {return diagram_;}
0046 
0047   /**
0048    *  set the tree
0049    */
0050   void diagram(tcDiagPtr in) {diagram_=in;}
0051 
0052   /**
0053    *  All diagrams
0054    */
0055   MEBase::DiagramVector & diagrams() {return diagrams_;}
0056 
0057   /**
0058    *  Colour Structure
0059    */
0060   Ptr<ColourLines>::transient_const_pointer colourLines() {return cl_;}
0061 
0062   /**
0063    *  Colour Structure
0064    */
0065   void colourLines(Ptr<ColourLines>::transient_const_pointer in) {cl_=in;}
0066 
0067   /**
0068    *  Set the weight
0069    */
0070   void weight(double weight) {wgt_ = weight;}
0071 
0072   /**
0073    *  Get the weight
0074    */
0075   double weight() const {return wgt_;}
0076 
0077 private:
0078 
0079   /**
0080    *  The tree
0081    */
0082   CKKWTreePtr tree_;
0083 
0084   /**
0085    *  All diagrams
0086    */
0087   MEBase::DiagramVector diagrams_;
0088 
0089   /**
0090    *  The diagram
0091    */
0092   tcDiagPtr diagram_;
0093 
0094   /**
0095    *  The colour structure
0096    */
0097   Ptr<ColourLines>::transient_const_pointer cl_;
0098 
0099   /**
0100    *  The weight
0101    */
0102   double wgt_;
0103 };
0104 
0105 }
0106 
0107 #endif /* HERWIG_PotentialTree_H */