BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtGen.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 EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtGen/EvtGen.hh
12//
13// Description:Main class to provide user interface to EvtGen.
14//
15// Modification history:
16//r
17// RYD March 24, 1998 Module created
18//
19// DJL August 10, 1998 Additional Event member function added
20//
21// RYD December 25, 1999 Any application using EvtGen will need
22// to instantiate an instance of this class
23// and hold on to it untill done generating
24// events. This class will now hold data used
25// for the lifetime of the generator.
26//------------------------------------------------------------------------
27
28#ifndef EVTGEN_HH
29#define EVTGEN_HH
30
31
32#include "EvtGenBase/EvtPDL.hh"
33
34#include <CLHEP/Vector/LorentzVector.h> //maqm add
35
36class EvtParticle;
37class EvtRandomEngine;
38//class HepLorentzVector; //maqm comment
39class EvtVector4R;
40class EvtStdHep;
41class EvtSpinDensity;
42class EvtAbsRadCorr;
43
44using CLHEP::HepLorentzVector; //maqm add
45
46class EvtGen{
47
48public:
49
50
51 EvtGen(const char* const decayName,const char* const pdtTableName,
52 EvtRandomEngine* randomEngine=0, EvtAbsRadCorr *isrEngine=0);
53 ~EvtGen();
54
55 void readUDecay(const char* const udecay_name);
56
57 void generateDecay(int stdhepid, EvtVector4R P, EvtVector4R D,
58 EvtStdHep *evtStdHep,EvtSpinDensity *spinDensity=0);
59
61
62 //These two methods are obsolete
63 void generateEvent(int stdhepid, HepLorentzVector P, HepLorentzVector D);
64 void generateEvent(EvtParticle *p,HepLorentzVector D);
65
66
67private:
68
69 EvtPDL _pdl;
70};
71
72
73
74#endif
75
double P(RecMdcKalTrack *trk)
Definition: EvtGen.hh:46
void readUDecay(const char *const udecay_name)
Definition: EvtGen.cc:126
~EvtGen()
Definition: EvtGen.cc:64
void generateDecay(int stdhepid, EvtVector4R P, EvtVector4R D, EvtStdHep *evtStdHep, EvtSpinDensity *spinDensity=0)
Definition: EvtGen.cc:152
void generateEvent(int stdhepid, HepLorentzVector P, HepLorentzVector D)
Definition: EvtGen.cc:219
Definition: EvtPDL.hh:33