void AliEMCALGeometry::GetGlobal(const AliRecPoint *rp, TVector3 &vglob) const
{
- //Figure out the global numbering
- //of a given supermodule from the
- //local numbering for RecPoints
+ // Figure out the global numbering
+ // of a given supermodule from the
+ // local numbering for RecPoints
static TVector3 vloc;
static Int_t nSupMod, nTower, nIphi, nIeta;
GetGlobal(vloc, vglob, nSupMod);
}
+void AliEMCALGeometry::EtaPhiFromIndex(Int_t absId,Float_t &eta,Float_t &phi) const
+{
+ // Jun 03, 2006 - version for TRD1
+ static TVector3 vglob;
+ GetGlobal(absId, vglob);
+ eta = vglob.Eta();
+ phi = vglob.Phi();
+}
+
AliEMCALShishKebabTrd1Module* AliEMCALGeometry::GetShishKebabModule(Int_t neta=0)
{
//This method was too long to be
void GetGlobal(const TVector3 &vloc, TVector3 &vglob, int nsm) const;
void GetGlobal(Int_t absId, TVector3 &vglob) const;
// for a given tower index it returns eta and phi of center of that tower.
- void EtaPhiFromIndex(Int_t index,Float_t &eta,Float_t &phi) const;
+ void EtaPhiFromIndex(Int_t absId,Float_t &eta,Float_t &phi) const;
// virtual void GetGlobal(const AliEMCALRecPoint *rp, TVector3 &vglob) const;