BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPythia.hh
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 BelEvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: BelEvtGen/EvtJetSet.hh
12//
13// Description:
14//
15// Modification history:
16//
17// DJL/RYD August 11, 1998 Module created
18// RS October 28, 2002 copied from JETSET module
19//
20//------------------------------------------------------------------------
21
22#ifndef EVTPYTHIA_HH
23#define EVTPYTHIA_HH
24
27#include <string>
28#include <iosfwd>
29
31
33
34public:
35
36 EvtPythia();
37 virtual ~EvtPythia();
38
39 void getName(std::string& name);
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 pythiaInit(int f);
54 static void pythiacont(double *,int *, int *,
55 double *,double *,double *,double *);
56
57private:
58
59 void store(EvtDecayBase* jsdecay);
60 void fixPolarizations(EvtParticle* p);
61 static void MakePythiaFile(char* fname);
62 static void WritePythiaParticle(std::ofstream &outdec,EvtId ipar,EvtId iparname,int &first);
63 static void WritePythiaEntryHeader(std::ofstream &outdec, int lundkc,
64 EvtId evtnum,std::string name,
65 int chg, int cchg, int spin2,double mass,
66 double width, double maxwidth,double ctau,
67 int stable,double rawbrfrsum);
68 static bool diquark(int);
69 static double NominalMass(int);
70 static int njetsetdecays;
71 static EvtDecayBasePtr* jetsetdecays;
72 static int ntable;
73
74 static int ncommand;
75 static int lcommand;
76 static std::string* commands;
77
78};
79
80#endif
81
82
83
84
double mass
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
EvtDecayBase * EvtDecayBasePtr
Definition: EvtPythia.hh:30
Definition: EvtId.hh:27
static void pythiaInit(int f)
Definition: EvtPythia.cc:1051
virtual ~EvtPythia()
Definition: EvtPythia.cc:96
void initProbMax()
Definition: EvtPythia.cc:140
static void pythiacont(double *, int *, int *, double *, double *, double *, double *)
Definition: EvtPythia.cc:203
void command(std::string cmd)
Definition: EvtPythia.cc:177
void decay(EvtParticle *p)
Definition: EvtPythia.cc:211
void getName(std::string &name)
Definition: EvtPythia.cc:127
std::string commandName()
Definition: EvtPythia.cc:170
EvtDecayBase * clone()
Definition: EvtPythia.cc:133
void init()
Definition: EvtPythia.cc:147