/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtPythia.hh

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // Environment:
00004 //      This software is part of the EvtGen package developed jointly
00005 //      for the BaBar and CLEO collaborations.  If you use all or part
00006 //      of it, please give an appropriate acknowledgement.
00007 //
00008 // Copyright Information: See BelEvtGen/COPYRIGHT
00009 //      Copyright (C) 1998      Caltech, UCSB
00010 //
00011 // Module: BelEvtGen/EvtJetSet.hh
00012 //
00013 // Description:
00014 //
00015 // Modification history:
00016 //
00017 //    DJL/RYD     August 11, 1998         Module created
00018 //    RS          October 28, 2002        copied from JETSET module
00019 //
00020 //------------------------------------------------------------------------
00021 
00022 #ifndef EVTPYTHIA_HH
00023 #define EVTPYTHIA_HH
00024 
00025 #include "EvtGenBase/EvtDecayIncoherent.hh"
00026 #include "EvtGenBase/EvtParticle.hh"
00027 #include <string>
00028 #include <iosfwd>
00029 
00030 typedef EvtDecayBase* EvtDecayBasePtr;
00031 
00032 class EvtPythia:public  EvtDecayIncoherent  {
00033 
00034 public:
00035 
00036   EvtPythia();
00037   virtual ~EvtPythia();
00038   
00039   void getName(std::string& name);
00040   EvtDecayBase* clone();
00041   void decay(EvtParticle *p); 
00042   
00043   std::string commandName();
00044   void command(std::string cmd);
00045   
00046   void init();
00047   
00048   void initProbMax();
00049   
00050   //initialize jetset; sets up decay table and
00051   //paramters. Static so it can be invoked from
00052   //from EvtJscont.
00053   static void pythiaInit(int f);
00054   static void pythiacont(double *,int *, int *,
00055                          double *,double *,double *,double *);
00056 
00057 private:
00058   
00059   void store(EvtDecayBase* jsdecay);
00060   void fixPolarizations(EvtParticle* p);
00061   static void MakePythiaFile(char* fname);
00062   static void WritePythiaParticle(std::ofstream &outdec,EvtId ipar,EvtId iparname,int &first);
00063   static void WritePythiaEntryHeader(std::ofstream &outdec, int lundkc,
00064                                      EvtId evtnum,std::string name,
00065                                      int chg, int cchg, int spin2,double mass,
00066                                      double width, double maxwidth,double ctau,
00067                                      int stable,double rawbrfrsum);
00068   static bool diquark(int);
00069   static double NominalMass(int);
00070   static int njetsetdecays;
00071   static EvtDecayBasePtr* jetsetdecays;
00072   static int ntable;
00073   
00074   static int ncommand;
00075   static int lcommand;
00076   static std::string* commands;
00077 
00078 };
00079 
00080 #endif
00081 
00082 
00083 
00084 

Generated on Tue Nov 29 23:12:22 2016 for BOSS_7.0.2 by  doxygen 1.4.7