bugfix-planeID-and-type-in-utils
If we have the module: STT_78[mod]_TrkMod_PV_0[icopymod]/STT_78_TrkMod_hh[orient]_PV_1[icopy] in the function sand_reco::getPlaneID(TString path)
we get:
- mod: 78
-
icopymod
: 0 -
icopy
: 1 -
orient
: 2 for hh and 1 for vv Consequently, -
moduleid
: mod + 10 * icopymod -
planelocid
: icopy -
type
: orient + 2 * icopy Finally, the plane unique ID will be constructed asmoduleid * 100 + planelocid * 10 + type
. In this way horizontal and vertical plane for the same module will have the same plane local id and, in addition, type could be other than 1 or 2 as it should be. I would propose to change in: -
moduleid
: mod + 10 * icopymod -
planelocid
: orient + 2 * icopy -
type
: orient
Edited by Matteo Tenti