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: Mon Feb 06 11:37:31 CET 2023

Total time taken to generate the page: 0.00960 seconds