pos.Transform(rot) ; // rotate the baby
}
+//____________________________________________________________________________
+void AliPHOSGeometry::RelPosToAbsId(const Int_t module, const Double_t x, const Double_t z, Int_t & AbsId) const
+{
+ // converts local PHOS-module (x, z) coordinates to absId
+ Int_t relid[4] ;
+ relid[0] = module ;
+ relid[1] = 0 ;
+ relid[2] = static_cast<Int_t>(TMath::Ceil( x/ GetCellStep() + GetNPhi() / 2.) );
+ relid[3] = static_cast<Int_t>(TMath::Ceil(-z/ GetCellStep() + GetNZ() / 2.) ) ;
+
+ RelToAbsNumbering(relid,AbsId) ;
+}
+
//____________________________________________________________________________
void AliPHOSGeometry::RelPosInModule(const Int_t * relid, Float_t & x, Float_t & z) const
{
// gets the position of element (pad or Xtal) relative to Alice
Bool_t RelToAbsNumbering(const Int_t * RelId, Int_t & AbsId) const ;
// converts the absolute PHOS numbering to a relative
+ void RelPosToAbsId(const Int_t module, const Double_t x, const Double_t z, Int_t & AbsId) const;
+ // converts local PHOS-module (x, z) coordinates to absId
Bool_t IsInitialized(void) const { return fgInit ; }