Time fix in SteppingAction and minor changes in DetectorConstruction
This commit is contained in:
parent
6f8f15b0c9
commit
af90ce5bb3
|
@ -253,9 +253,9 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
|
|
||||||
//material of scintillator
|
//material of scintillator
|
||||||
G4double rind_scintillator[n] = {1.59, 1.57}; //refraction index
|
G4double rind_scintillator[n] = {1.59, 1.57}; //refraction index
|
||||||
G4double absl[n] = {35.*cm, 35.*cm}; //absorption length
|
G4double absl[n] = {35.*m, 35.*m}; //absorption length
|
||||||
G4double slow[n] = {0.1, 1};
|
G4double slow[n] = {1, 1};
|
||||||
G4double fast[n] = {0.1, 1};
|
G4double fast[n] = {1, 1};
|
||||||
|
|
||||||
G4MaterialPropertiesTable *scint_material_mpt = new G4MaterialPropertiesTable();
|
G4MaterialPropertiesTable *scint_material_mpt = new G4MaterialPropertiesTable();
|
||||||
|
|
||||||
|
@ -265,9 +265,9 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
scint_material_mpt -> AddProperty("FASTCOMPONENT", pp, fast, n);
|
scint_material_mpt -> AddProperty("FASTCOMPONENT", pp, fast, n);
|
||||||
scint_material_mpt -> AddConstProperty("SCINTILLATIONYIELD", 50./MeV); //50 volt
|
scint_material_mpt -> AddConstProperty("SCINTILLATIONYIELD", 50./MeV); //50 volt
|
||||||
scint_material_mpt -> AddConstProperty("RESOLUTIONSCALE", 1.0);
|
scint_material_mpt -> AddConstProperty("RESOLUTIONSCALE", 1.0);
|
||||||
scint_material_mpt -> AddConstProperty("FASTTIMECONSTANT", 20.*ns);
|
scint_material_mpt -> AddConstProperty("FASTTIMECONSTANT", 0.01*ns);
|
||||||
scint_material_mpt -> AddConstProperty("SLOWTIMECONSTANT", 45.*ns);
|
scint_material_mpt -> AddConstProperty("SLOWTIMECONSTANT", 1.*ns);
|
||||||
scint_material_mpt -> AddConstProperty("YIELDRATIO", 1);
|
scint_material_mpt -> AddConstProperty("YIELDRATIO", 0.1);
|
||||||
|
|
||||||
scint_mat -> SetMaterialPropertiesTable(scint_material_mpt);
|
scint_mat -> SetMaterialPropertiesTable(scint_material_mpt);
|
||||||
|
|
||||||
|
|
|
@ -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 << "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;
|
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++;
|
//sipm0_num++;
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ void SiPMSteppingAction::UserSteppingAction(const G4Step* step)
|
||||||
std::cout << "Local time: " << postTime << std::endl;
|
std::cout << "Local time: " << postTime << std::endl;
|
||||||
//std::cout << "Photon reached Sipm1 at copy no: " << postvolume -> GetCopyNo() << std::endl;
|
//std::cout << "Photon reached Sipm1 at copy no: " << postvolume -> GetCopyNo() << std::endl;
|
||||||
//sipm1_num++;
|
//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")
|
/*if(postName == "Scintillator_W")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue