Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19252013
EvtExternalGenFactory.hh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
EvtExternalGenFactory.hh
View Options
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* *
* EvtGen is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* EvtGen is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
***********************************************************************/
#ifndef EVTEXTERNALGENFACTORY_HH
#define EVTEXTERNALGENFACTORY_HH
#include
"EvtGenModels/EvtAbsExternalGen.hh"
#include
<map>
// Description: A factory type method to create engines for external physics
// generators like Pythia.
class
EvtExternalGenFactory
{
public
:
enum
genId
{
PythiaGenId
=
0
,
PhotosGenId
,
TauolaGenId
};
static
EvtExternalGenFactory
*
getInstance
();
EvtAbsExternalGen
*
getGenerator
(
int
genId
=
0
);
void
initialiseAllGenerators
();
void
definePythiaGenerator
(
std
::
string
xmlDir
,
bool
convertPhysCodes
,
bool
useEvtGenRandom
=
true
);
void
definePhotosGenerator
(
std
::
string
photonType
=
"gamma"
,
bool
useEvtGenRandom
=
true
);
void
defineTauolaGenerator
(
bool
useEvtGenRandom
=
true
);
//methods to add configuration commands to the pythia generators
//void addPythiaCommand( std::string generator, std::string module, std::string param, std::string value);
//void addPythia6Command(std::string generator, std::string module, std::string param, std::string value);
protected
:
EvtExternalGenFactory
();
~
EvtExternalGenFactory
();
typedef
std
::
map
<
int
,
EvtAbsExternalGen
*>
ExtGenMap
;
typedef
std
::
map
<
int
,
std
::
map
<
std
::
string
,
std
::
vector
<
std
::
string
>>>
ExtGenCommandMap
;
private
:
EvtExternalGenFactory
(
const
EvtExternalGenFactory
&
){};
ExtGenMap
_extGenMap
;
ExtGenCommandMap
_extGenCommandMap
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 6:13 AM (11 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6560719
Default Alt Text
EvtExternalGenFactory.hh (2 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment