Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19243778
EvtDecayParm.cpp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
EvtDecayParm.cpp
View Options
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Information: See EvtGen/COPYRIGHT
// Copyright (C) 1998 Caltech, UCSB
//
// Module: EvtDecayParm.cc
//
// Description: Store decay parameters for one decay.
//
// Modification history:
//
// RYD April 5, 1997 Module created
//
//------------------------------------------------------------------------
//
#include
"EvtGenBase/EvtPatches.hh"
#include
<iostream>
#include
<fstream>
#include
<stdlib.h>
#include
<ctype.h>
#include
"EvtGenBase/EvtDecayParm.hh"
#include
<string>
using
std
::
fstream
;
void
EvtDecayParm
::
init
(
fcnPtr
pfcn
,
int
ndaug
,
int
*
daugs
,
int
narg
,
double
*
args
,
std
::
string
name
)
{
int
i
;
itsfcn
=
pfcn
;
itsndaug
=
ndaug
;
itsnarg
=
narg
;
itsdaugs
=
new
int
[
itsndaug
];
for
(
i
=
0
;
i
<
itsndaug
;
i
++
){
itsdaugs
[
i
]
=
daugs
[
i
];
}
itsargs
=
new
double
[
itsnarg
];
for
(
i
=
0
;
i
<
itsnarg
;
i
++
){
itsargs
[
i
]
=
args
[
i
];
}
modelname
=
name
;
}
EvtDecayParm
::
EvtDecayParm
()
{
itsfcn
=
0
;
itsndaug
=
0
;
itsnarg
=
0
;
itsdaugs
=
0
;
itsargs
=
0
;
modelname
=
"**********"
;
}
EvtDecayParm
::~
EvtDecayParm
()
{
if
(
itsdaugs
!=
0
){
delete
[]
itsdaugs
;
}
if
(
itsargs
!=
0
){
delete
[]
itsargs
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 4:35 AM (1 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6528923
Default Alt Text
EvtDecayParm.cpp (1 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment