MINT2
Public Member Functions | Protected Attributes | Friends | List of all members
AssociatedDecayTreeItem Class Reference

#include <AssociatedDecayTreeItem.h>

Inheritance diagram for AssociatedDecayTreeItem:
DecayTreeItem

Public Member Functions

 AssociatedDecayTreeItem (int i=0)
 
 AssociatedDecayTreeItem (const AssociatedDecayTreeItem &other)
 
 AssociatedDecayTreeItem (const DecayTreeItem &other)
 
const std::vector< int > & asi () const
 
int asi (int i) const
 
virtual void print (std::ostream &out=std::cout) const
 
TLorentzVector p (const IDalitzEvent *evt) const
 
double mReco2 (const IDalitzEvent *evt) const
 
double mReco (const IDalitzEvent *evt) const
 
double mRes (const IDalitzEvent *evt=0) const
 
- Public Member Functions inherited from DecayTreeItem
 DecayTreeItem (int i=0)
 
 DecayTreeItem (const DecayTreeItem &other)
 
DecayTreeItemoperator= (const DecayTreeItem &other)
 
virtual ~DecayTreeItem ()
 
 operator int ()
 
 operator int () const
 
int parityFactor () const
 
int L () const
 
char L_as_SPD () const
 
void setL (int l)
 
void unSetL ()
 
void setPDG (int id)
 
const ParticlePropertiesprops () const
 
std::string name () const
 
std::string SVPAT () const
 
double mass () const
 
bool isNonResonant () const
 
double width () const
 
std::string charge () const
 
bool hasDistinctAnti () const
 
int pdg () const
 
std::string J () const
 
bool ChargeConThis ()
 
bool antiThis ()
 
virtual void printShort (std::ostream &out=std::cout) const
 
DecayTreeItem operator- () const
 
DecayTreeItem operator+ () const
 

Protected Attributes

std::vector< int > _asi
 

Friends

class AssociatingDecayTree
 

Additional Inherited Members

- Public Attributes inherited from DecayTreeItem
int _pdg_id
 
int _L_angMom
 

Detailed Description

Definition at line 12 of file AssociatedDecayTreeItem.h.

Constructor & Destructor Documentation

◆ AssociatedDecayTreeItem() [1/3]

AssociatedDecayTreeItem::AssociatedDecayTreeItem ( int  i = 0)

Definition at line 9 of file AssociatedDecayTreeItem.cpp.

10  : DecayTreeItem(i)
11 {
12  _asi.clear();
13 }
DecayTreeItem(int i=0)

◆ AssociatedDecayTreeItem() [2/3]

AssociatedDecayTreeItem::AssociatedDecayTreeItem ( const AssociatedDecayTreeItem other)

Definition at line 14 of file AssociatedDecayTreeItem.cpp.

15  : DecayTreeItem(other)
16  , _asi(other._asi)
17 {}
DecayTreeItem(int i=0)

◆ AssociatedDecayTreeItem() [3/3]

AssociatedDecayTreeItem::AssociatedDecayTreeItem ( const DecayTreeItem other)

Definition at line 18 of file AssociatedDecayTreeItem.cpp.

19  : DecayTreeItem(other)
20 {
21  _asi.clear();
22 }
DecayTreeItem(int i=0)

Member Function Documentation

◆ asi() [1/2]

const std::vector< int > & AssociatedDecayTreeItem::asi ( ) const

Definition at line 23 of file AssociatedDecayTreeItem.cpp.

23  {
24  return _asi;
25 }

◆ asi() [2/2]

int AssociatedDecayTreeItem::asi ( int  i) const

Definition at line 26 of file AssociatedDecayTreeItem.cpp.

26  {
27  return _asi[i];
28 }

◆ mReco()

double AssociatedDecayTreeItem::mReco ( const IDalitzEvent evt) const

Definition at line 61 of file AssociatedDecayTreeItem.cpp.

61  {
62  if(0 == evt) return 0;
63  double m2 = mReco2(evt);
64  if(m2 >= 0.0) return sqrt(m2);
65  else return -sqrt(m2);
66 }
double mReco2(const IDalitzEvent *evt) const
static const double m2

◆ mReco2()

double AssociatedDecayTreeItem::mReco2 ( const IDalitzEvent evt) const

Definition at line 57 of file AssociatedDecayTreeItem.cpp.

57  {
58  if(0 == evt) return 0;
59  return evt->sij(this->asi());
60 }
virtual double sij(const MINT::PolymorphVector< int > &indices) const =0
const std::vector< int > & asi() const

◆ mRes()

double AssociatedDecayTreeItem::mRes ( const IDalitzEvent evt = 0) const

Definition at line 67 of file AssociatedDecayTreeItem.cpp.

67  {
68  // will return actual mass for the "non-resonant particles"
69  if(this->isNonResonant() && 0 != evt){
70  return mReco(evt);
71  }else{
72  return this->mass();
73  }
74 }
double mass() const
double mReco(const IDalitzEvent *evt) const
bool isNonResonant() const

◆ p()

TLorentzVector AssociatedDecayTreeItem::p ( const IDalitzEvent evt) const

Definition at line 48 of file AssociatedDecayTreeItem.cpp.

48  {
49  TLorentzVector pV;
50  if(0 == evt) return pV;
51  for(unsigned int i=0; i < asi().size(); i++){
52  pV += evt->p(this->asi(i));
53  }
54  return pV;
55 }
virtual const TLorentzVector & p(unsigned int i) const =0
const std::vector< int > & asi() const

◆ print()

void AssociatedDecayTreeItem::print ( std::ostream &  out = std::cout) const
virtual

Reimplemented from DecayTreeItem.

Definition at line 30 of file AssociatedDecayTreeItem.cpp.

30  {
31  const ParticleProperties* pp = props();
32  if(0 == pp){
33  out << _pdg_id;
34  }else{
35  out << pp->name()
36  << "(" << pp->SVPAT() <<")";
37  }
38  if(! this->_asi.empty()){
39  out << "[";
40  for(unsigned int i=0; i< _asi.size(); i++){
41  out << this->_asi[i];
42  }
43  out << "]";
44  }
45 }
std::string SVPAT() const
std::string name() const
const ParticleProperties * props() const

Friends And Related Function Documentation

◆ AssociatingDecayTree

friend class AssociatingDecayTree
friend

Definition at line 35 of file AssociatedDecayTreeItem.h.

Member Data Documentation

◆ _asi

std::vector<int> AssociatedDecayTreeItem::_asi
protected

Definition at line 14 of file AssociatedDecayTreeItem.h.


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