Back to home page

EIC code displayed by LXR

 
 

    


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

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/monopole/include/G4MonopoleFieldSetup.hh
0027 /// \brief Definition of the G4MonopoleFieldSetup class
0028 //
0029 //
0030 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0031 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0032 
0033 //
0034 // ------------------------------------------------------------
0035 //        GEANT 4  include file implementation
0036 // ------------------------------------------------------------
0037 //
0038 // G4MonopoleFieldSetup is responsible for setting up a magnetic field
0039 // and the ability to use it with two different equation of motions,
0040 // one for monopoles and another for the rest of the particles.
0041 //
0042 //
0043 
0044 // =======================================================================
0045 // Created:  13 May 2010, B. Bozsogi
0046 // =======================================================================
0047 
0048 #ifndef G4MonopoleFieldSetup_H
0049 #define G4MonopoleFieldSetup_H
0050 
0051 #include "G4MagneticField.hh"
0052 #include "G4UniformMagField.hh"
0053 
0054 class G4FieldManager;
0055 class G4ChordFinder;
0056 class G4Mag_UsualEqRhs;
0057 class G4MagIntegratorStepper;
0058 class G4MonopoleEquation;
0059 
0060 class G4MonopoleFieldMessenger;
0061 
0062 class G4MonopoleFieldSetup
0063 {
0064   public:
0065     G4MonopoleFieldSetup();
0066     ~G4MonopoleFieldSetup();
0067 
0068     void InitialiseAll();  //  Set parameters and call method below
0069     //  void SetMagField(G4double fieldValue);
0070     void SetStepperAndChordFinder(G4int val);
0071     void SetZMagFieldValue(G4double val);
0072     void ConstructMagField();
0073 
0074     //  static G4MonopoleFieldSetup* GetMonopoleFieldSetup();
0075     G4double GetZmagFieldValue() const { return fZmagFieldValue; }
0076 
0077   private:
0078     G4FieldManager* GetGlobalFieldManager();  // static
0079 
0080     G4FieldManager* fFieldManager;
0081     G4ChordFinder* fChordFinder;
0082     G4ChordFinder* fUsualChordFinder;
0083     G4ChordFinder* fMonopoleChordFinder;
0084     G4Mag_UsualEqRhs* fEquation;
0085     G4MonopoleEquation* fMonopoleEquation;
0086 
0087     G4MagneticField* fMagneticField;
0088 
0089     G4MagIntegratorStepper* fStepper;
0090     G4MagIntegratorStepper* fMonopoleStepper;
0091 
0092     G4double fMinStep;
0093     G4double fZmagFieldValue;
0094 
0095     //  G4int                   fStepperIndex;
0096 
0097     //  static G4MonopoleFieldSetup*  fMonopoleFieldSetup;
0098     G4MonopoleFieldMessenger* fMonopoleFieldMessenger;
0099 };
0100 
0101 #endif