Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-30 07:49:58

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 B03PhysicsList.hh
0027 /// \brief Definition of the B03PhysicsList class
0028 
0029 #ifndef B03PhysicsList_h
0030 #define B03PhysicsList_h 1
0031 
0032 #include "G4GeometrySampler.hh"
0033 #include "G4VUserPhysicsList.hh"
0034 #include "globals.hh"
0035 
0036 #include <vector>
0037 
0038 // taken from Tst12PhysicsList
0039 
0040 class B03PhysicsList : public G4VUserPhysicsList
0041 {
0042   public:
0043     B03PhysicsList(G4String);
0044     virtual ~B03PhysicsList();
0045 
0046   public:
0047     void AddParallelWorldName(G4String& pname) { fParaWorldName.push_back(pname); }
0048 
0049     // void AddBiasing(G4GeometrySampler *mgs, G4String& pname)
0050     //      {fGeomSampler = mgs; fBiasWorldName = pname;}
0051 
0052   protected:
0053     // Construct particle and physics
0054     virtual void ConstructParticle();
0055     virtual void ConstructProcess();
0056 
0057     //
0058     virtual void SetCuts();
0059 
0060   protected:
0061     // these methods Construct physics processes and register them
0062     virtual void ConstructGeneral();
0063     virtual void ConstructEM();
0064     virtual void ConstructHad();
0065     virtual void ConstructLeptHad();
0066 
0067     void AddScoringProcess();
0068     void AddBiasingProcess();
0069 
0070     //
0071     void ConstructAllBosons();
0072     void ConstructAllLeptons();
0073     void ConstructAllMesons();
0074     void ConstructAllBaryons();
0075     void ConstructAllIons();
0076     void ConstructAllShortLiveds();
0077 
0078   private:
0079     std::vector<G4String> fParaWorldName;
0080     G4String fBiasWorldName;
0081     // G4GeometrySampler* fGeomSampler;
0082 };
0083 
0084 #endif