BOSS 8.0.0
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 <iosfwd>
28#include <string>
29
31
33
34public:
35 EvtPythia();
36 virtual ~EvtPythia();
37
38 void getName( std::string& name );
40 void decay( EvtParticle* p );
41
42 std::string commandName();
43 void command( std::string cmd );
44
45 void init();
46
47 void initProbMax();
48
49 // initialize jetset; sets up decay table and
50 // paramters. Static so it can be invoked from
51 // from EvtJscont.
52 static void pythiaInit( int f );
53 static void pythiacont( double*, int*, int*, double*, double*, double*, double* );
54
55private:
56 void store( EvtDecayBase* jsdecay );
57 void fixPolarizations( EvtParticle* p );
58 static void MakePythiaFile( char* fname );
59 static void WritePythiaParticle( std::ofstream& outdec, EvtId ipar, EvtId iparname,
60 int& first );
61 static void WritePythiaEntryHeader( std::ofstream& outdec, int lundkc, EvtId evtnum,
62 std::string name, int chg, int cchg, int spin2,
63 double mass, double width, double maxwidth, double ctau,
64 int stable, double rawbrfrsum );
65 static bool diquark( int );
66 static double NominalMass( int );
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#endif
double mass
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
EvtDecayBase * EvtDecayBasePtr
EvtDecayBase * EvtDecayBasePtr
Definition EvtPythia.hh:30
Definition EvtId.hh:27
static void pythiaInit(int f)
Definition EvtPythia.cc:909
virtual ~EvtPythia()
Definition EvtPythia.cc:93
void initProbMax()
Definition EvtPythia.cc:128
static void pythiacont(double *, int *, int *, double *, double *, double *, double *)
Definition EvtPythia.cc:173
void command(std::string cmd)
Definition EvtPythia.cc:150
void decay(EvtParticle *p)
Definition EvtPythia.cc:178
void getName(std::string &name)
Definition EvtPythia.cc:124
std::string commandName()
Definition EvtPythia.cc:148
EvtDecayBase * clone()
Definition EvtPythia.cc:126
void init()
Definition EvtPythia.cc:130