Time fix in SteppingAction and minor changes in DetectorConstruction

This commit is contained in:
David Baranyai 2018-09-14 11:28:15 +02:00
parent 6f8f15b0c9
commit af90ce5bb3
2 changed files with 8 additions and 8 deletions

View File

@ -253,9 +253,9 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
//material of scintillator
G4double rind_scintillator[n] = {1.59, 1.57}; //refraction index
G4double absl[n] = {35.*cm, 35.*cm}; //absorption length
G4double slow[n] = {0.1, 1};
G4double fast[n] = {0.1, 1};
G4double absl[n] = {35.*m, 35.*m}; //absorption length
G4double slow[n] = {1, 1};
G4double fast[n] = {1, 1};
G4MaterialPropertiesTable *scint_material_mpt = new G4MaterialPropertiesTable();
@ -265,9 +265,9 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
scint_material_mpt -> AddProperty("FASTCOMPONENT", pp, fast, n);
scint_material_mpt -> AddConstProperty("SCINTILLATIONYIELD", 50./MeV); //50 volt
scint_material_mpt -> AddConstProperty("RESOLUTIONSCALE", 1.0);
scint_material_mpt -> AddConstProperty("FASTTIMECONSTANT", 20.*ns);
scint_material_mpt -> AddConstProperty("SLOWTIMECONSTANT", 45.*ns);
scint_material_mpt -> AddConstProperty("YIELDRATIO", 1);
scint_material_mpt -> AddConstProperty("FASTTIMECONSTANT", 0.01*ns);
scint_material_mpt -> AddConstProperty("SLOWTIMECONSTANT", 1.*ns);
scint_material_mpt -> AddConstProperty("YIELDRATIO", 0.1);
scint_mat -> SetMaterialPropertiesTable(scint_material_mpt);

View File

@ -71,7 +71,7 @@ void SiPMSteppingAction::UserSteppingAction(const G4Step* step)
std::cout << "Photon reached Sipm0 at: " << step -> GetPostStepPoint() -> GetTouchableHandle() -> GetVolume(1) -> GetCopyNo() << std::endl;
std::cout << "Mother Logical name: " << step -> GetPostStepPoint() -> GetTouchableHandle() -> GetVolume(1) -> GetName() << std::endl;
analysis -> Fill(step -> GetPostStepPoint() -> GetTouchableHandle() -> GetVolume(1) -> GetCopyNo(), postX, postY, postkinE, 1, step -> GetPostStepPoint() -> GetGlobalTime());
analysis -> Fill(step -> GetPostStepPoint() -> GetTouchableHandle() -> GetVolume(1) -> GetCopyNo(), postX, postY, postkinE, 1, fTrack -> GetGlobalTime());
//sipm0_num++;
}
@ -85,7 +85,7 @@ void SiPMSteppingAction::UserSteppingAction(const G4Step* step)
std::cout << "Local time: " << postTime << std::endl;
//std::cout << "Photon reached Sipm1 at copy no: " << postvolume -> GetCopyNo() << std::endl;
//sipm1_num++;
analysis -> Fill(step -> GetPostStepPoint() -> GetTouchableHandle() -> GetVolume(1) -> GetCopyNo(), postX, postY, postkinE, 2, step -> GetPostStepPoint() -> GetGlobalTime());
analysis -> Fill(step -> GetPostStepPoint() -> GetTouchableHandle() -> GetVolume(1) -> GetCopyNo(), postX, postY, postkinE, 2, fTrack -> GetGlobalTime());
}
/*if(postName == "Scintillator_W")
{