Skip to content

Commit 23c4a4c

Browse files
authored
Merge pull request #190 from JeffersonLab/fixFMWPCwirepitch
change wire pitch and wire offsets to 1.016*cm and 73*1.016*cm respec…
2 parents 2a3c612 + e623207 commit 23c4a4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/GlueXSensitiveDetectorFMWPC.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ double GlueXSensitiveDetectorFMWPC::TWO_HIT_TIME_RESOL = 400*ns;
3131
double GlueXSensitiveDetectorFMWPC::THRESH_KEV = 0.;
3232

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

3636
// Minimum photoelectron count for a hit
37-
double GlueXSensitiveDetectorFMWPC::WIRE_PITCH = 1.0*cm;
37+
double GlueXSensitiveDetectorFMWPC::WIRE_PITCH = 1.016*cm;
3838

3939
int GlueXSensitiveDetectorFMWPC::instanceCount = 0;
4040
G4Mutex GlueXSensitiveDetectorFMWPC::fMutex = G4MUTEX_INITIALIZER;
@@ -190,15 +190,15 @@ G4bool GlueXSensitiveDetectorFMWPC::ProcessHits(G4Step* step,
190190
int wire = 0;
191191
if (layer % 2 != 0) {
192192
// Vertical wires
193-
wire = floor(x[0] - WIRE_OFFSET)/WIRE_PITCH;
193+
wire = floor((x[0] - WIRE_OFFSET)/WIRE_PITCH);
194194
}
195195
else {
196196
// Horizontal wires
197-
wire = floor(x[1] - WIRE_OFFSET)/WIRE_PITCH;
197+
wire = floor((x[1] - WIRE_OFFSET)/WIRE_PITCH);
198198
}
199199
if (layer == 6) {
200200
// Vertical wires
201-
wire = floor(x[0] - WIRE_OFFSET)/WIRE_PITCH;
201+
wire = floor((x[0] - WIRE_OFFSET)/WIRE_PITCH);
202202
}
203203

204204
//cout<<"MWPC: layer/wire = "<<layer<<" / "<<wire<<endl;

0 commit comments

Comments
 (0)