Skip to content

Commit

Permalink
Merge pull request #188 from JeffersonLab/fdc_anode_wire_pulse_height…
Browse files Browse the repository at this point in the history
…_fix_rtj

This fixes the discrepancy between G3/G4 as shown in issue #181
  • Loading branch information
aaust authored Mar 23, 2021
2 parents cc43eaa + db2e184 commit 7fe6a57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GlueXSensitiveDetectorFDC.cc
Original file line number Diff line number Diff line change
Expand Up @@ -535,15 +535,15 @@ G4bool GlueXSensitiveDetectorFDC::ProcessHits(G4Step* step,
}
}
if (merge_hits) {
hiter->dE_keV += dEsum/keV;
hiter->dE_keV += dE/keV;
hiter->t1_ns = tout/ns;
hiter->x1_g = xout;
hiter->x1_l = x1;
}
else if ((int)anode->hits.size() < MAX_HITS) {
// create new hit
hiter = anode->hits.insert(hiter, GlueXHitFDCwire::hitinfo_t());
hiter->dE_keV = dEsum/keV;
hiter->dE_keV = dE/keV;
hiter->itrack_ = itrack;
hiter->ptype_G3 = g3type;
hiter->t0_ns = tin/ns;
Expand Down Expand Up @@ -654,7 +654,7 @@ void GlueXSensitiveDetectorFDC::EndOfEvent(G4HCofThisEvent*)

double xwire = U_OF_WIRE_ONE + (wire - 1) * WIRE_SPACING;
double dE = splits[0].dE_keV*keV;
if (dE > THRESH_KEV*keV*0) {
if (dE > THRESH_KEV*keV) {
// Average number of primary ion pairs
double n_p_mean = dE / W_EFF_PER_ION / (1 + N_SECOND_PER_PRIMARY);
// number of primary ion pairs
Expand Down

0 comments on commit 7fe6a57

Please sign in to comment.