File: Strategy.h
Description:
The Strategy class represents a general strategy to be
assigned to an EventGenerator. It contains a set
of default ParticleData objects which takes
presedence over the ones in the Repository. It
also contains a set of other default objects which are
automatically assigned to all Reference interfaces
which have the defaultIfNull flag set.
See
also:
namespace Pythia7
CLASS
Strategy:
Base class:
Public members:
Strategy();
Strategy(const Strategy &);
virtual ~Strategy();
Standard ctors and dtor
inline const ParticleMap & particles() const;
Return the map of local particles.
inline const vector<IPtr> & defaultObjects() const;
Return the vector of default objects.
void persistentOutput(PersistentOStream &) const;
void persistentInput(PersistentIStream &, int);
Standard functions for writing and reading from persistent streams.
static void Init();
Standard Init function used to initialize the interface.
Protected members:
virtual IBPtr clone() const;
Standard clone methods
inline virtual void doupdate() throw(UpdateException);
inline virtual void doinit() throw(InitException);
inline virtual void dofinish();
Standard Interfaced virtual functions.
Private members:
inline ParticleMap & particles();
Return the map of local particles.
ParticleMap theParticles;
the map of default particles.
vector<IPtr> theDefaultObjects;
A vector of default objects.
void setLocalParticles(PDPtr pd, int);
void insLocalParticles(PDPtr pd, int);
void delLocalParticles(int place);
vector<PDPtr> getLocalParticles() const;
Utility functions used by the interface.
static ClassDescription<Strategy> initStrategy;
Strategy & operator=(const Strategy &);
Private and non-existent assignment operator.
template <>
STRUCT
BaseClassTrait<Strategy,1>
Public members:
typedef Interfaced NthBase;
template <>
STRUCT
ClassTraits<Strategy>:
Public members:
public ClassTraitsBase<Strategy> {
static string className() {
return "/Pythia7/Strategy";
DEFINED MACROS
INCLUDED FILES
Pythia7/Config/Pythia7.h
Strategy.fh
Pythia7/Interface/Interfaced.h
Strategy.icc