Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:21:04

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