]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TEvtGen/EvtGenModels/EvtJetSet.hh
If default parameters are allowed and runNumber is provided, search first for the...
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenModels / EvtJetSet.hh
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 EVTJETSET_HH
22 #define EVTJETSET_HH
23
24 #include "EvtGenBase/EvtDecayIncoherent.hh"
25
26 class EvtParticle;
27
28 typedef EvtDecayBase* EvtDecayBasePtr;
29
30 #include <iosfwd>
31
32 class EvtJetSet:public  EvtDecayIncoherent  {
33
34 public:
35
36   EvtJetSet();
37   virtual ~EvtJetSet();
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
55 private:
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