BOSS 8.0.0
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#include "EvtGenBase/EvtPDL.hh"
32
33#include <CLHEP/Vector/LorentzVector.h> //maqm add
34
35class EvtParticle;
36class EvtRandomEngine;
37// class HepLorentzVector; //maqm comment
38class EvtVector4R;
39class EvtStdHep;
40class EvtSpinDensity;
41class EvtAbsRadCorr;
42
43using CLHEP::HepLorentzVector; // maqm add
44
45class EvtGen {
46
47public:
48 EvtGen( const char* const decayName, const char* const pdtTableName,
49 EvtRandomEngine* randomEngine = 0, EvtAbsRadCorr* isrEngine = 0 );
50 ~EvtGen();
51
52 void readUDecay( const char* const udecay_name );
53
54 void generateDecay( int stdhepid, EvtVector4R P, EvtVector4R D, EvtStdHep* evtStdHep,
55 EvtSpinDensity* spinDensity = 0 );
56
57 void generateDecay( EvtParticle* p );
58
59 // These two methods are obsolete
60 void generateEvent( int stdhepid, HepLorentzVector P, HepLorentzVector D );
61 void generateEvent( EvtParticle* p, HepLorentzVector D );
62
63private:
64 EvtPDL _pdl;
65};
66
67#endif
double P(RecMdcKalTrack *trk)
void readUDecay(const char *const udecay_name)
Definition EvtGen.cc:112
~EvtGen()
Definition EvtGen.cc:61
void generateDecay(int stdhepid, EvtVector4R P, EvtVector4R D, EvtStdHep *evtStdHep, EvtSpinDensity *spinDensity=0)
Definition EvtGen.cc:138
void generateEvent(int stdhepid, HepLorentzVector P, HepLorentzVector D)
Definition EvtGen.cc:195
EvtGen(const char *const decayName, const char *const pdtTableName, EvtRandomEngine *randomEngine=0, EvtAbsRadCorr *isrEngine=0)
Definition EvtGen.cc:71