BOSS
7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/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
//need to destroy also -4602
27
vector<PdtEntry*>::iterator
iter
=
_children
->begin();
28
while
(
iter
!=
_children
->end() ) {
delete
*
iter
; ++
iter
; }
29
_children
->clear();
30
}
31
delete
_children
;
32
_children
=0;
33
}
34
35
void
36
DecayMode::printOn
(ostream& os)
const
{
37
os <<
" "
<< setw(5) << setprecision(3)
38
<<
_branchingFraction
39
<<
" ->"
;
40
int
l =
_children
->size();
41
for
(
int
i=0; i<l; i++)
42
os <<
" "
<< (*
_children
)[i]->name();
43
os <<
'\n'
;
44
}
45
iter
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
Definition:
EvtStreamInputIterator.hh:100
DecayMode::_branchingFraction
float _branchingFraction
Definition:
InstallArea/include/MdcRecoUtil/MdcRecoUtil/DecayMode.h:40
DecayMode::DecayMode
DecayMode()
Definition:
Event/McTruth/McTruth-00-02-19/McTruth/DecayMode.h:11
DecayMode::~DecayMode
virtual ~DecayMode()
Definition:
Event/McTruth/McTruth-00-02-19/McTruth/DecayMode.h:16
DecayMode::printOn
void printOn(std::ostream &os) const
DecayMode::_children
vector< PdtEntry * > * _children
Definition:
InstallArea/include/MdcRecoUtil/MdcRecoUtil/DecayMode.h:41
source
Reconstruction
MdcPatRec
MdcRecoUtil
MdcRecoUtil-00-01-08
src
DecayMode.cxx
Generated by
1.9.6