DecayMode Class Reference

#include <DecayMode.h>

List of all members.

Public Member Functions

 DecayMode ()
virtual ~DecayMode ()
void getData (int *data, unsigned int size)
void putData (int *data, unsigned int size)
virtual const CLID & clID () const
 DecayMode (float bf, vector< PdtEntry * > *l)
virtual ~DecayMode ()
float BF () const
const vector< PdtEntry * > * childList () const
void printOn (std::ostream &os) const
bool operator== (const DecayMode &other)

Static Public Member Functions

static const CLID & classID ()

Protected Attributes

float _branchingFraction
vector< PdtEntry * > * _children

Private Member Functions

bool values_ok (unsigned int size)

Private Attributes

int m_data [m_size]

Static Private Attributes

static const unsigned int m_size = 10


Detailed Description

Definition at line 8 of file DecayMode.h.


Constructor & Destructor Documentation

DecayMode::DecayMode (  )  [inline]

Definition at line 11 of file DecayMode.h.

References m_data, and m_size.

00012   {
00013     for (unsigned int index=0; index<m_size; index++)
00014       m_data[index] = 0;
00015   }

DecayMode::~DecayMode (  )  [inline, virtual]

Definition at line 16 of file DecayMode.h.

00016 {;}

DecayMode::DecayMode ( float  bf,
vector< PdtEntry * > *  l 
)

Definition at line 19 of file DecayMode.cxx.

References _branchingFraction, and _children.

00019                                                     {
00020   _branchingFraction = bf;
00021   _children = l;
00022 }

virtual DecayMode::~DecayMode (  )  [virtual]


Member Function Documentation

float DecayMode::BF (  )  const [inline]

Definition at line 33 of file DecayMode.h.

References _branchingFraction.

00033 { return _branchingFraction; }

const vector<PdtEntry*>* DecayMode::childList (  )  const [inline]

Definition at line 34 of file DecayMode.h.

References _children.

00034 { return _children; }

static const CLID& DecayMode::classID (  )  [inline, static]

Definition at line 20 of file DecayMode.h.

References CLID_DecayMode.

Referenced by clID().

00020 { return CLID_DecayMode; }

virtual const CLID& DecayMode::clID (  )  const [inline, virtual]

Definition at line 19 of file DecayMode.h.

References classID().

00019 { return  DecayMode::classID();}

void DecayMode::getData ( int *  data,
unsigned int  size 
)

Definition at line 3 of file DecayMode.cxx.

References m_data, and m_size.

00003                                                      {
00004   for (unsigned int index=0; index<m_size; index++) {
00005      data[index] = m_data[index];
00006   }
00007 }

bool DecayMode::operator== ( const DecayMode other  )  [inline]

Definition at line 37 of file DecayMode.h.

References EvtCyclic3::other().

00037 { return this == &other; }

void DecayMode::printOn ( std::ostream os  )  const

void DecayMode::putData ( int *  data,
unsigned int  size 
)

Definition at line 9 of file DecayMode.cxx.

References m_data, and m_size.

Referenced by BesGenModule::callGenerator(), and BesMcTruthWriter::SaveDecayMode().

00009                                                      {
00010   assert(size); 
00011   for (unsigned int index=0; index<m_size; index++) {
00012     m_data[index] = data[index];
00013   }
00014 }

bool DecayMode::values_ok ( unsigned int  size  )  [private]

Definition at line 16 of file DecayMode.cxx.

References m_size.

00016                                             {
00017   if (size > m_size) {
00018     std::cout << " DecayMode:: error: size beyond the range!" <<std::endl;
00019     return false;
00020   } else {
00021     return true;
00022   }
00023 }


Member Data Documentation

float DecayMode::_branchingFraction [protected]

Definition at line 40 of file DecayMode.h.

Referenced by BF(), and DecayMode().

vector<PdtEntry*>* DecayMode::_children [protected]

Definition at line 41 of file DecayMode.h.

Referenced by childList(), and DecayMode().

int DecayMode::m_data[m_size] [private]

Definition at line 26 of file DecayMode.h.

Referenced by DecayMode(), getData(), and putData().

const unsigned int DecayMode::m_size = 10 [static, private]

Definition at line 25 of file DecayMode.h.

Referenced by DecayMode(), getData(), putData(), and values_ok().


Generated on Tue Nov 29 23:18:14 2016 for BOSS_7.0.2 by  doxygen 1.4.7