BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDecayParm.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of the EvtGen package developed jointly
5// for the BaBar and CLEO collaborations. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtDecayParm.cc
12//
13// Description: Store decay parameters for one decay.
14//
15// Modification history:
16//
17// RYD April 5, 1997 Module created
18//
19//------------------------------------------------------------------------
20//
21#include "EvtDecayParm.hh"
22#include "EvtPatches.hh"
23#include <ctype.h>
24#include <fstream>
25#include <iostream>
26#include <stdlib.h>
27#include <string>
28using std::fstream;
29
30void EvtDecayParm::init( fcnPtr pfcn, int ndaug, int* daugs, int narg, double* args,
31 std::string name ) {
32
33 int i;
34
35 itsfcn = pfcn;
36 itsndaug = ndaug;
37 itsnarg = narg;
38
39 itsdaugs = new int[itsndaug];
40 for ( i = 0; i < itsndaug; i++ ) { itsdaugs[i] = daugs[i]; }
41 itsargs = new double[itsnarg];
42 for ( i = 0; i < itsnarg; i++ ) { itsargs[i] = args[i]; }
43 modelname = name;
44}
45
47
48 itsfcn = 0;
49 itsndaug = 0;
50 itsnarg = 0;
51 itsdaugs = 0;
52 itsargs = 0;
53
54 modelname = "**********";
55}
56
58
59 if ( itsdaugs != 0 ) { delete[] itsdaugs; }
60
61 if ( itsargs != 0 ) { delete[] itsargs; }
62}
void(* fcnPtr)(EvtParticle *, int, int *, double *)
void init(fcnPtr pfcn, int ndaug, int *daugs, int narg, double *args, std::string name)