source: trunk/examples/advanced/radiation_monitor/analysis/include/RadmonVAnalysisLayout.hh@ 1257

Last change on this file since 1257 was 807, checked in by garnier, 17 years ago

update

File size: 6.2 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: RadmonVAnalysisLayout.hh
28// Creation date: Nov 2005
29// Main author: Riccardo Capra <capra@ge.infn.it>
30//
31// Id: $Id: RadmonVAnalysisLayout.hh,v 1.1.2.2 2006/06/29 16:07:11 gunter Exp $
32// Tag: $Name: geant4-09-01-patch-02 $
33//
34// Description: Abstract class to keep track of the analysis options
35//
36
37#ifndef RADMONVANALYSISLAYOUT_HH
38 #define RADMONVANALYSISLAYOUT_HH
39
40 // Include files
41 #include "RadmonVLayoutSubject.hh"
42
43 #include "globals.hh"
44
45 class RadmonVAnalysisLayout : public RadmonVLayoutSubject
46 {
47 public:
48 virtual void SetOutputFileName(const G4String & outputFileName) = 0;
49 virtual const G4String & GetOutputFileName(void) const = 0;
50 virtual void SetOutputFileFormat(const G4String & outputFileFormat) = 0;
51 virtual const G4String & GetOutputFileFormat(void) const = 0;
52
53 virtual void CreateSensitiveDetector(const G4String & sensitiveDetectorLabel, const G4String & sensitiveDetectorType) = 0;
54 virtual void SetSensitiveDetectorType(const G4String & sensitiveDetectorLabel, const G4String & sensitiveDetectorType) = 0;
55 virtual const G4String & GetSensitiveDetectorType(const G4String & sensitiveDetectorLabel) const = 0;
56 virtual void RemoveSensitiveDetector(const G4String & sensitiveDetectorLabel) = 0;
57 virtual G4int GetNSensitiveDetectors(void) const = 0;
58 virtual const G4String & GetSensitiveDetectorLabel(G4int index) const = 0;
59
60 virtual void CreateSensitiveDetectorType(const G4String & sensitiveDetectorTypeLabel) = 0;
61 virtual void RemoveSensitiveDetectorType(const G4String & sensitiveDetectorTypeLabel) = 0;
62
63 virtual void AppendDataAnalysisToSensitiveDetectorType(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel) = 0;
64 virtual void SetDataAnalysisType(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel, const G4String & dataAnalysisType) = 0;
65 virtual void RemoveDataAnalysis(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel) = 0;
66 virtual G4int GetNDataAnalyses(const G4String & sensitiveDetectorTypeLabel) const = 0;
67 virtual const G4String & GetDataAnalysisLabel(const G4String & sensitiveDetectorTypeLabel, G4int index) const = 0;
68 virtual const G4String & GetDataAnalysisType(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel) const = 0;
69
70 virtual void SetDataAnalysisAttribute(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel, const G4String & attributeName, const G4String & attributeValue) = 0;
71 virtual void ClearDataAnalysisAttribute(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel, const G4String & attributeName) = 0;
72 virtual G4int GetDataAnalysisNAttributes(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel) const = 0;
73 virtual G4String GetDataAnalysisAttributeName(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel, G4int index) const = 0;
74 virtual G4String GetDataAnalysisAttribute(const G4String & sensitiveDetectorTypeLabel, const G4String & dataAnalysisLabel, const G4String & attributeName, const G4String & defaultAttributeValue=G4String()) const = 0;
75
76 virtual void DumpLayout(std::ostream & out) const = 0;
77
78 virtual G4bool Load(std::istream & in) = 0;
79 virtual G4bool Save(std::ostream & out) const = 0;
80
81 protected:
82 inline RadmonVAnalysisLayout();
83 inline ~RadmonVAnalysisLayout();
84
85 private:
86 // Hidden constructors and operators
87 RadmonVAnalysisLayout(const RadmonVAnalysisLayout & copy);
88 RadmonVAnalysisLayout & operator=(const RadmonVAnalysisLayout & copy);
89 };
90
91 // Inline implementations
92 #include "RadmonVAnalysisLayout.icc"
93#endif /* RADMONVANALYSISLAYOUT_HH */
Note: See TracBrowser for help on using the repository browser.