Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-02 07:36:37

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() = default;
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 SetNumberBinsCluster(G4int value);
0077 
0078     G4int GetNumberBinsCluster() const;
0079 
0080     void SetMaxCluster(G4int value);
0081 
0082     G4int GetMaxCluster() const;
0083 
0084     void SetEnergyPerChannel(G4double value);
0085 
0086     G4double GetFactorALICE() const;
0087 
0088     void SetNormFactor(G4double value);
0089 
0090     G4double GetNormFactor() const;
0091 
0092     void SetEnergySmear(G4double value);
0093 
0094     G4double GetEnergySmear() const;
0095 
0096     void SetPositionZ(G4double val);
0097 
0098     G4double GetPositionZ() const;
0099 
0100     void SetBeamEnergy(G4double val);
0101 
0102     G4double GetBeamEnergy() const;
0103 
0104     void SetBeamParticle(const G4ParticleDefinition*);
0105 
0106     const G4ParticleDefinition* GetBeamParticle() const;
0107 
0108   private:
0109     static TestParameters* fManager;
0110 
0111     G4double fMaxEnergy;
0112     G4double fFactorALICE = 325;
0113     G4double fNormFactor = 1.0;
0114     G4double fEnergySmear = 0.0;
0115     G4double fPositionZ = 0.0;
0116     G4double fBeamEnergy = 0.0;
0117 
0118     G4int fBinsE = 100;
0119     G4int fBinsCluster = 1;
0120     G4int fMaxCluster = 1500;
0121 
0122     const G4ParticleDefinition* fParticle = nullptr;
0123 };
0124 
0125 #endif