MINT2
Typedefs | Functions
DecayTree.h File Reference
#include <iostream>
#include "Mint/DDTree.h"
#include "Mint/DecayTreeItem.h"
#include "Mint/MultiQuarkContent.h"

Go to the source code of this file.

Typedefs

typedef DDTree< DecayTreeItemDecayTree
 

Functions

void anti (DecayTree &dt)
 
std::string uniqueName (const DecayTree &dt_in)
 
MultiQuarkContent netQuarkContent (const DecayTree &dt_in)
 

Typedef Documentation

◆ DecayTree

Definition at line 35 of file DecayTree.h.

Function Documentation

◆ anti()

void anti ( DecayTree dt)

Definition at line 16 of file DecayTree.cpp.

16  {
17  // if(! dt.getVal().antiThis()) return;
18  // no point continuing if this has no antiparticle.
19  // .. there is a point!
20  dt.getVal().antiThis();
21 
22  for(int i=0; i<dt.nDgtr(); i++){
23  anti(*(dt.getDgtrTreePtr(i)));
24  }
25 }
const ValueType & getVal() const
Definition: DDTree.h:102
MINT::const_counted_ptr< DDTree< ValueType > > getDgtrTreePtr(int i) const
Definition: DDTree.h:114
void anti(DecayTree &dt)
Definition: DecayTree.cpp:16
int nDgtr() const
Definition: DDTree.h:96

◆ netQuarkContent()

MultiQuarkContent netQuarkContent ( const DecayTree dt_in)

Definition at line 33 of file DecayTree.cpp.

33  {
34  if(dt_in.getVal().isNonResonant()){
35  MultiQuarkContent quarks;
36  for(int i=0; i < dt_in.nDgtr(); i++){
37  quarks += netQuarkContent(*dt_in.getDgtrTreePtr(i));
38  }
39  return quarks;
40  }else{
41  return dt_in.getVal().props()->netQuarkContent();
42  }
43 }
const ValueType & getVal() const
Definition: DDTree.h:102
MultiQuarkContent netQuarkContent(const DecayTree &dt_in)
Definition: DecayTree.cpp:33
MINT::const_counted_ptr< DDTree< ValueType > > getDgtrTreePtr(int i) const
Definition: DDTree.h:114
int nDgtr() const
Definition: DDTree.h:96

◆ uniqueName()

std::string uniqueName ( const DecayTree dt_in)

Definition at line 27 of file DecayTree.cpp.

27  {
28  DecayTree dt(dt_in);
29  standardSort(dt);
30  return dt.oneLiner();
31 }
bool standardSort(DecayTree &A)
Definition: DDTree.h:37