- public:
- AliEMCALGeometry() {
- // default ctor, must be kept public for root persistency purposes,
- // but should never be called by the outside world
- };
- AliEMCALGeometry(const AliEMCALGeometry & geom) {
- // cpy ctor requested by Coding Convention but not yet needed
- assert(0==1);
- };
- virtual ~AliEMCALGeometry(void) ;
- static AliEMCALGeometry * GetInstance(const Text_t* name,
- const Text_t* title="") ;
- static AliEMCALGeometry * GetInstance() ;
- AliEMCALGeometry & operator = (const AliEMCALGeometry & rvalue) const {
- // assignement operator requested by coding convention but not needed
- assert(0==1) ;
- return *(GetInstance()) ;
- };
- virtual void GetGlobal(const AliRecPoint *, TVector3 &, TMatrix &) const {}
- virtual void GetGlobal(const AliRecPoint *, TVector3 &) const {}
- // General
- Bool_t IsInitialized(void) const { return fgInit ; }
- // Return EMCA geometrical parameters
- // geometry
- const Float_t GetAirGap() const { return fAirGap ; }
- 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 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 GetNLayers() const {return fNLayers ;}
- const Int_t GetNZ() const {return fNZ ;}
- const Int_t GetNEta() const {return fNZ ;}
- const Int_t GetNPhi() const {return fNPhi ;}
- const Float_t GetPbRadThick(){ // returns Pb radiator thickness in cm.
- return fPbRadThickness;
- }
- const Float_t GetFullSintThick(){ // returns Full tower sintilator
- // thickness in cm.
- return fFullShowerSintThick;
- }
- const Float_t GetPreSintThick(){ // returns PreShower tower sintilator
- // thickness in cm.
- return fPreShowerSintThick;
- }
- 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,Int_t ipre) 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;
- // 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 indecated by relid
- void PosInAlice(const Int_t *relid,Float_t &theta,Float_t &phi);
- // Returns an array indicating the Tower/preshower, iz, and iphi for a
- // specific EMCAL indes.
- 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;
- */
+public:
+ AliEMCALGeometry() {
+ // default ctor, must be kept public for root persistency purposes,
+ // but should never be called by the outside world
+ };
+ AliEMCALGeometry(const AliEMCALGeometry& geom):AliGeometry(geom) {
+ // cpy ctor requested by Coding Convention but not yet needed
+ Fatal("Cpy ctor", "Not implemented");
+ };
+ virtual ~AliEMCALGeometry(void) ;
+ static AliEMCALGeometry * GetInstance(const Text_t* name,
+ const Text_t* title="") ;
+ static AliEMCALGeometry * GetInstance() ;
+ AliEMCALGeometry & operator = (const AliEMCALGeometry & /*rvalue*/) const {
+ // assignement operator requested by coding convention but not needed
+ Fatal("operator =", "not implemented");
+ return *(GetInstance()) ;
+ };