]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenModels/EvtJetSetCDF.hh
An effective FD corretion
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenModels / EvtJetSetCDF.hh
CommitLineData
da0e9ce3 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: EvtGen/EvtJetSet.hh
12//
13// Description:
14//
15// Modification history:
16//
17// DJL/RYD August 11, 1998 Module created
18//
19//------------------------------------------------------------------------
20
21#ifndef EVTJETSETCDF_HH
22#define EVTJETSETCDF_HH
23
24#include "EvtGenBase/EvtDecayIncoherent.hh"
25
26class EvtParticle;
27
28typedef EvtDecayBase* EvtDecayBasePtr;
29
30#include <iosfwd>
31
32class EvtJetSetCDF:public EvtDecayIncoherent {
33
34public:
35
36 EvtJetSetCDF();
37 virtual ~EvtJetSetCDF();
38
39 std::string getName();
40 EvtDecayBase* clone();
41 void decay(EvtParticle *p);
42
43 std::string commandName();
44 void command(std::string cmd);
45
46 void init();
47
48 void initProbMax();
49
50 //initialize jetset; sets up decay table and
51 //paramters. Static so it can be invoked from
52 //from EvtJscont.
53 static void jetSetInit();
54
55private:
56
57 void store(EvtDecayBase* jsdecay);
58 void fixPolarizations(EvtParticle* p);
59 static void MakeJetSetFile(char* fname);
60 static void WriteJetSetParticle(std::ofstream &outdec,EvtId ipar,EvtId iparname,int &first);
61 static void WriteJetSetEntryHeader(std::ofstream &outdec, int lundkc,
62 EvtId evtnum,std::string name,
63 int chg, int cchg, int spin2,double mass,
64 double width, double maxwidth,double ctau,
65 int stable,double rawbrfrsum);
66
67 static int njetsetdecays;
68 static EvtDecayBasePtr* jetsetdecays;
69 static int ntable;
70
71 static int ncommand;
72 static int lcommand;
73 static std::string* commands;
74
75};
76
77#endif
78
79
80
81