Skip to content

Commit

Permalink
Add Fano factor and ionization energy to GXe properties
Browse files Browse the repository at this point in the history
  • Loading branch information
paolafer committed Sep 13, 2024
1 parent e4a157e commit e23d806
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 5 additions & 3 deletions source/materials/MaterialProperties.cc
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,14 @@ namespace materialprops {

// CONST PROPERTIES
mpt->AddConstProperty("SCINTILLATIONYIELD", sc_yield);
mpt->AddConstProperty("RESOLUTIONSCALE", 1.0);
mpt->AddConstProperty("SCINTILLATIONTIMECONSTANT1", 4.5 * ns);
mpt->AddConstProperty("SCINTILLATIONTIMECONSTANT2", 100. * ns);
mpt->AddConstProperty("RESOLUTIONSCALE", 1.0);
mpt->AddConstProperty("SCINTILLATIONTIMECONSTANT1", 4.5 * ns);
mpt->AddConstProperty("SCINTILLATIONTIMECONSTANT2", 100. * ns);
mpt->AddConstProperty("SCINTILLATIONYIELD1", .1);
mpt->AddConstProperty("SCINTILLATIONYIELD2", .9);
mpt->AddConstProperty("ATTACHMENT", e_lifetime, 1);
mpt->AddConstProperty("IONIZATIONENERGY", 22.4 * eV, 1);
mpt->AddConstProperty("FANOFACTOR", .15, 1);

return mpt;
}
Expand Down
16 changes: 7 additions & 9 deletions source/physics/IonizationClustering.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,13 @@ namespace nexus {
// and N is the average number of charges.

// Fetch the W_i and F from the material properties table
//G4MaterialPropertiesTable* mpt =
// track.GetMaterial()->GetMaterialPropertiesTable();
//if (!mpt)
// return G4VRestDiscreteProcess::PostStepDoIt(track, step);

//G4double ioni_energy = mpt->GetConstProperty("IONIZATIONENERGY");
//G4double fano_factor = mpt->GetConstProperty("FANOFACTOR");
G4double ioni_energy = 22.4 * eV;
G4double fano_factor = .15;
G4MaterialPropertiesTable* mpt =
track.GetMaterial()->GetMaterialPropertiesTable();
if (!mpt)
return G4VRestDiscreteProcess::PostStepDoIt(track, step);

G4double ioni_energy = mpt->GetConstProperty("IONIZATIONENERGY");
G4double fano_factor = mpt->GetConstProperty("FANOFACTOR");

G4double mean = energy_dep / ioni_energy;

Expand Down

0 comments on commit e23d806

Please sign in to comment.