1 //--------------------------------------------------------------------------
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.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtGen/EvtJetSet.hh
15 // Modification history:
17 // DJL/RYD August 11, 1998 Module created
19 //------------------------------------------------------------------------
24 #include "EvtGenBase/EvtDecayIncoherent.hh"
28 typedef EvtDecayBase* EvtDecayBasePtr;
32 class EvtJetSet:public EvtDecayIncoherent {
39 std::string getName();
40 EvtDecayBase* clone();
41 void decay(EvtParticle *p);
43 std::string commandName();
44 void command(std::string cmd);
50 //initialize jetset; sets up decay table and
51 //paramters. Static so it can be invoked from
53 static void jetSetInit();
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);
67 static int njetsetdecays;
68 static EvtDecayBasePtr* jetsetdecays;
73 static std::string* commands;