#include <BesGenModule.h>
Definition at line 21 of file BesGenModule.h.
◆ BesGenModule()
BesGenModule::BesGenModule |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Definition at line 73 of file BesGenModule.cxx.
75{
76
78
79
80 declareProperty(
"Runcards",
runname =
"run.cards");
81 declareProperty(
"Ratio",
Nr = 1);
82
83}
static std::string besMcGen_stream
◆ ~BesGenModule()
BesGenModule::~BesGenModule |
( |
| ) |
|
|
virtual |
◆ callGenerator()
StatusCode BesGenModule::callGenerator |
( |
| ) |
|
|
virtual |
Reimplemented from GenModule.
Definition at line 143 of file BesGenModule.cxx.
143 {
144
145 MsgStream log(messageService(), name());
146 log << MSG::INFO << " BesGenModule generating. \n" << endreq;
147
148 StatusCode status = StatusCode::SUCCESS;
149 int iq;
150
151
152
153
155
156
157
158
159
160
161
163 StatusCode sc = eventSvc()->registerObject("/Event/MC",aMcEvent);
164
165
166 SmartDataPtr<DecayMode> anMcCol(eventSvc(), "/Event/MC/DecayMode");
167 if (anMcCol!=0) {
168
169 }
170 else {
171
174 StatusCode sc = eventSvc()->registerObject("/Event/MC/DecayMode",decayMode);
175 }
176
177
178 SmartDataPtr<DecayMode> aMcCol(eventSvc(), "/Event/MC/DecayMode");
179 if (aMcCol!=0) {
180
181 }
182
183
184
185
186
187
189
190
191
192 log << MSG::INFO << " BESGenModule generating done. \n" << endreq;
193 return status;
194
195}
void mainexe_(int *, int *mvec)
void putData(int *data, unsigned int size)
◆ fillEvt()
StatusCode BesGenModule::fillEvt |
( |
GenEvent * |
evt | ) |
|
|
virtual |
Reimplemented from GenModule.
Definition at line 206 of file BesGenModule.cxx.
206 {
207
208 MsgStream log(messageService(), name());
209 log << MSG:: INFO << " BESGenModule Filling... \n" << endreq;
210
212 HepMC::IO_HEPEVT hepio;
213 hepio.fill_next_event(evt);
214
215
216
217
218 return StatusCode::SUCCESS;
219}
◆ genFinalize()
StatusCode BesGenModule::genFinalize |
( |
| ) |
|
|
virtual |
Reimplemented from GenModule.
Definition at line 198 of file BesGenModule.cxx.
198 {
199
200 MsgStream log(messageService(), name());
202 log << MSG:: INFO << " BESGenModule Ending... \n" << endreq;
203 return StatusCode::SUCCESS;
204}
◆ genInitialize()
StatusCode BesGenModule::genInitialize |
( |
| ) |
|
|
virtual |
Reimplemented from GenModule.
Definition at line 104 of file BesGenModule.cxx.
104 {
105
106
107 MsgStream log(messageService(), name());
108 log << MSG::INFO << " BES PHOTOS INITIALISING. \n" << endreq;
109
110
111
112 StatusCode RndmStatus = service(
"BesRndmGenSvc",
p_BesRndmGenSvc,
true);
114 {
115 log << MSG::ERROR << " Could not initialize Random Number Service" << endreq;
116 return RndmStatus;
117 }
118
120
122
126
127
129
130 int theseed;
133
134 HepMC::HEPEVT_Wrapper::set_sizeof_int(4);
135 HepMC::HEPEVT_Wrapper::set_sizeof_real(4);
136 HepMC::HEPEVT_Wrapper::set_max_number_entries(2000);
137
138
139 return StatusCode::SUCCESS;
140}
void mainini_(int *, const char *)
IBesRndmGenSvc * p_BesRndmGenSvc
virtual void setGenseed(long)=0
◆ besMcGen_stream
std::string BesGenModule::besMcGen_stream ="PHOTOS_INIT" |
|
static |
◆ cardname
const char* BesGenModule::cardname |
|
protected |
◆ m_events
int BesGenModule::m_events |
|
protected |
◆ m_fortout
int BesGenModule::m_fortout |
|
protected |
◆ m_GenIndex
int BesGenModule::m_GenIndex |
|
protected |
◆ m_par
std::vector<int> BesGenModule::m_par |
|
protected |
◆ m_seeds
std::vector<long int> BesGenModule::m_seeds |
|
protected |
◆ m_SubIndex
int BesGenModule::m_SubIndex |
|
protected |
◆ m_SuperIndex
int BesGenModule::m_SuperIndex |
|
protected |
◆ mvec
int BesGenModule::mvec[10] |
|
protected |
◆ n1
◆ Nr
◆ nvec
int BesGenModule::nvec[10] |
|
protected |
◆ p_BesRndmGenSvc
◆ runname
std::string BesGenModule::runname |
|
protected |
The documentation for this class was generated from the following files: