source: trunk/examples/advanced/radiation_monitor/generator/include/RadmonGeneratorLayout.hh @ 1344

Last change on this file since 1344 was 807, checked in by garnier, 16 years ago

update

File size: 5.3 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//
27// File name:     RadmonGeneratorLayout.hh
28// Creation date: Oct 2005
29// Main author:   Riccardo Capra <capra@ge.infn.it>
30//
31// Id:            $Id: RadmonGeneratorLayout.hh,v 1.3 2006/06/29 16:15:09 gunter Exp $
32// Tag:           $Name:  $
33//
34// Description:   Implementation of the particles source data
35//
36
37#ifndef   RADMONGENERATORLAYOUT_HH
38 #define  RADMONGENERATORLAYOUT_HH
39
40 // Include files
41 #include "RadmonVGeneratorLayout.hh"
42 #include "RadmonTLabelledCollection.hh"
43 #include "RadmonGeneratorSourceLayout.hh"
44 
45 class RadmonGeneratorLayout : public RadmonVGeneratorLayout
46 {
47  public:
48   inline                                     RadmonGeneratorLayout();
49   inline                                    ~RadmonGeneratorLayout();
50
51   virtual void                               InsertSource(const G4String & sourceLabel);
52   virtual void                               SetRelativeSourceIntensity(const G4String & sourceLabel, G4double relativeIntensity);
53   virtual G4double                           GetRelativeSourceIntensity(const G4String & sourceLabel) const;
54   virtual void                               RemoveSource(const G4String & sourceLabel);
55   virtual G4int                              GetNSources(void) const;
56   virtual const G4String &                   GetSourceLabel(G4int index) const;
57   virtual void                               AppendSourceAlgorithm(const G4String & sourceLabel, const G4String & algorithmLabel);
58   virtual void                               SetSourceAlgorithmType(const G4String & sourceLabel, const G4String & algorithmLabel, const G4String & typeName);
59   virtual void                               RemoveSourceAlgorithm(const G4String & sourceLabel, const G4String & algorithmLabel);
60   virtual G4int                              GetNSourceAlgorithms(const G4String & sourceLabel) const;
61   virtual const G4String &                   GetSourceAlgorithmLabel(const G4String & sourceLabel, G4int index) const;
62   virtual const G4String &                   GetSourceAlgorithmType(const G4String & sourceLabel, const G4String & algorithmLabel) const;
63   virtual void                               SetSourceAlgorithmAttribute(const G4String & sourceLabel, const G4String & algorithmLabel, const G4String & attribute, const G4String & value);
64   virtual void                               ClearSourceAlgorithmAttribute(const G4String & sourceLabel, const G4String & algorithmLabel, const G4String & attribute);
65   virtual G4String                           GetSourceAlgorithmAttribute(const G4String & sourceLabel, const G4String & algorithmLabel, const G4String & attribute, const G4String & defaultValue=G4String()) const;
66   virtual G4int                              GetSourceAlgorithmNAttributes(const G4String & sourceLabel, const G4String & algorithmLabel) const;
67   virtual const G4String &                   GetSourceAlgorithmAttributeName(const G4String & sourceLabel, const G4String & algorithmLabel, G4int index) const;
68   virtual G4bool                             Load(std::istream & in);
69   virtual G4bool                             Save(std::ostream & out) const;
70   virtual void                               DumpLayout(std::ostream & out) const;
71
72  private:
73   inline G4String &                          GetNullStr() const;
74
75  // Hidden constructors and operators
76                                              RadmonGeneratorLayout(const RadmonGeneratorLayout & copy);
77   RadmonGeneratorLayout &                    operator=(const RadmonGeneratorLayout & copy);
78   
79  // Private attributes
80   RadmonTLabelledCollection<RadmonGeneratorSourceLayout> labelledSourcesCollection;
81 };
82
83 // Inline implementations
84 #include "RadmonGeneratorLayout.icc"
85#endif /* RADMONGENERATORLAYOUT_HH */
Note: See TracBrowser for help on using the repository browser.