![]() |
|
|||
File indexing completed on 2025-02-23 09:21:11
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 /// \file exoticphysics/dmparticle/include/TestParameters.hh 0027 /// \brief Definition of the TestParameters class 0028 // 0029 // 0030 //--------------------------------------------------------------------------- 0031 // 0032 // ClassName: HistoManager 0033 // 0034 // Description: Singleton class to make analysis and build histograms. 0035 // User cannot access to the constructor. 0036 // The pointer of the only existing object can be got via 0037 // HistoManager::GetPointer() static method. 0038 // The first invokation of this static method makes 0039 // the singleton object. 0040 // 0041 // Author: V.Ivanchenko 01.09.2010 0042 // 0043 //---------------------------------------------------------------------------- 0044 // 0045 0046 #ifndef TestParameters_h 0047 #define TestParameters_h 1 0048 0049 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0050 0051 #include "G4ParticleDefinition.hh" 0052 #include "globals.hh" 0053 0054 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0055 0056 class TestParameters 0057 { 0058 public: 0059 // With description 0060 0061 static TestParameters* GetPointer(); 0062 0063 private: 0064 TestParameters(); 0065 0066 public: // Without description 0067 ~TestParameters(); 0068 0069 void SetMaxEnergy(G4double value); 0070 0071 G4double GetMaxEnergy() const; 0072 0073 void SetNumberBins(G4int value); 0074 0075 G4int GetNumberBins() const; 0076 0077 void SetPositionZ(G4double val); 0078 0079 G4double GetPositionZ() const; 0080 0081 void SetBeamEnergy(G4double val); 0082 0083 G4double GetBeamEnergy() const; 0084 0085 void SetAlphaFactor(G4double val); 0086 0087 G4double GetAlphaFactor() const; 0088 0089 void SetBeamParticle(const G4ParticleDefinition*); 0090 0091 const G4ParticleDefinition* GetBeamParticle() const; 0092 0093 private: 0094 static TestParameters* fManager; 0095 0096 G4double fMaxEnergy; 0097 G4double fPositionZ; 0098 G4double fBeamEnergy; 0099 G4double fEpsilon; 0100 0101 G4int fBinsE; 0102 0103 const G4ParticleDefinition* fParticle; 0104 }; 0105 0106 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0107 0108 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |