GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » How to get the orientation of a detector element?
Re: How to get the orientation of a detector element? [message #11487 is a reply to message #11486] Thu, 10 February 2011 17:37 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Hi,
the following code was used some time ago for MVD, before using the geometry handler. Maybe it could be useful in your case, remember that EMC crystals are not TGeoBBox but somehting else (TGeoTrap?)

      TVector3 mvdPos;
      mvdHit->Position(mvdPos);
      
      TGeoNode *mvdNode = (TGeoNode*)gGeoManager->FindNode(mvdHit->GetX(), mvdHit->GetY(), mvdHit->GetZ());
      TGeoVolume *mvdVol = (TGeoVolume*)mvdNode->GetVolume();
      TGeoBBox* actBox = (TGeoBBox*)(mvdVol->GetShape()); // volume of the MVD strip/pixel
      TGeoMatrix* mvdGeoRot = (TGeoMatrix*)mvdNode->GetMatrix();
      const Double_t *rotM = mvdGeoRot->GetRotationMatrix();
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Emc target pipe hole
Next Topic: barrel geometry in vacuum hits segmentation fault!?
Goto Forum:
  


Current Time: Thu Oct 10 15:58:30 CEST 2024

Total time taken to generate the page: 0.00883 seconds