Skip to content

Commit

Permalink
Merge pull request #190 from JeffersonLab/fixFMWPCwirepitch
Browse files Browse the repository at this point in the history
change wire pitch and wire offsets to 1.016*cm and 73*1.016*cm respec…
  • Loading branch information
eltonssmith authored May 21, 2021
2 parents 2a3c612 + e623207 commit 23c4a4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/GlueXSensitiveDetectorFMWPC.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ double GlueXSensitiveDetectorFMWPC::TWO_HIT_TIME_RESOL = 400*ns;
double GlueXSensitiveDetectorFMWPC::THRESH_KEV = 0.;

// Coordinate of wire 0, transverse to wire direction
double GlueXSensitiveDetectorFMWPC::WIRE_OFFSET = -73*cm;
double GlueXSensitiveDetectorFMWPC::WIRE_OFFSET = -(73.000*1.016)*cm;

// Minimum photoelectron count for a hit
double GlueXSensitiveDetectorFMWPC::WIRE_PITCH = 1.0*cm;
double GlueXSensitiveDetectorFMWPC::WIRE_PITCH = 1.016*cm;

int GlueXSensitiveDetectorFMWPC::instanceCount = 0;
G4Mutex GlueXSensitiveDetectorFMWPC::fMutex = G4MUTEX_INITIALIZER;
Expand Down Expand Up @@ -190,15 +190,15 @@ G4bool GlueXSensitiveDetectorFMWPC::ProcessHits(G4Step* step,
int wire = 0;
if (layer % 2 != 0) {
// Vertical wires
wire = floor(x[0] - WIRE_OFFSET)/WIRE_PITCH;
wire = floor((x[0] - WIRE_OFFSET)/WIRE_PITCH);
}
else {
// Horizontal wires
wire = floor(x[1] - WIRE_OFFSET)/WIRE_PITCH;
wire = floor((x[1] - WIRE_OFFSET)/WIRE_PITCH);
}
if (layer == 6) {
// Vertical wires
wire = floor(x[0] - WIRE_OFFSET)/WIRE_PITCH;
wire = floor((x[0] - WIRE_OFFSET)/WIRE_PITCH);
}

//cout<<"MWPC: layer/wire = "<<layer<<" / "<<wire<<endl;
Expand Down

0 comments on commit 23c4a4c

Please sign in to comment.