Print

Print


Hi,

In addition to my previous e-mail, I would like to access the x,y vales
(mm) of certain crystals (I would like to avoid hard-coding coordinates). I
've done this previously in clustering by using a hit (CalorimeterHit) and
then getting the geometry:
IGeometryInfo geom = hit.getDetectorElement().getGeometry();

        double[] pos = geom.transformLocalToGlobal(VecOp.add(geom
.transformGlobalToLocal(geom.getPosition()), (Hep3Vector) new
BasicHep3Vector(0, 0, -1 * ((Trd) geom
.getLogicalVolume().getSolid()).getZHalfLength()))).v();
Is there a way to do this without using a CalorimeterHit? Perhaps just
using a crystal index like ix,iy?

Thanks,
Holly

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1