- Bool_t IsInitialized(void) const { return fgInit ; }
- // Return EMCA geometrical parameters
- // geometry
- const Float_t GetAlFrontThickness() const { return fAlFrontThick;}
- const Float_t GetArm1PhiMin() const { return fArm1PhiMin ; }
- const Float_t GetArm1PhiMax() const { return fArm1PhiMax ; }
- const Float_t GetArm1EtaMin() const { return fArm1EtaMin;}
- const Float_t GetArm1EtaMax() const { return fArm1EtaMax;}
- const Float_t GetIPDistance() const { return fIPDistance ; }
- const Float_t GetIP2PRESection() const { return (GetIPDistance() + GetAlFrontThickness() + GetGap2Active() ) ;}
- const Float_t GetIP2ECALSection() const { return ( GetIP2PRESection() + GetNPRLayers() * ( GetPRScintThick() + GetPRPbRadThick() ) ) ; }
- const Float_t GetIP2HCALSection() const { return ( GetIP2ECALSection() + GetNECLayers() * ( GetECScintThick() + GetECPbRadThick() ) ) ; }
- const Float_t GetEnvelop(Int_t index) const { return fEnvelop[index] ; }
- const Float_t GetShellThickness() const { return fShellThickness ; }
- const Float_t GetZLength() const { return fZLength ; }
- const Float_t GetGap2Active() const {return fGap2Active ; }
- const Float_t GetDeltaEta() const {return (fArm1EtaMax-fArm1EtaMin)/
- ((Float_t)fNZ);}
- const Float_t GetDeltaPhi() const {return (fArm1PhiMax-fArm1PhiMin)/
- ((Float_t)fNPhi);}
- const Int_t GetNECLayers() const {return fNECLayers ;}
- const Int_t GetNHCLayers() const {return fNHCLayers ;}
- const Int_t GetNPRLayers() const {return fNPRLayers;}
- const Int_t GetNZ() const {return fNZ ;}
- const Int_t GetNEta() const {return fNZ ;}
- const Int_t GetNPhi() const {return fNPhi ;}
- const Int_t GetNTowers() const {return fNPhi * fNZ ;}
- const Float_t GetPRPbRadThick()const {return fPRPbRadThickness;}
- const Float_t GetECPbRadThick()const {return fECPbRadThickness;}
- const Float_t GetHCCuRadThick()const {return fHCCuRadThickness;}
- const Float_t GetPRScintThick() const {return fPRScintThick;}
- const Float_t GetECScintThick() const {return fECScintThick;}
- const Float_t GetHCScintThick() const {return fECScintThick;}
- const Float_t GetSampling() const {return fSampling ; }
- const Float_t GetSummationFraction() const {return fSummationFraction ; }
-
- const Bool_t IsInPRE(Int_t index) const { if ( (index > (GetNZ() * GetNPhi()) && (index <= 2 * (GetNZ() * GetNPhi())))) return kTRUE; else return kFALSE ;}
- const Bool_t IsInECAL(Int_t index) const { if ( (index > 0 && (index <= GetNZ() * GetNPhi()))) return kTRUE; else return kFALSE ;}
- const Bool_t IsInHCAL(Int_t index) const { if ( (index > 2*(GetNZ() * GetNPhi()) && (index <= 3 * (GetNZ() * GetNPhi())))) return kTRUE; else return kFALSE ;} ;
-
- Float_t AngleFromEta(Float_t eta){ // returns angle in radians for a given
- // pseudorapidity.
- return 2.0*TMath::ATan(TMath::Exp(-eta));
- }
- Float_t ZFromEtaR(Float_t r,Float_t eta){ // returns z in for a given
- // pseudorapidity and r=sqrt(x*x+y*y).
- return r/TMath::Tan(AngleFromEta(eta));
- }
- Int_t TowerIndex(Int_t iz,Int_t iphi) const; // returns tower index
- // returns tower indexs iz, iphi.
- void TowerIndexes(Int_t index,Int_t &iz,Int_t &iphi,Int_t &ipre) 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;
- // returns x, y, and z (cm) on the inner surface of a given EMCAL Cell specified by relid.
- void XYZFromIndex(const Int_t *relid,Float_t &x,Float_t &y, Float_t &z) const;
- void XYZFromIndex(const Int_t absid, TVector3 &v) const;
- // for a given eta and phi in the EMCAL it returns the tower index.
- Int_t TowerIndexFromEtaPhi(Float_t eta,Float_t phi) const;
- // for a given eta and phi in the EMCAL it returns the pretower index.
- Int_t PreTowerIndexFromEtaPhi(Float_t eta,Float_t phi) const;
- // Returns theta and phi (degree) for a given EMCAL cell indicated by relid or absid
- void PosInAlice(const Int_t *relid, Float_t &theta, Float_t &phi) const ;
- void PosInAlice(const Int_t absid, Float_t &theta, Float_t &phi) const ;
- Bool_t AbsToRelNumbering(Int_t AbsId, Int_t *relid) const;
- /*
- // Returns kTRUE if the two indexs are neighboring towers or preshowers.
- Boot_t AliEMCALGeometry::AreNeighbours(Int_t index1,Int_t index2) const;
- */
+ //
+ Bool_t IsInitialized(void) const { return AliEMCALEMCGeometry::fgInit ; }
+ static const Char_t* GetDefaultGeometryName() {return AliEMCALEMCGeometry::fgkDefaultGeometryName;}
+
+ //////////////////////////
+ // Global geometry methods
+ //
+ using AliEMCALGeoUtils::GetGlobal;
+
+// virtual void GetGlobal(const AliRecPoint *rp, TVector3 & gpos, TMatrixF & /* gmat */)
+// const {GetGlobal(rp,gpos); }
+// virtual void GetGlobalEMCAL(const AliEMCALRecPoint *rp, TVector3 &vglob) const;
+// virtual void GetGlobalEMCAL(const AliEMCALRecPoint *rp, TVector3 & gpos, TMatrixF & /* gmat */)
+// const {GetGlobalEMCAL(rp,gpos); }
+
+ // Return EMC geometry parameters
+ AliEMCALEMCGeometry * GetEMCGeometry() const {return fEMCGeometry ;}
+
+ //////////////////////////////////////
+ // Return EMCAL geometrical parameters
+ //
+ const Char_t* GetNameOfEMCALEnvelope(void) const {return fEMCGeometry->GetNameOfEMCALEnvelope();}
+ Float_t GetArm1PhiMin(void) const { return fEMCGeometry->GetArm1PhiMin(); }
+ Float_t GetArm1PhiMax(void) const { return fEMCGeometry->GetArm1PhiMax(); }
+ Float_t GetArm1EtaMin(void) const { return fEMCGeometry->GetArm1EtaMin();}
+ Float_t GetArm1EtaMax(void) const { return fEMCGeometry->GetArm1EtaMax();}
+ Float_t GetIPDistance(void) const { return fEMCGeometry->GetIPDistance();}
+ Float_t GetEnvelop(Int_t index) const { return fEMCGeometry->GetEnvelop(index); }
+ Float_t GetShellThickness(void) const { return fEMCGeometry->GetShellThickness(); }
+ Float_t GetZLength(void) const { return fEMCGeometry->GetZLength(); }
+ Int_t GetNECLayers(void) const {return fEMCGeometry->GetNECLayers();}
+ Int_t GetNZ(void) const {return fEMCGeometry->GetNZ();}
+ Int_t GetNEta(void) const {return fEMCGeometry->GetNEta();}
+ Int_t GetNPhi(void) const {return fEMCGeometry->GetNPhi();}
+ Float_t GetECPbRadThick(void)const {return fEMCGeometry->GetECPbRadThick();}
+ Float_t GetECScintThick(void) const {return fEMCGeometry->GetECScintThick();}
+ Float_t GetSampling(void) const {return fEMCGeometry->GetSampling(); }
+ Int_t GetNumberOfSuperModules(void) const {return fEMCGeometry->GetNumberOfSuperModules();}
+ Float_t GetfPhiGapForSuperModules(void) const {return fEMCGeometry->GetfPhiGapForSuperModules();}
+ Float_t GetPhiModuleSize(void) const {return fEMCGeometry->GetPhiModuleSize();}
+ Float_t GetEtaModuleSize(void) const {return fEMCGeometry->GetEtaModuleSize();}
+ Float_t GetFrontSteelStrip(void) const {return fEMCGeometry->GetFrontSteelStrip();}
+ Float_t GetLateralSteelStrip(void) const {return fEMCGeometry->GetLateralSteelStrip();}
+ Float_t GetPassiveScintThick(void) const {return fEMCGeometry->GetPassiveScintThick();}
+ Float_t GetPhiTileSize(void) const {return fEMCGeometry->GetPhiTileSize();}
+ Float_t GetEtaTileSize(void) const {return fEMCGeometry->GetEtaTileSize();}
+ Int_t GetNPhiSuperModule(void) const {return fEMCGeometry->GetNPhiSuperModule();}
+ Int_t GetNPHIdiv(void) const {return fEMCGeometry->GetNPHIdiv();}
+ Int_t GetNETAdiv(void) const {return fEMCGeometry->GetNETAdiv();}
+ Int_t GetNCells(void) const {return fEMCGeometry->GetNCells();}
+ Float_t GetLongModuleSize(void) const {return fEMCGeometry->GetLongModuleSize();}
+ Float_t GetTrd1Angle(void) const {return fEMCGeometry->GetTrd1Angle();}
+ Float_t Get2Trd1Dx2(void) const {return fEMCGeometry->Get2Trd1Dx2();}
+ Float_t GetTrd1AlFrontThick() const {return fEMCGeometry->GetTrd1AlFrontThick();}
+ Float_t GetTrd1BondPaperThick() const {return fEMCGeometry->GetTrd1BondPaperThick();}
+ // --
+ Int_t GetNCellsInSupMod(void) const {return fEMCGeometry->GetNCellsInSupMod();}
+ Int_t GetNCellsInModule(void) const {return fEMCGeometry->GetNCellsInModule(); }
+ Int_t GetKey110DEG(void) const {return fEMCGeometry->GetKey110DEG();}
+ Int_t GetILOSS(void) const {return fEMCGeometry->GetILOSS();}
+ Int_t GetIHADR(void) const {return fEMCGeometry->GetIHADR();}
+ // For gamma(Jet) trigger simulations
+ Int_t GetNTRU() const {return fEMCGeometry->GetNTRU(); }
+ Int_t GetNTRUEta() const {return fEMCGeometry->GetNTRUEta(); }
+ Int_t GetNTRUPhi() const {return fEMCGeometry->GetNTRUPhi(); }
+ Int_t GetNEtaSubOfTRU() const {return fEMCGeometry->GetNEtaSubOfTRU();}
+ Int_t GetNModulesInTRU() const {return fEMCGeometry->GetNModulesInTRU(); }
+ Int_t GetNModulesInTRUEta() const {return fEMCGeometry->GetNModulesInTRUEta(); }
+ Int_t GetNModulesInTRUPhi() const {return fEMCGeometry->GetNModulesInTRUPhi(); }
+
+ // --
+ Float_t GetDeltaEta(void) const {return fEMCGeometry->GetDeltaEta();}
+ Float_t GetDeltaPhi(void) const {return fEMCGeometry->GetDeltaPhi();}
+ Int_t GetNTowers(void) const {return fEMCGeometry->GetNTowers();}
+ //
+ Double_t GetPhiCenterOfSM(Int_t nsupmod) const {return fEMCGeometry->GetPhiCenterOfSM(nsupmod);}
+ Float_t *GetSuperModulesPars(void) const {return fEMCGeometry->GetSuperModulesPars();}
+ //
+ Bool_t GetPhiBoundariesOfSM(Int_t nSupMod, Double_t &phiMin, Double_t &phiMax) const {return fEMCGeometry->GetPhiBoundariesOfSM(nSupMod, phiMin, phiMax);}
+ Bool_t GetPhiBoundariesOfSMGap(Int_t nPhiSec, Double_t &phiMin, Double_t &phiMax) const {return fEMCGeometry->GetPhiBoundariesOfSMGap(nPhiSec, phiMin, phiMax);}
+ //