Message: Secondary transport error Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Secondary transport error 

Forum: Hadronic Processes
Date: Nov 13, 12:22
From: Sanchit Sharma <Sanchit Sharma>

Respected Geant4 Users,


Greetings! I am fairly new to Geant4/C++ and need some advice from your end. I am building a 14 MeV Neutron source in my geometry. and I want to simulate secondary gammas, electrons, positrons and alpha particles as a result of neutronic interactions. I have made the geometry but I am not able to simulate the secondaries.


I have attached my Physics list.cc and .hh files along with this email. Can you please help me in understanding the errors?



Many Thanks

*********************************************************************************
  Best Regards,

  Sanchit Sharma,
  Graduate Research Assistant, REAL
  Cultural Secretary, Indian Student Association
  Kansas State University
*********************************************************************************
  - Office Address:   142 Ward Hall, 1200 N. 17th Street, Manhattan, KS 66506<https://maps.google.com/?q=1200+N.+17th+Street,+Manhattan,+KS+66506&entry=gmail&source=g>
  - Mailing Address: 3002 Rathbone Hall, 1701B Platt Street, Manhattan, KS 66506<https://maps.google.com/?q=1701B+Platt+Street,+Manhattan,+KS+66506&entry=gmail&source=g>
  - Phone:  +1 - 785 - 320 - 1251
*********************************************************************************
 I do not think you can name many great inventions that have been made by married men.
--Nikola Tesla (The Great!)
*********************************************************************************



 [ MIME part of type text/html without a name stripped ]
/// \file PhysicsList.hh
/// \brief Implementation of the PhysicsList class (Mandatory)

#include "PhysicsList.hh"
#include <G4UnitsTable.hh>
#include <G4SystemOfUnits.hh>
#include <G4ProcessManager.hh>
#include <G4ProductionCutsTable.hh>
///////////////////////////////// Physics List
#include <G4HadronPhysicsFTFP_BERT_HP.hh>
#include <G4HadronElasticPhysicsHP.hh>
///////////////////////////////// PARTICLES
#include <G4Gamma.hh>
#include <G4Electron.hh>
#include <G4Positron.hh>
#include <G4Proton.hh>
#include <G4Neutron.hh>
#include <G4Alpha.hh>

#include <G4EmStandardPhysics.hh>
#include <G4EmExtraPhysics.hh>
#include <G4DecayPhysics.hh>

PhysicsList::PhysicsList() : 
  G4VModularPhysicsList()
{

RegisterPhysics(new G4EmStandardPhysics());
RegisterPhysics(new G4EmExtraPhysics());
RegisterPhysics(new G4DecayPhysics()); 
RegisterPhysics(new G4HadronPhysicsFTFP_BERT_HP()); 
RegisterPhysics(new G4HadronElasticPhysicsHP());
  // Here, you can (for example):
  //
  // a) add physics constructors
  // b) set a reference physics list and use it
}

//PhysicsList::~PhysicsList()
//{
//  ; /
//}

void PhysicsList::ConstructParticle()
{  
  // Call parent method. Replace it, if required
  G4Electron::ElectronDefinition();
  G4Gamma::GammaDefinition();
  G4Neutron::NeutronDefinition();
  G4Positron::PositronDefinition();
  G4Proton::ProtonDefinition();
  G4Alpha::AlphaDefinition();
}

void PhysicsList::ConstructProcess()
{
 // Call parent method. Replace it, if required
  
 AddTransportation();
}

void PhysicsList::SetCuts()
{
  // The method SetCuts() is mandatory in the interface. Here, one just use 
  // the default SetCuts() provided by the base class.
  // Call parent method. Replace it, if required
  G4VUserPhysicsList::SetCuts();
  DumpCutValuesTable();
}
/// \file PhysicsList.hh
/// \brief Definition of the PhysicsList class (Mandatory)

#ifndef PHYSICS_LIST_HH
#define PHYSICS_LIST_HH

#include <G4VModularPhysicsList.hh>

/// Modular physics list

class PhysicsList : public G4VModularPhysicsList
{
public:
  ///constructor
  PhysicsList();

  /// destructor
  virtual ~PhysicsList(){;};

  /// Builds particles
  void ConstructParticle(); 

  /// Build processes
    void ConstructProcess();

  /// Set user cuts
  void SetCuts();
};

#endif

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: Secondary transport error   (Emma Wilson - Dec 05, 07:57)
 Add Message Add Message
to: "Secondary transport error"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]