Skip to content
Snippets Groups Projects
Commit d7b8c2a4 authored by Morfouace's avatar Morfouace
Browse files

Small modification to ChiNu:

parent 4d214d7b
No related branches found
No related tags found
No related merge requests found
......@@ -420,7 +420,10 @@ void ChiNu::ReadConfiguration(NPL::InputParser parser){
// Construct detector and inialise sensitive part.
// Called After DetecorConstruction::AddDetector Method
void ChiNu::ConstructDetector(G4LogicalVolume* world){
G4Material* Air = MaterialManager::getInstance()->GetMaterialFromLibrary("Air");
//world->SetMaterial(Air);
for (unsigned short i = 0 ; i < m_R.size() ; i++) {
G4double wX = m_R[i] * sin(m_Theta[i] ) * cos(m_Phi[i] ) ;
......
......@@ -44,7 +44,7 @@ void Analysis::Init(){
InitInputBranch();
InitOutputBranch();
my_Reaction = new NPL::Reaction("1n(238U,1n)238U@1.5");
my_Reaction = new NPL::Reaction("1n(238U,1n)238U@0.75");
neutron = new NPL::Nucleus("1n");
}
......@@ -83,7 +83,7 @@ void Analysis::TreatEvent(){
double DeltaTheta = atan(89.0/Rdet);
double random_ThetaLab = ra.Uniform(init_ThetaLab-DeltaTheta, init_ThetaLab+DeltaTheta);
double dEx = my_Reaction->ReconstructRelativistic(Elab[i], init_ThetaLab);
double dEx = my_Reaction->ReconstructRelativistic(Elab[i], random_ThetaLab);
ThetaLab.push_back(random_ThetaLab/deg);
Ex.push_back(dEx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment