Skip to content

Commit

Permalink
Merge pull request #26 from baltzell/development
Browse files Browse the repository at this point in the history
Revert "leave internal indexing at zero, output at 1"
  • Loading branch information
mpaolone authored Dec 18, 2024
2 parents 48eaa66 + bd001db commit e2acd07
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ public AlertTOFDetector createDetectorLocal(ConstantProvider cp) {

@Override
public AlertTOFSector createSector(ConstantProvider cp, int sectorId) {
AlertTOFSector sector = new AlertTOFSector(sectorId+1);
AlertTOFSector sector = new AlertTOFSector(sectorId);
for (int superlayerId = 0; superlayerId < nsuperl; superlayerId++)
sector.addSuperlayer(createSuperlayer(cp, sectorId, superlayerId));
return sector;
}

@Override
public AlertTOFSuperlayer createSuperlayer(ConstantProvider cp, int sectorId, int superlayerId) {
AlertTOFSuperlayer superlayer = new AlertTOFSuperlayer(sectorId+1, superlayerId+1);
AlertTOFSuperlayer superlayer = new AlertTOFSuperlayer(sectorId, superlayerId);

if (superlayerId == 0) {
int nlayers0 = 1;
Expand Down Expand Up @@ -94,7 +94,7 @@ public AlertTOFLayer createLayer(ConstantProvider cp, int sectorId, int superlay

double gap_pad_z = 0.3d; // mm, gap between paddles in z

AlertTOFLayer layer = new AlertTOFLayer(sectorId+1, superlayerId+1, layerId+1);
AlertTOFLayer layer = new AlertTOFLayer(sectorId, superlayerId, layerId);

double len_b = layerId * pad_z + layerId * gap_pad_z; // back paddle plan
double len_f = len_b + pad_z; // front paddle plan
Expand Down

0 comments on commit e2acd07

Please sign in to comment.