source: trunk/source/processes/electromagnetic/utils/include/G4EmConfigurator.hh @ 1228

Last change on this file since 1228 was 1228, checked in by garnier, 14 years ago

update geant4.9.3 tag

File size: 4.7 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26// $Id: G4EmConfigurator.hh,v 1.2 2008/11/21 12:30:29 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33// File name:     G4EmConfigurator
34//
35// Author:        Vladimir Ivanchenko
36//
37// Creation date: 14.07.2008
38//
39// Modifications:
40//
41// Class Description:
42//
43// This class provides configuration EM models for
44// particles/processes/regions
45//
46
47// -------------------------------------------------------------------
48//
49
50#ifndef G4EmConfigurator_h
51#define G4EmConfigurator_h 1
52
53#include "globals.hh"
54#include "G4VEmModel.hh"
55#include "G4VEmFluctuationModel.hh"
56#include <vector>
57
58//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
59
60class G4EmConfigurator 
61{
62public: 
63 
64  G4EmConfigurator();
65 
66  ~G4EmConfigurator();
67
68  // Add EM model to the list of extra models potentially to be
69  // declared for the G4Region and energy interval
70  //
71  void AddExtraEmModel(const G4String& particleName,
72                       G4VEmModel*, G4VEmFluctuationModel* fm = 0); 
73
74  // Declare EM model for particle type and process to
75  // be active for the G4Region and energy interval
76  // The model should be previously added to the configurator
77  // or be "dummy"
78  //
79  void AddModelForRegion(const G4String& particleName,
80                         const G4String& processName,
81                         const G4String& modelName,
82                         const G4String& regionName = "",
83                         G4double emin = 0.0,
84                         G4double emax = DBL_MAX,
85                         const G4String& flucModelName = "");
86
87  // Set EM model for particle type and process to
88  // be active for the G4Region and energy interval
89  //
90  void SetExtraEmModel(const G4String& particleName,
91                       const G4String& processName,
92                       G4VEmModel*,
93                       const G4String& regionName = "",
94                       G4double emin = 0.0,
95                       G4double emax = DBL_MAX,
96                       G4VEmFluctuationModel* fm = 0); 
97
98  // Add all previously declared models to corresponding processes
99  void AddModels();
100
101private:
102
103  void SetModelForRegion(const G4String& particleName,
104                         const G4String& processName,
105                         const G4String& modelName,
106                         const G4String& regionName,
107                         const G4String& flucModelName,
108                         G4double emin,
109                         G4double emax);
110
111  // hide assignment operator
112  G4EmConfigurator & operator=(const G4EmConfigurator &right);
113  G4EmConfigurator(const G4EmConfigurator&);
114
115  std::vector<G4String> particles; 
116  std::vector<G4String> processes; 
117  std::vector<G4String> models; 
118  std::vector<G4String> regions; 
119  std::vector<G4String> flucModels; 
120  std::vector<G4double> lowEnergy;
121  std::vector<G4double> highEnergy;
122 
123  std::vector<G4String> particleList; 
124  std::vector<G4VEmModel*> modelList;
125  std::vector<G4VEmFluctuationModel*> flucModelList;
126
127  G4int index;
128};
129
130//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
131
132#endif
133
134
135
136
137
138
139
140
Note: See TracBrowser for help on using the repository browser.