Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-31 07:50:03

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 TestParameters.hh
0027 /// \brief Definition of the TestParameters class
0028 
0029 //---------------------------------------------------------------------------
0030 //
0031 // ClassName:   HistoManager
0032 //
0033 // Description: Singleton class to make analysis and build histograms.
0034 //              User cannot access to the constructor.
0035 //              The pointer of the only existing object can be got via
0036 //              HistoManager::GetPointer() static method.
0037 //              The first invokation of this static method makes
0038 //              the singleton object.
0039 //
0040 // Author:      V.Ivanchenko 01.09.2010
0041 //
0042 //----------------------------------------------------------------------------
0043 //
0044 
0045 #ifndef TestParameters_h
0046 #define TestParameters_h 1
0047 
0048 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0049 
0050 #include "G4ParticleDefinition.hh"
0051 #include "globals.hh"
0052 
0053 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0054 
0055 class TestParameters
0056 {
0057   public:
0058     // With description
0059 
0060     static TestParameters* GetPointer();
0061 
0062   private:
0063     TestParameters();
0064 
0065   public:  // Without description
0066     ~TestParameters();
0067 
0068     void SetMaxEnergy(G4double value);
0069 
0070     G4double GetMaxEnergy() const;
0071 
0072     void SetNumberBins(G4int value);
0073 
0074     G4int GetNumberBins() const;
0075 
0076     void SetPositionZ(G4double val);
0077 
0078     G4double GetPositionZ() const;
0079 
0080     void SetBeamEnergy(G4double val);
0081 
0082     G4double GetBeamEnergy() const;
0083 
0084     void SetAlphaFactor(G4double val);
0085 
0086     G4double GetAlphaFactor() const;
0087 
0088     void SetBeamParticle(const G4ParticleDefinition*);
0089 
0090     const G4ParticleDefinition* GetBeamParticle() const;
0091 
0092   private:
0093     static TestParameters* fManager;
0094 
0095     G4double fMaxEnergy;
0096     G4double fPositionZ;
0097     G4double fBeamEnergy;
0098     G4double fEpsilon;
0099 
0100     G4int fBinsE;
0101 
0102     const G4ParticleDefinition* fParticle;
0103 };
0104 
0105 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0106 
0107 #endif