Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4ModelConfigurationManager.h
Go to the documentation of this file.
1#ifndef TG4_MODEL_CONFIGURATION_MANAGER_H
2#define TG4_MODEL_CONFIGURATION_MANAGER_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2015 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include "TG4Verbose.h"
19
20#include <globals.hh>
21
22#include <vector>
23
26
31
33{
34 public:
35 typedef std::vector<TG4ModelConfiguration*> ModelConfigurationVector;
36
37 public:
39 const G4String& name, const G4String& availableModels = "");
41
42 // methods
43 void CreateRegions();
44
45 // set methods
46 void SetModel(const G4String& modelName);
47 void SetModelParticles(const G4String& modelName, const G4String& particles);
48 void SetModelRegions(const G4String& modelName, const G4String& regionsMedia);
50 const G4String& modelName, const G4String& regionMedium);
51
52 // get methods
53 G4String GetName() const;
54 G4String GetAvailableModels() const;
56 const G4String& modelName, G4bool warn = true) const;
58
59 protected:
60 // methods
61 void SetRegionsNames();
62
63 private:
68 const TG4ModelConfigurationManager& right);
69
70 // data members
71
74
76 G4String fName;
77
80
83
86};
87
88// inline functions
89
91{
93 return fName;
94}
95
97{
99 return fAvailableModels;
100}
101
108
109#endif // TG4_MODEL_CONFIGURATION_MANAGER_H
Definition of the TG4Verbose class.
The model configuration vector with suitable setters and a messenger.
void SetModelRegions(const G4String &modelName, const G4String &regionsMedia)
G4String fName
The associated physics builder name.
void SetModel(const G4String &modelName)
TG4ModelConfiguration * GetModelConfiguration(const G4String &modelName, G4bool warn=true) const
G4bool fCreateRegionsDone
Info whether regions were constructed.
TG4ModelConfigurationManager & operator=(const TG4ModelConfigurationManager &right)
Not implemented.
void SetModelParticles(const G4String &modelName, const G4String &particles)
TG4ModelConfigurationMessenger * fMessenger
Messenger.
G4String fAvailableModels
List of available models.
TG4ModelConfigurationManager(const TG4ModelConfigurationManager &right)
Not implemented.
void SetOneModelRegion(const G4String &modelName, const G4String &regionMedium)
std::vector< TG4ModelConfiguration * > ModelConfigurationVector
const ModelConfigurationVector & GetVector() const
TG4ModelConfigurationManager(const G4String &name, const G4String &availableModels="")
ModelConfigurationVector fVector
Vector of registered model configurations.
Messenger class that defines commands for the special physica models.
A helper class to hold a configuration of a special physics model.
Base class for defining the verbose level and a common messenger.
Definition TG4Verbose.h:36