Message: Re: Segmentation fault in B5 walkthrough Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Segmentation fault in B5 walkthrough 

Forum: Documentation and Examples
Re: None Segmentation fault in B5 walkthrough (Michael Hubbard)
Date: 15 Mar, 2017
From: Ivana Hrivnacova <Ivana Hrivnacova>

Hello,

The tutorial example code needs to be updates according to the Items for migration of the user code for Geant4 10.03 release, see: http://geant4.web.cern.ch/geant4/support/ReleaseNotes4.10.3.html#3.

You have to add the following lines in session5_solution/src/EDDetectorConstruction.cc:

 #include "G4SDManager.hh"
 ...
  void EDDetectorConstruction::ConstructSDandField()
 {
   // G4SDManager::GetSDMpointer()->SetVerboseLevel(1);

   // 
   // Sensitive detectors
   //
   EDChamberSD* chamber1SD 
     = new EDChamberSD("Chamber1SD", "Chamber1HitsCollection");
   SetSensitiveDetector("WirePlane1", chamber1SD);
   G4SDManager::GetSDMpointer()->AddNewDetector(chamber1SD); // ADD

   EDChamberSD* chamber2SD 
     = new EDChamberSD("Chamber2SD", "Chamber2HitsCollection");
   SetSensitiveDetector("WirePlane2", chamber2SD);
   G4SDManager::GetSDMpointer()->AddNewDetector(chamber2SD); // ADD

   EDEmCalorimeterSD* calorimeterSD 
     = new EDEmCalorimeterSD("EmCalorimeterSD", "EmCalorimeterHitsCollection");
   SetSensitiveDetector("EmLayer", calorimeterSD);
   G4SDManager::GetSDMpointer()->AddNewDetector(calorimeterSD); // ADD

 }  

Best regards,

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

1 None: Re: Segmentation fault in B5 walkthrough   (Michael Hubbard - 16 Mar, 2017)
 Add Message Add Message
to: "Re: Segmentation fault in B5 walkthrough"

 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 ]