BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcRecoUtil/src/DecayMode.cxx
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: DecayMode.cxx,v 1.1.1.1 2005/04/21 01:15:12 zhangy Exp $
4
//
5
//------------------------------------------------------------------------
6
//
7
// Moved some stuff here from DecayMode.hh to avoid nested includes
8
//
9
#include "MdcRecoUtil/DecayMode.h"
10
#include "MdcRecoUtil/PdtEntry.h"
11
12
#include <iomanip>
13
#include <vector>
14
using
std::ostream;
15
using
std::setprecision;
16
using
std::setw;
17
using
std::vector;
18
19
DecayMode::DecayMode
(
float
bf, vector<PdtEntry*>* l ) {
20
_branchingFraction
= bf;
21
_children
= l;
22
}
23
24
DecayMode::~DecayMode
() {
25
if
(
_children
)
26
{
27
// need to destroy also -4602
28
vector<PdtEntry*>::iterator
iter
=
_children
->begin();
29
while
(
iter
!=
_children
->end() )
30
{
31
delete
*
iter
;
32
++
iter
;
33
}
34
_children
->clear();
35
}
36
delete
_children
;
37
_children
= 0;
38
}
39
40
void
DecayMode::printOn
( ostream& os )
const
{
41
os <<
" "
<< setw( 5 ) << setprecision( 3 ) <<
_branchingFraction
<<
" ->"
;
42
int
l =
_children
->size();
43
for
(
int
i = 0; i < l; i++ ) os <<
" "
<< ( *
_children
)[i]->name();
44
os <<
'\n'
;
45
}
iter
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
Definition
EvtStreamInputIterator.hh:83
DecayMode::_branchingFraction
float _branchingFraction
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/DecayMode.h:39
DecayMode::DecayMode
DecayMode()
Definition
Event/McTruth/include/McTruth/DecayMode.h:11
DecayMode::~DecayMode
virtual ~DecayMode()
Definition
Event/McTruth/include/McTruth/DecayMode.h:14
DecayMode::printOn
void printOn(std::ostream &os) const
DecayMode::_children
vector< PdtEntry * > * _children
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/DecayMode.h:40
8.0.0
BOSS_Source
Reconstruction
MdcPatRec
MdcRecoUtil
src
DecayMode.cxx
Generated by
1.16.1