BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
PdtEntry Class Reference

#include <PdtEntry.h>

Public Member Functions

 PdtEntry (const char *name, PdtLund::LundType code, float spin, float charge, float mass, float width=0, float massCut=0)
 PdtEntry (const char *name, PdtGeant::GeantType code, float spin, float charge, float mass, float width=0, float massCut=0)
 PdtEntry (const char *name, PdtPdg::PdgType code, float spin, float charge, float mass, float width=0, float massCut=0)
virtual ~PdtEntry ()
void printOn (std::ostream &str) const
void printBFOn (std::ostream &str) const
const char * name () const
float charge () const
float mass () const
float width () const
float widthCut () const
float lifetime () const
float spin () const
float sumBR () const
const vector< DecayMode * > * decayList () const
void addDecay (float bf, vector< PdtEntry * > *kids)
PdtLund::LundType lundId () const
PdtPdg::PdgType pdgId () const
PdtGeant::GeantType geantId () const
PdtPid::PidType pidId () const
PdtPid::PidNeutralType pidNeutId () const
bool operator== (const PdtEntry &) const
bool operator< (const PdtEntry &) const
const PdtEntryconjugate () const
 PdtEntry (const char *name, PdtLund::LundType code, float spin, float charge, float mass, float width=0, float massCut=0)
 PdtEntry (const char *name, PdtGeant::GeantType code, float spin, float charge, float mass, float width=0, float massCut=0)
 PdtEntry (const char *name, PdtPdg::PdgType code, float spin, float charge, float mass, float width=0, float massCut=0)
virtual ~PdtEntry ()
void printOn (std::ostream &str) const
void printBFOn (std::ostream &str) const
const char * name () const
float charge () const
float mass () const
float width () const
float widthCut () const
float lifetime () const
float spin () const
float sumBR () const
const vector< DecayMode * > * decayList () const
void addDecay (float bf, vector< PdtEntry * > *kids)
PdtLund::LundType lundId () const
PdtPdg::PdgType pdgId () const
PdtGeant::GeantType geantId () const
PdtPid::PidType pidId () const
PdtPid::PidNeutralType pidNeutId () const
bool operator== (const PdtEntry &) const
bool operator< (const PdtEntry &) const
const PdtEntryconjugate () const
 PdtEntry (const char *name, PdtLund::LundType code, float spin, float charge, float mass, float width=0, float massCut=0)
 PdtEntry (const char *name, PdtGeant::GeantType code, float spin, float charge, float mass, float width=0, float massCut=0)
 PdtEntry (const char *name, PdtPdg::PdgType code, float spin, float charge, float mass, float width=0, float massCut=0)
virtual ~PdtEntry ()
void printOn (std::ostream &str) const
void printBFOn (std::ostream &str) const
const char * name () const
float charge () const
float mass () const
float width () const
float widthCut () const
float lifetime () const
float spin () const
float sumBR () const
const vector< DecayMode * > * decayList () const
void addDecay (float bf, vector< PdtEntry * > *kids)
PdtLund::LundType lundId () const
PdtPdg::PdgType pdgId () const
PdtGeant::GeantType geantId () const
PdtPid::PidType pidId () const
PdtPid::PidNeutralType pidNeutId () const
bool operator== (const PdtEntry &) const
bool operator< (const PdtEntry &) const
const PdtEntryconjugate () const

Protected Attributes

char * _name
float _mass
float _width
float _lifetime
float _spin
float _charge
float _widthCut
float _sumBR
vector< DecayMode * > * _decayList
PdtLund::LundType _lundId
PdtPdg::PdgType _pdgId
PdtGeant::GeantType _geantId
PdtPid::PidType _pidId
PdtPid::PidNeutralType _pidNeutId
const PdtEntry_conjugate

Detailed Description

Constructor & Destructor Documentation

◆ PdtEntry() [1/9]

PdtEntry::PdtEntry ( const char * name,
PdtLund::LundType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

Definition at line 47 of file PdtEntry.cxx.

49 : _name( new char[strlen( name ) + 1] )
50 , _mass( mass )
51 , _width( width )
52 , _lifetime( ( width > 0.0 ) ? ( HBARC / width ) : FLT_MAX )
53 , _spin( spin )
54 , _charge( charge )
55 , _widthCut( ( massCut > 0.0 ) ? massCut : 2.0 * width )
56 , _sumBR( 0.0 )
57 , _decayList( new vector<DecayMode*> )
58 , _lundId( code )
59 , _pdgId( Pdt::pdgId( code ) )
60 , _geantId( Pdt::geantId( code ) )
61 , _pidId( Pdt::pidId( code ) )
62 , _pidNeutId( Pdt::pidNeutId( code ) )
63 , _conjugate( 0 ) {
64 strcpy( _name, name );
65}
#define HBARC
Definition Pdt.cxx:51
static PdtPid::PidType pidId(const PdtLund::LundType)
Definition Pdt.cxx:404
static PdtGeant::GeantType geantId(const PdtLund::LundType)
Definition Pdt.cxx:384
static PdtPdg::PdgType pdgId(const PdtLund::LundType)
Definition Pdt.cxx:532
static PdtPid::PidNeutralType pidNeutId(const PdtLund::LundType)
Definition Pdt.cxx:422

Referenced by conjugate(), operator<(), and operator==().

◆ PdtEntry() [2/9]

PdtEntry::PdtEntry ( const char * name,
PdtGeant::GeantType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

Definition at line 67 of file PdtEntry.cxx.

69 : _name( new char[strlen( name ) + 1] )
70 , _mass( mass )
71 , _width( width )
72 , _lifetime( ( width > 0.0 ) ? ( HBARC / width ) : FLT_MAX )
73 , _spin( spin )
74 , _charge( charge )
75 , _widthCut( ( massCut > 0.0 ) ? massCut : 2.0 * width )
76 , _sumBR( 0.0 )
77 , _decayList( new vector<DecayMode*> )
78 , _lundId( Pdt::lundId( code ) )
79 , _pdgId( Pdt::pdgId( code ) )
80 , _geantId( code )
81 , _pidId( Pdt::pidId( code ) )
82 , _pidNeutId( Pdt::pidNeutId( code ) )
83 , _conjugate( 0 ) {
84 strcpy( _name, name );
85}
static PdtLund::LundType lundId(const PdtGeant::GeantType)
Definition Pdt.cxx:376

◆ PdtEntry() [3/9]

PdtEntry::PdtEntry ( const char * name,
PdtPdg::PdgType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

Definition at line 87 of file PdtEntry.cxx.

89 : _name( new char[strlen( name ) + 1] )
90 , _mass( mass )
91 , _width( width )
92 , _lifetime( ( width > 0.0 ) ? ( HBARC / width ) : FLT_MAX )
93 , _spin( spin )
94 , _charge( charge )
95 , _widthCut( ( massCut > 0.0 ) ? massCut : 2.0 * width )
96 , _sumBR( 0.0 )
97 , _decayList( new vector<DecayMode*> )
98 , _lundId( Pdt::lundId( code ) )
99 , _pdgId( code )
100 , _geantId( Pdt::geantId( code ) )
101 , _pidId( Pdt::pidId( code ) )
102 , _pidNeutId( Pdt::pidNeutId( code ) )
103 , _conjugate( 0 ) {
104 strcpy( _name, name );
105}

◆ ~PdtEntry() [1/3]

PdtEntry::~PdtEntry ( )
virtual

Definition at line 159 of file PdtEntry.cxx.

159 {
160 vector<DecayMode*>::iterator iter = _decayList->begin();
161 while ( iter != _decayList->end() )
162 {
163 delete *iter;
164 ++iter;
165 }
166 _decayList->clear();
167 delete _decayList;
168 delete[] _name;
169}
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)

◆ PdtEntry() [4/9]

PdtEntry::PdtEntry ( const char * name,
PdtLund::LundType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

◆ PdtEntry() [5/9]

PdtEntry::PdtEntry ( const char * name,
PdtGeant::GeantType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

◆ PdtEntry() [6/9]

PdtEntry::PdtEntry ( const char * name,
PdtPdg::PdgType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

◆ ~PdtEntry() [2/3]

virtual PdtEntry::~PdtEntry ( )
virtual

◆ PdtEntry() [7/9]

PdtEntry::PdtEntry ( const char * name,
PdtLund::LundType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

◆ PdtEntry() [8/9]

PdtEntry::PdtEntry ( const char * name,
PdtGeant::GeantType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

◆ PdtEntry() [9/9]

PdtEntry::PdtEntry ( const char * name,
PdtPdg::PdgType code,
float spin,
float charge,
float mass,
float width = 0,
float massCut = 0 )

◆ ~PdtEntry() [3/3]

virtual PdtEntry::~PdtEntry ( )
virtual

Member Function Documentation

◆ addDecay() [1/3]

void PdtEntry::addDecay ( float bf,
vector< PdtEntry * > * kids )

Definition at line 107 of file PdtEntry.cxx.

107 {
108 _decayList->push_back( new DecayMode( bf, kids ) );
109 _sumBR += bf;
110}

Referenced by Pdt::addDecay(), and Pdt::addDecay().

◆ addDecay() [2/3]

void PdtEntry::addDecay ( float bf,
vector< PdtEntry * > * kids )

◆ addDecay() [3/3]

void PdtEntry::addDecay ( float bf,
vector< PdtEntry * > * kids )

◆ charge() [1/3]

float PdtEntry::charge ( ) const
inline

◆ charge() [2/3]

float PdtEntry::charge ( ) const
inline

◆ charge() [3/3]

float PdtEntry::charge ( ) const
inline

◆ conjugate() [1/3]

const PdtEntry * PdtEntry::conjugate ( ) const

Definition at line 171 of file PdtEntry.cxx.

171 {
172 if ( !_conjugate ) { const_cast<PdtEntry*>( this )->_conjugate = Pdt::conjugate( this ); }
173 return _conjugate;
174}
PdtEntry(const char *name, PdtLund::LundType code, float spin, float charge, float mass, float width=0, float massCut=0)
Definition PdtEntry.cxx:47
static const PdtEntry * conjugate(const PdtEntry *)
Definition Pdt.cxx:598

Referenced by Pdt::sameOrConj().

◆ conjugate() [2/3]

const PdtEntry * PdtEntry::conjugate ( ) const

◆ conjugate() [3/3]

const PdtEntry * PdtEntry::conjugate ( ) const

◆ decayList() [1/3]

const vector< DecayMode * > * PdtEntry::decayList ( ) const
inline

◆ decayList() [2/3]

const vector< DecayMode * > * PdtEntry::decayList ( ) const
inline

◆ decayList() [3/3]

const vector< DecayMode * > * PdtEntry::decayList ( ) const
inline

◆ geantId() [1/3]

PdtGeant::GeantType PdtEntry::geantId ( ) const
inline

◆ geantId() [2/3]

PdtGeant::GeantType PdtEntry::geantId ( ) const
inline

◆ geantId() [3/3]

PdtGeant::GeantType PdtEntry::geantId ( ) const
inline

◆ lifetime() [1/3]

float PdtEntry::lifetime ( ) const
inline

◆ lifetime() [2/3]

float PdtEntry::lifetime ( ) const
inline

◆ lifetime() [3/3]

float PdtEntry::lifetime ( ) const
inline

◆ lundId() [1/3]

PdtLund::LundType PdtEntry::lundId ( ) const
inline

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/PdtEntry.h.

62{ return _lundId; };

Referenced by PdtEntry(), and PdtEntry().

◆ lundId() [2/3]

PdtLund::LundType PdtEntry::lundId ( ) const
inline

◆ lundId() [3/3]

PdtLund::LundType PdtEntry::lundId ( ) const
inline

◆ mass() [1/3]

◆ mass() [2/3]

float PdtEntry::mass ( ) const
inline

◆ mass() [3/3]

float PdtEntry::mass ( ) const
inline

◆ name() [1/3]

const char * PdtEntry::name ( ) const
inline

Definition at line 52 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/PdtEntry.h.

52{ return _name; }

Referenced by PdtEntry(), PdtEntry(), and PdtEntry().

◆ name() [2/3]

const char * PdtEntry::name ( ) const
inline

◆ name() [3/3]

const char * PdtEntry::name ( ) const
inline

◆ operator<() [1/3]

bool PdtEntry::operator< ( const PdtEntry & theOther) const

Definition at line 180 of file PdtEntry.cxx.

180 {
181 return ( _lundId < theOther._lundId ||
182 ( _lundId == theOther._lundId && _geantId < theOther._geantId ) );
183}

◆ operator<() [2/3]

bool PdtEntry::operator< ( const PdtEntry & ) const

◆ operator<() [3/3]

bool PdtEntry::operator< ( const PdtEntry & ) const

◆ operator==() [1/3]

bool PdtEntry::operator== ( const PdtEntry & theOther) const

Definition at line 176 of file PdtEntry.cxx.

176 {
177 return ( theOther._lundId == _lundId && theOther._geantId == _geantId );
178}

◆ operator==() [2/3]

bool PdtEntry::operator== ( const PdtEntry & ) const

◆ operator==() [3/3]

bool PdtEntry::operator== ( const PdtEntry & ) const

◆ pdgId() [1/3]

PdtPdg::PdgType PdtEntry::pdgId ( ) const
inline

◆ pdgId() [2/3]

PdtPdg::PdgType PdtEntry::pdgId ( ) const
inline

◆ pdgId() [3/3]

PdtPdg::PdgType PdtEntry::pdgId ( ) const
inline

◆ pidId() [1/3]

PdtPid::PidType PdtEntry::pidId ( ) const
inline

◆ pidId() [2/3]

PdtPid::PidType PdtEntry::pidId ( ) const
inline

◆ pidId() [3/3]

PdtPid::PidType PdtEntry::pidId ( ) const
inline

◆ pidNeutId() [1/3]

PdtPid::PidNeutralType PdtEntry::pidNeutId ( ) const
inline

◆ pidNeutId() [2/3]

PdtPid::PidNeutralType PdtEntry::pidNeutId ( ) const
inline

◆ pidNeutId() [3/3]

PdtPid::PidNeutralType PdtEntry::pidNeutId ( ) const
inline

◆ printBFOn() [1/3]

void PdtEntry::printBFOn ( std::ostream & str) const

◆ printBFOn() [2/3]

void PdtEntry::printBFOn ( std::ostream & str) const

◆ printBFOn() [3/3]

void PdtEntry::printBFOn ( std::ostream & str) const

◆ printOn() [1/3]

void PdtEntry::printOn ( std::ostream & str) const

◆ printOn() [2/3]

void PdtEntry::printOn ( std::ostream & str) const

◆ printOn() [3/3]

void PdtEntry::printOn ( std::ostream & str) const

◆ spin() [1/3]

float PdtEntry::spin ( ) const
inline

◆ spin() [2/3]

float PdtEntry::spin ( ) const
inline

◆ spin() [3/3]

float PdtEntry::spin ( ) const
inline

◆ sumBR() [1/3]

float PdtEntry::sumBR ( ) const
inline

◆ sumBR() [2/3]

float PdtEntry::sumBR ( ) const
inline

◆ sumBR() [3/3]

float PdtEntry::sumBR ( ) const
inline

◆ width() [1/3]

float PdtEntry::width ( ) const
inline

◆ width() [2/3]

float PdtEntry::width ( ) const
inline

◆ width() [3/3]

float PdtEntry::width ( ) const
inline

◆ widthCut() [1/3]

float PdtEntry::widthCut ( ) const
inline

◆ widthCut() [2/3]

float PdtEntry::widthCut ( ) const
inline

◆ widthCut() [3/3]

float PdtEntry::widthCut ( ) const
inline

Member Data Documentation

◆ _charge

float PdtEntry::_charge
protected

◆ _conjugate

const PdtEntry * PdtEntry::_conjugate
protected

◆ _decayList

vector< DecayMode * > * PdtEntry::_decayList
protected

◆ _geantId

◆ _lifetime

float PdtEntry::_lifetime
protected

◆ _lundId

◆ _mass

float PdtEntry::_mass
protected

◆ _name

char * PdtEntry::_name
protected

◆ _pdgId

PdtPdg::PdgType PdtEntry::_pdgId
protected

◆ _pidId

PdtPid::PidType PdtEntry::_pidId
protected

◆ _pidNeutId

◆ _spin

float PdtEntry::_spin
protected

◆ _sumBR

float PdtEntry::_sumBR
protected

◆ _width

float PdtEntry::_width
protected

◆ _widthCut

float PdtEntry::_widthCut
protected

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