ClassImp(AliEMCALDigit)
//____________________________________________________________________________
- AliEMCALDigit::AliEMCALDigit()
+ AliEMCALDigit::AliEMCALDigit()
{
// default ctor
{
Float_t eta=-10., phi=-10.;
Int_t id = GetId();
- AliEMCALGeometry *g = AliEMCALGetter::GetInstance()->EMCALGeometry();
+ const AliEMCALGeometry *g = AliEMCALGetter::GetInstance()->EMCALGeometry();
g->EtaPhiFromIndex(id,eta,phi);
return eta ;
}
{
Float_t eta=-10., phi=-10.;
Int_t id = GetId();
- AliEMCALGeometry *g = AliEMCALGetter::GetInstance()->EMCALGeometry();
+ const AliEMCALGeometry *g = AliEMCALGetter::GetInstance()->EMCALGeometry();
g->EtaPhiFromIndex(id,eta,phi);
return phi ;
}
return rv;
}
//______________________________________________________________________
-Int_t AliEMCALGeometry::TowerIndex(Int_t ieta,Int_t iphi,Int_t ipre){
+Int_t AliEMCALGeometry::TowerIndex(Int_t ieta,Int_t iphi,Int_t ipre) const{
// Returns the tower index number from the based on the Z and Phi
// index numbers. There are 2 times the number of towers to separate
// out the full towsers from the pre-towsers.
}
//______________________________________________________________________
void AliEMCALGeometry::TowerIndexes(Int_t index,Int_t &ieta,Int_t &iphi,
- Int_t &ipre){
+ Int_t &ipre) const{
// given the tower index number it returns the based on the Z and Phi
// index numbers and if it is for the full tower or the pre-tower number.
// There are 2 times the number of towers to separate
return;
}
//______________________________________________________________________
-void AliEMCALGeometry::EtaPhiFromIndex(Int_t index,Float_t &eta,Float_t &phi){
+void AliEMCALGeometry::EtaPhiFromIndex(Int_t index,Float_t &eta,Float_t &phi) const{
// given the tower index number it returns the based on the eta and phi
// of the tower.
// Inputs:
phi = phid;
}
//______________________________________________________________________
-Int_t AliEMCALGeometry::TowerIndexFromEtaPhi(Float_t eta,Float_t phi){
+Int_t AliEMCALGeometry::TowerIndexFromEtaPhi(Float_t eta,Float_t phi) const{
// returns the tower index number based on the eta and phi of the tower.
// Inputs:
// Float_t eta // eta of center of tower in pseudorapidity
return TowerIndex(ieta,iphi,0);
}
//______________________________________________________________________
-Int_t AliEMCALGeometry::PreTowerIndexFromEtaPhi(Float_t eta,Float_t phi){
+Int_t AliEMCALGeometry::PreTowerIndexFromEtaPhi(Float_t eta,Float_t phi) const{
// returns the pretower index number based on the eta and phi of the tower.
// Inputs:
// Float_t eta // eta of center of tower in pseudorapidity
return GetNEta()*GetNPhi()+TowerIndexFromEtaPhi(eta,phi);
}
//______________________________________________________________________
-Bool_t AliEMCALGeometry::AbsToRelNumbering(Int_t AbsId, Int_t *relid){
+Bool_t AliEMCALGeometry::AbsToRelNumbering(Int_t AbsId, Int_t *relid) const{
// Converts the absolute numbering into the following array/
// relid[0] = EMCAL Arm number 1:1
// relid[1] = 0 Not in Pre Shower layers
}
//______________________________________________________________________
/*
-Boot_t AliEMCALGeometry::AreNeighbours(Int_t index1,Int_t index2){
+Boot_t AliEMCALGeometry::AreNeighbours(Int_t index1,Int_t index2) const{
// Returns kTRUE if the two towers are neighbours or not, including
// diagonals. Both indexes are required to be either towers or preshower.
// Inputs:
// 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); // returns tower index
+ 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);
+ 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);
+ 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);
+ 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);
+ 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);
+ 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);
+ Boot_t AliEMCALGeometry::AreNeighbours(Int_t index1,Int_t index2) const;
*/
protected: