Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion source/detector/detector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,19 @@ int detector::create_solid(goptions gemcOpt, map<string, detector> *Map)
for(int v=0; v<nz; v++)
vertices.push_back(G4TwoVector(dimensions[2*v+1], dimensions[2*v+2]));

SolidV = new G4GenericTrap(name, ///< name
if (name.size() > 27 && name.compare(19,8, "ahdccell") == 0) {
G4Box* box = new G4Box("Box",80*mm,80*mm,158*mm);
G4GenericTrap* ahdc_cell_nocut = new G4GenericTrap(name + "_nocut", ///< name
dz, ///< Half z length
vertices); ///< The (x,y) coordinates of vertices
SolidV = new G4IntersectionSolid(name, box, ahdc_cell_nocut);

} else {
SolidV = new G4GenericTrap(name, ///< name
dz, ///< Half z length
vertices); ///< The (x,y) coordinates of vertices
}

built = 1;
}

Expand Down
4 changes: 2 additions & 2 deletions source/hitprocess/clas12/alert/ahdc_hitprocess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ void ahdcSignal::ComputeDocaAndTime(MHit * aHit){
// ALERT geometry
double X_sigwire_top = 0; // [mm]
double Y_sigwire_top = 0;
double Z_sigwire_top = -150;
double Z_sigwire_top = -188;
double X_sigwire_bot = 0; // [mm]
double Y_sigwire_bot = 0;
double Z_sigwire_bot = 150;
double Z_sigwire_bot = 162.5;

// Compute Y_sigwire_top, Z_sigwire_top, Y_sigwire_bot, Z_sigwire_bot
double xV0 = 0.0;
Expand Down
Loading