herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
Herwig::Tree2toNGenerator::LineMatcher Struct Reference

Helper for topology restrictions. More...

#include <Tree2toNGenerator.h>

Public Member Functions

 LineMatcher ()
 Default constructor.
 
 LineMatcher (const PDVector &p, const pair< int, int > &r)
 Construct given particles and a range.
 
void rebind (Tree2toNGenerator *g)
 Rebind the particle data pointers.
 
void reset ()
 Reset this matcher.
 
void add (tcPDPtr p, int n)
 Count the given multiplicity.
 
bool check () const
 Ceck if restrictions are met.
 

Public Attributes

set< tcPDPtrparticles
 The group of lines to be considered.
 
pair< int, int > range
 The range allowed.
 
int count
 The current count.
 

Detailed Description

Helper for topology restrictions.

Definition at line 256 of file Tree2toNGenerator.h.

Constructor & Destructor Documentation

◆ LineMatcher() [1/2]

Herwig::Tree2toNGenerator::LineMatcher::LineMatcher ( )
inline

Default constructor.

Definition at line 276 of file Tree2toNGenerator.h.

◆ LineMatcher() [2/2]

Herwig::Tree2toNGenerator::LineMatcher::LineMatcher ( const PDVector p,
const pair< int, int > &  r 
)
inline

Construct given particles and a range.

Definition at line 282 of file Tree2toNGenerator.h.

References ThePEG::inserter(), and particles.

Member Function Documentation

◆ add()

void Herwig::Tree2toNGenerator::LineMatcher::add ( tcPDPtr  p,
int  n 
)
inline

Count the given multiplicity.

Definition at line 309 of file Tree2toNGenerator.h.

References count, and particles.

◆ check()

bool Herwig::Tree2toNGenerator::LineMatcher::check ( ) const
inline

Ceck if restrictions are met.

Definition at line 318 of file Tree2toNGenerator.h.

References count, and range.

◆ rebind()

void Herwig::Tree2toNGenerator::LineMatcher::rebind ( Tree2toNGenerator g)
inline

Rebind the particle data pointers.

Definition at line 291 of file Tree2toNGenerator.h.

References particles.

◆ reset()

void Herwig::Tree2toNGenerator::LineMatcher::reset ( )
inline

Reset this matcher.

Definition at line 302 of file Tree2toNGenerator.h.

References count.

Member Data Documentation

◆ count

int Herwig::Tree2toNGenerator::LineMatcher::count

The current count.

Definition at line 271 of file Tree2toNGenerator.h.

Referenced by add(), check(), and reset().

◆ particles

set<tcPDPtr> Herwig::Tree2toNGenerator::LineMatcher::particles

The group of lines to be considered.

Definition at line 261 of file Tree2toNGenerator.h.

Referenced by add(), LineMatcher(), and rebind().

◆ range

pair<int,int> Herwig::Tree2toNGenerator::LineMatcher::range

The range allowed.

Definition at line 266 of file Tree2toNGenerator.h.

Referenced by check().


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