herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::Node Class Reference

The Node class represents a part of the shower history in the merging procedure. More...

#include <Node.h>

Inheritance diagram for Herwig::Node:

Standard constructors and destructors.

MatchboxMEBasePtr thenodeMEPtr
 the Matrixelement representing this node.
 
SubtractionDipolePtr thedipol
 the dipol used to substract and generate kinematics using tilde kinematics
 
NodePtr theparent
 the parent node
 
NodePtr theDeepHead
 The godfather node of whole tree.(Firstnode)
 
int theCutStage
 The CutStage is number of clusterings which are possible without introducing a merging scale to cut away singularities.
 
bool theSubtractedReal
 flag to tell if node is subtracted real
 
bool theVirtualContribution
 flag to tell if node is virtual contribution
 
MergerPtr theMergingHelper
 the merging helper (should be static)
 
StdXCombPtr thexcomb
 
vector< NodePtr > thechildren
 vector of the children node
 
Energy theRunningPt
 the current running pt
 
NodePtr theProjector
 The nodes of the projection stage.
 
bool didflush =false
 flag not to enter infinite loop. (There should be a better solution...)
 
 Node ()
 
 Node (MatchboxMEBasePtr nodeME, int cutstage, MergerPtr mh)
 
 Node (NodePtr deephead, NodePtr head, SubtractionDipolePtr dipol, MatchboxMEBasePtr nodeME, int cutstage)
 
void birth (const vector< MatchboxMEBasePtr > &vec)
 
void setXComb (tStdXCombPtr xc)
 recursive setXComb.
 
pair< CrossSection, CrossSection > calcDipandPS (Energy scale) const
 calculate the dipole and ps approximation
 
CrossSection calcPs (Energy scale) const
 calculate the ps approximation
 
CrossSection calcDip (Energy scale) const
 calculate the dipole
 
void flushCaches ()
 recursive flush caches and clean up XCombs.
 
void clearKinematics ()
 recursive clearKinematics
 
void setKinematics ()
 recursive setKinematics
 
bool generateKinematics (const double *r, bool directCut)
 recursive generateKinematics using tilde kinematics of the dipoles
 
bool firstgenerateKinematics (const double *r, bool directCut)
 generate the kinamatics of the first node
 
const MatchboxMEBasePtr nodeME () const
 
MatchboxMEBasePtr nodeME ()
 
NodePtr parent () const
 
vector< NodePtr > children () const
 vector of children nodes created in birth
 
NodePtr randomChild ()
 
bool allAbove (Energy pt)
 true if all children show scales above pt
 
Energy maxChildPt ()
 return maximum of all child pts.
 
bool isInHistoryOf (NodePtr other)
 true if the node is in the history of other.
 
int legsize () const
 legsize of the node ME
 
void deepHead (NodePtr deephead)
 set the first node (first men). only use in factory
 
NodePtr deepHead () const
 return the first node
 
SubtractionDipolePtr dipole () const
 returns the dipol of the node.
 
StdXCombPtr xcomb () const
 return the xcomb
 
StdXCombPtr xcomb ()
 return the xcomb (if not created, create one from head)
 
Energy runningPt () const
 return the current running pt
 
void runningPt (Energy x)
 set the current running pt
 
int cutStage () const
 return the cut stage to cut on merging pt in generate kinematics
 
vector< NodePtr > getNextOrderedNodes (bool normal=true, double hardscalefactor=1.) const
 get a vector of the next nodes, ordered in pt (and in parton shower phace space)
 
bool inShowerPS (Energy hardpt) const
 
NodePtr getHistory (bool normal=true, double hardscalefactor=1.)
 
bool subtractedReal () const
 
void subtractedReal (bool x)
 set if node correspont to a subtracted real.
 
bool virtualContribution () const
 
void virtualContribution (bool x)
 set if node correspont to a virtual contribution.
 
MergerPtr MH () const
 
void MH (MergerPtr a)
 set the merging helper
 
Energy pT () const
 pT of the dipole
 
pair< PVector, PVectorgetInOut ()
 get incoming and outgoing particles (TODO: expensive)
 

Functions used by the persistent I/O system.

void persistentOutput (PersistentOStream &os) const
 Function used to write out object persistently.
 
void persistentInput (PersistentIStream &is, int version)
 Function used to read in object persistently.
 
static void Init ()
 The standard Init function used to initialize the interfaces.
 

Clone Methods.

virtual IBPtr clone () const
 Make a simple clone of this object.
 
virtual IBPtr fullclone () const
 Make a clone of this object, possibly modifying the cloned object to make it sane.
 
Nodeoperator= (const Node &)=delete
 The assignment operator is private and must never be called.
 

Additional Inherited Members

- Public Types inherited from ThePEG::InterfacedBase
enum  InitState
 
- Public Types inherited from ThePEG::Pointer::ReferenceCounted
typedef unsigned int CounterType
 
- Public Member Functions inherited from ThePEG::Interfaced
virtual bool defaultInit ()
 
PPtr getParticle (PID) const
 
PDPtr getParticleData (PID) const
 
bool used () const
 
void useMe () const
 
tEGPtr generator () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
PPtr getParticle (PID) const
 
PDPtr getParticleData (PID) const
 
bool used () const
 
void useMe () const
 
tEGPtr generator () const
 
- Public Member Functions inherited from ThePEG::InterfacedBase
string fullName () const
 
string name () const
 
string path () const
 
string comment () const
 
void setup (istream &is)
 
void update ()
 
void init ()
 
virtual bool preInitialize () const
 
void initrun ()
 
void finish ()
 
void touch ()
 
void reset ()
 
void clear ()
 
InitState state () const
 
bool locked () const
 
bool touched () const
 
virtual IBPtr fullclone () const
 
void persistentOutput (PersistentOStream &os) const
 
void persistentInput (PersistentIStream &is, int version)
 
virtual void debugme () const
 
void update ()
 
void init ()
 
virtual bool preInitialize () const
 
void initrun ()
 
void finish ()
 
void touch ()
 
void reset ()
 
void clear ()
 
InitState state () const
 
bool locked () const
 
bool touched () const
 
virtual IBPtr fullclone () const
 
- Public Member Functions inherited from ThePEG::Base
void debug () const
 
virtual void debugme () const
 
- Public Member Functions inherited from ThePEG::Pointer::ReferenceCounted
CounterType referenceCount () const
 
- Public Member Functions inherited from ThePEG::Named
 Named (const string &newName=string())
 
 Named (const Named &)=default
 
const string & name () const
 
bool operator== (const Named &other) const
 
bool operator< (const Named &other) const
 
- Static Public Member Functions inherited from ThePEG::Interfaced
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::InterfacedBase
static void Init ()
 
- Static Public Member Functions inherited from ThePEG::Base
static void Init ()
 
- Public Attributes inherited from ThePEG::InterfacedBase
 initializing
 
 uninitialized
 
 initialized
 
 runready
 
- Public Attributes inherited from ThePEG::Pointer::ReferenceCounted
const unsigned long uniqueId
 
- Protected Member Functions inherited from ThePEG::Interfaced
void reporeg (IBPtr object, string name) const
 
bool setDefaultReference (PtrT &ptr, string classname, string objectname)
 
 Interfaced (const string &newName)
 
 Interfaced (const Interfaced &i)
 
void setGenerator (tEGPtr generator)
 
- Protected Member Functions inherited from ThePEG::InterfacedBase
virtual void readSetup (istream &is)
 
virtual void doupdate ()
 
virtual void doinit ()
 
virtual void doinitrun ()
 
virtual void dofinish ()
 
virtual IVector getReferences ()
 
virtual void rebind (const TranslationMap &)
 
virtual IBPtr clone () const=0
 
 InterfacedBase (string newName)
 
 InterfacedBase (const InterfacedBase &i)
 
virtual void readSetup (istream &is)
 
virtual void doupdate ()
 
virtual void doinit ()
 
virtual void doinitrun ()
 
virtual void dofinish ()
 
virtual IVector getReferences ()
 
virtual void rebind (const TranslationMap &)
 
- Protected Member Functions inherited from ThePEG::Pointer::ReferenceCounted
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
- Protected Member Functions inherited from ThePEG::Named
const Namedoperator= (const Named &other)
 
const string & name (const string &newName)
 
- Static Protected Member Functions inherited from ThePEG::Interfaced
static void registerRepository (IBPtr)
 
static void registerRepository (IBPtr, string newName)
 

Detailed Description

The Node class represents a part of the shower history in the merging procedure.

Each node can search for its "childen" in the "birth" step. The children processes that can be created by clustering two legs with a given spectator – just like in the shower. To perform the "birth" a vector of processes is given to the node and the possible dipoles are given by the factory object.

See also
The interfaces defined for Node.

Definition at line 45 of file Node.h.

Constructor & Destructor Documentation

◆ Node()

Herwig::Node::Node ( )
inline

Definition at line 51 of file Node.h.

Member Function Documentation

◆ children()

vector< NodePtr > Herwig::Node::children ( ) const
inline

vector of children nodes created in birth

Definition at line 92 of file Node.h.

References thechildren.

◆ clone()

virtual IBPtr Herwig::Node::clone ( ) const
protectedvirtual

Make a simple clone of this object.

Returns
a pointer to the new object.

Implements ThePEG::InterfacedBase.

◆ cutStage()

int Herwig::Node::cutStage ( ) const
inline

return the cut stage to cut on merging pt in generate kinematics

Definition at line 118 of file Node.h.

References theCutStage.

◆ deepHead() [1/2]

NodePtr Herwig::Node::deepHead ( ) const
inline

return the first node

Definition at line 106 of file Node.h.

References theDeepHead.

◆ deepHead() [2/2]

void Herwig::Node::deepHead ( NodePtr  deephead)
inline

set the first node (first men). only use in factory

Definition at line 104 of file Node.h.

References theDeepHead.

◆ fullclone()

virtual IBPtr Herwig::Node::fullclone ( ) const
protectedvirtual

Make a clone of this object, possibly modifying the cloned object to make it sane.

Returns
a pointer to the new object.

Reimplemented from ThePEG::InterfacedBase.

◆ Init()

static void Herwig::Node::Init ( )
static

The standard Init function used to initialize the interfaces.

Called exactly once for each class by the class description system before the main function starts or when this class is dynamically loaded.

◆ MH() [1/2]

MergerPtr Herwig::Node::MH ( ) const
inline

Definition at line 134 of file Node.h.

◆ MH() [2/2]

void Herwig::Node::MH ( MergerPtr  a)
inline

set the merging helper

Definition at line 136 of file Node.h.

References theMergingHelper.

◆ operator=()

Node & Herwig::Node::operator= ( const Node )
privatedelete

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

◆ parent()

NodePtr Herwig::Node::parent ( ) const
inline

Definition at line 90 of file Node.h.

◆ persistentInput()

void Herwig::Node::persistentInput ( PersistentIStream is,
int  version 
)

Function used to read in object persistently.

Parameters
isthe persistent input stream read from.
versionthe version number of the object when written.

◆ persistentOutput()

void Herwig::Node::persistentOutput ( PersistentOStream os) const

Function used to write out object persistently.

Parameters
osthe persistent output stream written to.

◆ pT()

Energy Herwig::Node::pT ( ) const
inline

pT of the dipole

Definition at line 138 of file Node.h.

References dipole().

◆ runningPt() [1/2]

Energy Herwig::Node::runningPt ( ) const
inline

return the current running pt

Definition at line 114 of file Node.h.

References theRunningPt.

◆ runningPt() [2/2]

void Herwig::Node::runningPt ( Energy  x)
inline

set the current running pt

Definition at line 116 of file Node.h.

References theRunningPt.

◆ setXComb()

void Herwig::Node::setXComb ( tStdXCombPtr  xc)

recursive setXComb.

proStage is the number of clusterings before the projectors get filled.

◆ subtractedReal() [1/2]

bool Herwig::Node::subtractedReal ( ) const
inline

Definition at line 126 of file Node.h.

◆ subtractedReal() [2/2]

void Herwig::Node::subtractedReal ( bool  x)
inline

set if node correspont to a subtracted real.

Definition at line 128 of file Node.h.

References theSubtractedReal.

◆ virtualContribution() [1/2]

bool Herwig::Node::virtualContribution ( ) const
inline

Definition at line 130 of file Node.h.

◆ virtualContribution() [2/2]

void Herwig::Node::virtualContribution ( bool  x)
inline

set if node correspont to a virtual contribution.

Definition at line 132 of file Node.h.

References theVirtualContribution.

Member Data Documentation

◆ didflush

bool Herwig::Node::didflush =false
private

flag not to enter infinite loop. (There should be a better solution...)

Definition at line 174 of file Node.h.

◆ thechildren

vector< NodePtr > Herwig::Node::thechildren
private

vector of the children node

Definition at line 168 of file Node.h.

Referenced by children().

◆ theCutStage

int Herwig::Node::theCutStage
private

The CutStage is number of clusterings which are possible without introducing a merging scale to cut away singularities.

-> subtracted MEs have the CutStage 1. -> virtual and normal tree level ME get 0.

Definition at line 158 of file Node.h.

Referenced by cutStage().

◆ theDeepHead

NodePtr Herwig::Node::theDeepHead
private

The godfather node of whole tree.(Firstnode)

Definition at line 151 of file Node.h.

Referenced by deepHead().

◆ thedipol

SubtractionDipolePtr Herwig::Node::thedipol
private

the dipol used to substract and generate kinematics using tilde kinematics

Definition at line 147 of file Node.h.

◆ theMergingHelper

MergerPtr Herwig::Node::theMergingHelper
private

the merging helper (should be static)

Definition at line 164 of file Node.h.

Referenced by MH().

◆ thenodeMEPtr

MatchboxMEBasePtr Herwig::Node::thenodeMEPtr
private

the Matrixelement representing this node.

Definition at line 144 of file Node.h.

◆ theparent

NodePtr Herwig::Node::theparent
private

the parent node

Definition at line 149 of file Node.h.

◆ theProjector

NodePtr Herwig::Node::theProjector
private

The nodes of the projection stage.

Definition at line 172 of file Node.h.

◆ theRunningPt

Energy Herwig::Node::theRunningPt
private

the current running pt

Definition at line 170 of file Node.h.

Referenced by runningPt().

◆ theSubtractedReal

bool Herwig::Node::theSubtractedReal
private

flag to tell if node is subtracted real

Definition at line 160 of file Node.h.

Referenced by subtractedReal().

◆ theVirtualContribution

bool Herwig::Node::theVirtualContribution
private

flag to tell if node is virtual contribution

Definition at line 162 of file Node.h.

Referenced by virtualContribution().

◆ thexcomb

StdXCombPtr Herwig::Node::thexcomb
private

Definition at line 166 of file Node.h.


The documentation for this class was generated from the following file: