AliRoot Core  edcc906 (edcc906)
AliEMCALGeometry Class Reference

EMCal geometry, singleton. More...

#include <AliEMCALGeometry.h>

Inheritance diagram for AliEMCALGeometry:

Public Types

enum  fEMCSMType {
  kEMCAL_Standard = 0, kEMCAL_Half = 1, kEMCAL_3rd = 2, kDCAL_Standard = 3,
  kDCAL_Ext = 4
}
 

Public Member Functions

 AliEMCALGeometry ()
 
 AliEMCALGeometry (const Text_t *name, const Text_t *title="", const Text_t *mcname="", const Text_t *mctitle="")
 
 AliEMCALGeometry (const AliEMCALGeometry &geom)
 
virtual ~AliEMCALGeometry (void)
 
AliEMCALGeometryoperator= (const AliEMCALGeometry &rvalue)
 
void CreateListOfTrd1Modules ()
 
TList * GetShishKebabTrd1Modules () const
 
AliEMCALShishKebabTrd1ModuleGetShishKebabModule (Int_t neta) const
 
void PrintGeometryGeoUtils ()
 
void PrintCellIndexes (Int_t absId=0, int pri=0, const char *tit="") const
 
void PrintLocalTrd1 (Int_t pri=0) const
 
virtual void Browse (TBrowser *b)
 
virtual Bool_t IsFolder () const
 
virtual Bool_t Impact (const TParticle *particle) const
 
void ImpactOnEmcal (TVector3 vtx, Double_t theta, Double_t phi, Int_t &absId, TVector3 &vimpact) const
 
Bool_t IsInEMCAL (Double_t x, Double_t y, Double_t z) const
 
Bool_t IsInDCAL (Double_t x, Double_t y, Double_t z) const
 
Int_t IsInEMCALOrDCAL (Double_t x, Double_t y, Double_t z) const
 
AliEMCALEMCGeometryGetEMCGeometry () const
 
AliEMCALTriggerMappingGetTriggerMapping () const
 
const Char_t * GetNameOfEMCALEnvelope (void) const
 
Float_t GetArm1PhiMin (void) const
 
Float_t GetArm1PhiMax (void) const
 
Float_t GetArm1EtaMin (void) const
 
Float_t GetArm1EtaMax (void) const
 
Float_t GetIPDistance (void) const
 
Float_t GetEnvelop (Int_t index) const
 
Float_t GetShellThickness (void) const
 
Float_t GetZLength (void) const
 
Float_t GetDCALInnerEdge (void) const
 
Float_t GetDCALPhiMin (void) const
 
Float_t GetDCALPhiMax (void) const
 
Float_t GetEMCALPhiMax (void) const
 
Int_t GetNECLayers (void) const
 
Float_t GetDCALInnerExtandedEta (void) const
 
Int_t GetNZ (void) const
 
Int_t GetNEta (void) const
 
Int_t GetNPhi (void) const
 
Float_t GetECPbRadThick (void) const
 
Float_t GetECScintThick (void) const
 
Float_t GetSampling (void) const
 
Int_t GetNumberOfSuperModules (void) const
 
Float_t GetPhiGapForSuperModules (void) const
 
Float_t GetPhiModuleSize (void) const
 
Float_t GetEtaModuleSize (void) const
 
Float_t GetFrontSteelStrip (void) const
 
Float_t GetLateralSteelStrip (void) const
 
Float_t GetPassiveScintThick (void) const
 
Float_t GetPhiTileSize (void) const
 
Float_t GetEtaTileSize (void) const
 
Float_t GetPhiSuperModule (void) const
 
Int_t GetNPhiSuperModule (void) const
 
Int_t GetNPHIdiv (void) const
 
Int_t GetNETAdiv (void) const
 
Int_t GetNCells (void) const
 
Float_t GetLongModuleSize (void) const
 
Float_t GetTrd1Angle (void) const
 
Float_t Get2Trd1Dx2 (void) const
 
Float_t GetTrd1AlFrontThick () const
 
Float_t GetTrd1BondPaperThick () const
 
Int_t GetNCellsInSupMod (void) const
 
Int_t GetNCellsInModule (void) const
 
Int_t GetKey110DEG (void) const
 
Int_t GetnSupModInDCAL (void) const
 
Int_t GetILOSS (void) const
 
Int_t GetIHADR (void) const
 
Float_t GetDeltaEta (void) const
 
Float_t GetDeltaPhi (void) const
 
Int_t GetNTowers (void) const
 
Double_t GetPhiCenterOfSM (Int_t nsupmod) const
 
Double_t GetPhiCenterOfSMSec (Int_t nsupmod) const
 
Float_t GetSuperModulesPar (Int_t ipar) const
 
Int_t GetSMType (Int_t nSupMod) const
 
Bool_t IsDCALSM (Int_t nSupMod) const
 
Bool_t IsDCALExtSM (Int_t nSupMod) const
 
Bool_t GetPhiBoundariesOfSM (Int_t nSupMod, Double_t &phiMin, Double_t &phiMax) const
 
Bool_t GetPhiBoundariesOfSMGap (Int_t nPhiSec, Double_t &phiMin, Double_t &phiMax) const
 
Float_t GetSteelFrontThickness (void) const
 
void SetNZ (Int_t nz)
 
void SetNPhi (Int_t nphi)
 
void SetSampling (Float_t samp)
 
void PrintGeometry ()
 
void GetGlobal (const Double_t *loc, Double_t *glob, int ind) const
 
void GetGlobal (const TVector3 &vloc, TVector3 &vglob, int ind) const
 
void GetGlobal (Int_t absId, Double_t glob[3]) const
 
void GetGlobal (Int_t absId, TVector3 &vglob) const
 
void EtaPhiFromIndex (Int_t absId, Double_t &eta, Double_t &phi) const
 
void EtaPhiFromIndex (Int_t absId, Float_t &eta, Float_t &phi) const
 
Bool_t GetAbsCellIdFromEtaPhi (Double_t eta, Double_t phi, Int_t &absId) const
 
Bool_t SuperModuleNumberFromEtaPhi (Double_t eta, Double_t phi, Int_t &nSupMod) const
 
Int_t GetAbsCellId (Int_t nSupMod, Int_t nModule, Int_t nIphi, Int_t nIeta) const
 
Bool_t CheckAbsCellId (Int_t absId) const
 
Bool_t GetCellIndex (Int_t absId, Int_t &nSupMod, Int_t &nModule, Int_t &nIphi, Int_t &nIeta) const
 
void GetModulePhiEtaIndexInSModule (Int_t nSupMod, Int_t nModule, Int_t &iphim, Int_t &ietam) const
 
void GetCellPhiEtaIndexInSModule (Int_t nSupMod, Int_t nModule, Int_t nIphi, Int_t nIeta, Int_t &iphi, Int_t &ieta) const
 
Int_t GetSuperModuleNumber (Int_t absId) const
 
Int_t GetNumberOfModuleInPhiDirection (Int_t nSupMod) const
 
Int_t GetNumberOfCellsInPhiDirection (Int_t nSupMod) const
 
Int_t GetNumberOfModuleInEtaDirection (Int_t nSupMod) const
 
Int_t GetNumberOfCellsInEtaDirection (Int_t nSupMod) const
 
void GetModuleIndexesFromCellIndexesInSModule (Int_t nSupMod, Int_t iphi, Int_t ieta, Int_t &iphim, Int_t &ietam, Int_t &nModule) const
 Transition from cell indexes (ieta,iphi) to module indexes (ietam, iphim, nModule) More...
 
Int_t GetAbsCellIdFromCellIndexes (Int_t nSupMod, Int_t iphi, Int_t ieta) const
 
void ShiftOnlineToOfflineCellIndexes (Int_t sm, Int_t &iphi, Int_t &ieta) const
 
void ShiftOfflineToOnlineCellIndexes (Int_t sm, Int_t &iphi, Int_t &ieta) const
 
Bool_t RelPosCellInSModule (Int_t absId, Double_t &xr, Double_t &yr, Double_t &zr) const
 
Bool_t RelPosCellInSModule (Int_t absId, Double_t distEff, Double_t &xr, Double_t &yr, Double_t &zr) const
 
Bool_t RelPosCellInSModule (Int_t absId, Double_t loc[3]) const
 
Bool_t RelPosCellInSModule (Int_t absId, TVector3 &vloc) const
 
Int_t * GetEMCSystem () const
 
TArrayD GetCentersOfCellsEtaDir () const
 
TArrayD GetCentersOfCellsXDir () const
 
TArrayD GetCentersOfCellsPhiDir () const
 
TArrayD GetEtaCentersOfCells () const
 
TArrayD GetPhiCentersOfCells () const
 
Float_t AngleFromEta (Float_t eta) const
 
Float_t ZFromEtaR (Float_t r, Float_t eta) const
 
void SetMisalMatrix (const TGeoHMatrix *m, Int_t smod) const
 
void RecalculateTowerPosition (Float_t drow, Float_t dcol, const Int_t sm, const Float_t depth, const Float_t misaligTransShifts[15], const Float_t misaligRotShifts[15], Float_t global[3]) const
 
const TGeoHMatrix * GetMatrixForSuperModule (Int_t smod) const
 
const TGeoHMatrix * GetMatrixForSuperModuleFromGeoManager (Int_t smod) const
 
const TGeoHMatrix * GetMatrixForSuperModuleFromArray (Int_t smod) const
 
Bool_t GetAbsFastORIndexFromTRU (const Int_t iTRU, const Int_t iADC, Int_t &id) const
 
Bool_t GetAbsFastORIndexFromPositionInTRU (const Int_t iTRU, const Int_t iEta, const Int_t iPhi, Int_t &id) const
 
Bool_t GetAbsFastORIndexFromPositionInSM (const Int_t iSM, const Int_t iEta, const Int_t iPhi, Int_t &id) const
 
Bool_t GetAbsFastORIndexFromPositionInEMCAL (const Int_t iEta, const Int_t iPhi, Int_t &id) const
 
Bool_t GetAbsFastORIndexFromPHOSSubregion (const Int_t iPHOS, Int_t &id) const
 
Bool_t GetTRUFromAbsFastORIndex (const Int_t id, Int_t &iTRU, Int_t &iADC) const
 
Bool_t GetPositionInTRUFromAbsFastORIndex (const Int_t id, Int_t &iTRU, Int_t &iEta, Int_t &iPhi) const
 
Bool_t GetPositionInSMFromAbsFastORIndex (const Int_t id, Int_t &iSM, Int_t &iEta, Int_t &iPhi) const
 
Bool_t GetPositionInEMCALFromAbsFastORIndex (const Int_t id, Int_t &iEta, Int_t &iPhi) const
 
Bool_t GetFastORIndexFromCellIndex (const Int_t id, Int_t &idx) const
 
Bool_t GetCellIndexFromFastORIndex (const Int_t id, Int_t idx[4]) const
 
Bool_t GetTRUIndexFromSTUIndex (const Int_t id, Int_t &idx, Int_t detector) const
 
Bool_t GetTRUIndexFromOnlineIndex (const Int_t id, Int_t &idx) const
 
Bool_t GetOnlineIndexFromTRUIndex (const Int_t id, Int_t &idx) const
 
Bool_t GetFastORIndexFromL0Index (const Int_t iTRU, const Int_t id, Int_t idx[], const Int_t size) const
 
Int_t GetTRUIndexFromSTUIndex (const Int_t id, Int_t detector) const
 
Int_t GetTRUIndexFromOnlineIndex (const Int_t id) const
 
Int_t GetOnlineIndexFromTRUIndex (const Int_t id) const
 
Int_t GetNTotalTRU () const
 
Int_t GetTRUIndexFromOnlineHwAdd (Int_t hwAdd, Int_t ddl, Int_t sm) const
 
Bool_t GetSTUIndexFromTRUIndex (const Int_t id, Int_t &idx) const
 
Int_t GetSTUIndexFromTRUIndex (const Int_t id) const
 
Bool_t GetTRUFromSTU (const Int_t iTRU, const Int_t iADC, Int_t &oTRU, Int_t &oADC, Int_t detector) const
 
Bool_t GetSTUFromTRU (const Int_t iTRU, const Int_t iADC, Int_t &oTRU, Int_t &oADC) const
 
Bool_t GetTRUFromSTU (const Int_t iTRU, const Int_t ieta, const Int_t iphi, Int_t &oTRU, Int_t &oeta, Int_t &ophi, Int_t detector) const
 
Bool_t GetSTUFromTRU (const Int_t iTRU, const Int_t ieta, const Int_t iphi, Int_t &oTRU, Int_t &oeta, Int_t &ophi) const
 
Int_t GetTriggerMappingVersion () const
 

Static Public Member Functions

static AliEMCALGeometryGetInstance ()
 
static AliEMCALGeometryGetInstance (const Text_t *name, const Text_t *title="", const Text_t *mcname="TGeant3", const Text_t *mctitle="")
 
static AliEMCALGeometryGetInstanceFromRunNumber (Int_t runNumber, TString geoName="", const Text_t *mcname="TGeant3", const Text_t *mctitle="")
 
static Bool_t IsInitialized (void)
 
static const Char_t * GetDefaultGeometryName ()
 

Protected Member Functions

void Init (void)
 

Protected Attributes

AliEMCALEMCGeometryfEMCGeometry
 Geometry object for Electromagnetic calorimeter. More...
 
AliEMCALTriggerMappingfTriggerMapping
 Trigger mapping. More...
 
TString fGeoName
 Geometry name string. More...
 
Int_t fKey110DEG
 For calculation abs cell id; 19-oct-05. More...
 
Int_t fnSupModInDCAL
 For calculation abs cell id; 06-nov-12. More...
 
Int_t fNCellsInSupMod
 Number cell in super module. More...
 
Int_t fNETAdiv
 Number eta division of module. More...
 
Int_t fNPHIdiv
 Number phi division of module. More...
 
Int_t fNCellsInModule
 Number cell in module. More...
 
TArrayD fPhiBoundariesOfSM
 Phi boundaries of SM in rad; size is fNumberOfSuperModules;. More...
 
TArrayD fPhiCentersOfSM
 Phi of centers of SM; size is fNumberOfSuperModules/2. More...
 
TArrayD fPhiCentersOfSMSec
 Phi of centers of section where SM lies; size is fNumberOfSuperModules/2. More...
 
TArrayD fPhiCentersOfCells
 [fNPhi*fNPHIdiv] from center of SM (-10. < phi < +10.) More...
 
TArrayD fCentersOfCellsEtaDir
 Size fNZ*fNETAdiv (for TRD1 only) (eta or z in SM, in cm) More...
 
TArrayD fCentersOfCellsPhiDir
 Size fNPhi*fNPHIdiv (for TRD1 only) (phi or y in SM, in cm) More...
 
TArrayD fEtaCentersOfCells
 [fNZ*fNETAdiv*fNPhi*fNPHIdiv], positive direction (eta>0); eta depend from phi position; More...
 
Int_t fNCells
 Number of cells in calo. More...
 
Int_t fNPhi
 Number of Towers in the PHI direction. More...
 
TArrayD fCentersOfCellsXDir
 Size fNZ*fNETAdiv (for TRD1 only) ( x in SM, in cm) More...
 
Float_t fEnvelop [3]
 The GEANT TUB for the detector. More...
 
Float_t fArm1EtaMin
 Minimum pseudorapidity position of EMCAL in Eta. More...
 
Float_t fArm1EtaMax
 Maximum pseudorapidity position of EMCAL in Eta. More...
 
Float_t fArm1PhiMin
 Minimum angular position of EMCAL in Phi (degrees) More...
 
Float_t fArm1PhiMax
 Maximum angular position of EMCAL in Phi (degrees) More...
 
Float_t fEtaMaxOfTRD1
 Max eta in case of TRD1 geometry (see AliEMCALShishKebabTrd1Module) More...
 
Float_t fDCALPhiMin
 Minimum angular position of DCAL in Phi (degrees) More...
 
Float_t fDCALPhiMax
 Maximum angular position of DCAL in Phi (degrees) More...
 
Float_t fEMCALPhiMax
 Maximum angular position of EMCAL in Phi (degrees) More...
 
Float_t fDCALStandardPhiMax
 Special edge for the case that DCAL contian extension. More...
 
Float_t fDCALInnerExtandedEta
 DCAL inner edge in Eta (with some extension) More...
 
TList * fShishKebabTrd1Modules
 List of modules. More...
 
Float_t fParSM [3]
 SM sizes as in GEANT (TRD1) More...
 
Float_t fPhiModuleSize
 Phi -> X. More...
 
Float_t fEtaModuleSize
 Eta -> Y. More...
 
Float_t fPhiTileSize
 Size of phi tile. More...
 
Float_t fEtaTileSize
 Size of eta tile. More...
 
Int_t fNZ
 Number of Towers in the Z direction. More...
 
Float_t fIPDistance
 Radial Distance of the inner surface of the EMCAL. More...
 
Float_t fLongModuleSize
 Size of long module. More...
 
Float_t fShellThickness
 Total thickness in (x,y) direction. More...
 
Float_t fZLength
 Total length in z direction. More...
 
Float_t fSampling
 Sampling factor. More...
 
const TGeoHMatrix * fkSModuleMatrix [AliEMCALGeoParams::fgkEMCALModules]
 Orientations of EMCAL super modules. More...
 

Static Private Attributes

static AliEMCALGeometryfgGeom = 0
 Pointer to the unique instance of the singleton. More...
 
static Bool_t fgInit
 Tells if geometry has been succesfully set up. More...
 
static const Char_t * fgkDefaultGeometryName = "EMCAL_COMPLETE12SMV1_DCAL_8SM"
 Default name of geometry. More...
 

Detailed Description

EMCal geometry, singleton.

Geometry class for EMCAL : singleton EMCAL consists of layers of scintillator and lead with scintillator fiber arranged as "shish-kebab" skewers Places the the Barrel Geometry of The EMCAL at Midrapidity between 80 and 180(or 190) degrees of Phi and -0.7 to 0.7 in eta

  • EMCAL geometry tree:
  • EMCAL -> superModule -> module -> tower(cell)
  • Indexes
  • absId -> nSupMod -> nModule -> (nIphi,nIeta)

Name choices:

  • EMCAL_PDC06 (geometry used for PDC06 simulations, kept for backward compatibility)
    • = equivalent to SHISH_77_TRD1_2X2_FINAL_110DEG in old notation
  • EMCAL_COMPLETE (geometry for expected complete detector)
    • = equivalent to SHISH_77_TRD1_2X2_FINAL_110DEG scTh=0.176 pbTh=0.144 in old notation
  • EMCAL_FIRSTYEARV1 - geometry for December 2009 to December 2010 run period;
    • fixed bug for positions of modules inside SM (first module has tilt 0.75 degree); the sizes updated with last information from production drawing (end of October 2010).
  • EMCAL_COMPLETEV1: Same fixes as FIRSTYEAR and 10 SM instead of 10 + 2 one_third SM, for 2011 runs
  • EMCAL_COMPLETE12SMV1: contains 12 SM for runs from year 2012 and on
  • EMCAL_COMPLETE12SMV1_DCAL: contains 12 SM and 6 DCAL SM – not for standard user mode
  • EMCAL_COMPLETE12SMV1_DCAL_8SM: contains 12 SM and 8 DCAL SM including the DCAL extention (2 SM)
  • EMCAL_COMPLETE12SMV1_DCAL_DEV: contains 12 SM shifted and 10 DCAL SM – not for stardard user mode
  • EMCAL_WSUC (Wayne State test stand)
    • = no definite equivalent in old notation, was only used by Aleksei, but kept for testing purposes

Usage: You can create the AliEMCALGeometry object independently from anything. You have to use just the correct name of geometry. If name is empty string the default name of geometry will be used.

AliEMCALGeometry* g = AliEMCALGeometry::GetInstance(name,title); // first time .. g = AliEMCALGeometry::GetInstance(); // after first time

where name is one of the above names.

If you do now know what name to assign you can rely on the run number via: AliEMCALGeometry* g = AliEMCALGeometry::GetInstanceFromRunNumber(runNumber); specially interesting at the analysis level, and used also when anchoring simulations to data.

MC: If you work with MC data you can get geometry the next way (kind of expert mode): AliRunLoader rl = AliRunLoader::Instance(); AliEMCALGeometry *geom = dynamic_cast<AliEMCAL>(rl->GetAliRun()->GetDetector("EMCAL"))->GetGeometry(); TGeoManager::Import("geometry.root");

Author
Sahal Yacoob (LBL / UCT)
Yves Schutz (SUBATECH)
Jennifer Klay (LBL)
Alexei Pavlinov (WSU)

Implementation for analysis usage, before AliEMCALGeometry now (06/2011) merged again in AliEMCALGeometry

Author
Magali Estienne (magal.nosp@m.i.es.nosp@m.tienn.nosp@m.e@su.nosp@m.batec.nosp@m.h.in.nosp@m.2p3.f.nosp@m.r)
M.L. Wang CCNU & Subatech Adapted for DCAL Oct-18-2012

Definition at line 99 of file AliEMCALGeometry.h.

Member Enumeration Documentation

Enumerator
kEMCAL_Standard 
kEMCAL_Half 
kEMCAL_3rd 
kDCAL_Standard 
kDCAL_Ext 

Definition at line 102 of file AliEMCALGeometry.h.

Constructor & Destructor Documentation

AliEMCALGeometry::AliEMCALGeometry ( )

Default constructor. It must be kept public for root persistency purposes, but should never be called by the outside world

Definition at line 48 of file AliEMCALGeometry.cxx.

Referenced by GetInstance().

AliEMCALGeometry::AliEMCALGeometry ( const Text_t *  name,
const Text_t *  title = "",
const Text_t *  mcname = "",
const Text_t *  mctitle = "" 
)

Constructor for normal use.

Parameters
namegeometry name, EMCAL_COMPLETEV1, EMCAL_COMPLETE12SMV1, EMCAL_COMPLETE12SMV1_DCAL, EMCAL_COMPLETE12SMV1_DCAL_8SM, EMCAL_COMPLETE12SMV1_DCAL_DEV (see main class description for definition)
title
mcnameGeant3/4, Flukla, needed for settings of transport (check)
mctitleGeant4 physics list (check)

Definition at line 112 of file AliEMCALGeometry.cxx.

AliEMCALGeometry::AliEMCALGeometry ( const AliEMCALGeometry geo)

Copy constructor.

Definition at line 76 of file AliEMCALGeometry.cxx.

AliEMCALGeometry::~AliEMCALGeometry ( void  )
virtual

Destructor.

Definition at line 228 of file AliEMCALGeometry.cxx.

Member Function Documentation

Float_t AliEMCALGeometry::AngleFromEta ( Float_t  eta) const
inline

Definition at line 338 of file AliEMCALGeometry.h.

Referenced by ZFromEtaR().

void AliEMCALGeometry::Browse ( TBrowser *  b)
virtual

Browse the modules. Obsolete?

Definition at line 418 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules().

Bool_t AliEMCALGeometry::CheckAbsCellId ( Int_t  absId) const
void AliEMCALGeometry::CreateListOfTrd1Modules ( )

Generate the list of Trd1 modules which will make up the EMCAL geometry key: look to the AliEMCALShishKebabTrd1Module::

Definition at line 1143 of file AliEMCALGeometry.cxx.

Referenced by AliEMCALGeometry(), and GetDefaultGeometryName().

void AliEMCALGeometry::EtaPhiFromIndex ( Int_t  absId,
Double_t &  eta,
Double_t &  phi 
) const

Figure out the eta/phi coordinates of a cell. Call to GetGlobal().

Parameters
absIdcell absolute id. number.
etapseudo-rapidity, double
phiazimuthal angle, double

Definition at line 569 of file AliEMCALGeometry.cxx.

Referenced by AliEMCALRecPoint::EvalCoreEnergy(), AliEMCALUnfolding::EvalParsPhiDependence(), AliEMCALDigit::GetEta(), AliEMCALDigit::GetPhi(), PrintGeometry(), and TestESD().

void AliEMCALGeometry::EtaPhiFromIndex ( Int_t  absId,
Float_t &  eta,
Float_t &  phi 
) const

Figure out the eta/phi coordinates of a cell. Call to GetGlobal(). Discard? Keep upper one?

Parameters
absIdcell absolute id. number.
etapseudo-rapidity, float
phiazimuthal angle, float

Definition at line 586 of file AliEMCALGeometry.cxx.

Float_t AliEMCALGeometry::Get2Trd1Dx2 ( void  ) const
inline

Definition at line 192 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateEmod().

Int_t AliEMCALGeometry::GetAbsCellId ( Int_t  nSupMod,
Int_t  nModule,
Int_t  nIphi,
Int_t  nIeta 
) const

Get cell absolute ID number from location module (2 times 2 cells) of a super module

Parameters
nSupModsuper module number
nModulemodule number
nIphiindex of cell in module in phi direction 0 or 1
nIetaindex of cell in module in eta direction 0 or 1
Returns
cell absolute ID number

Definition at line 605 of file AliEMCALGeometry.cxx.

Referenced by GetAbsCellIdFromCellIndexes(), ImpactOnEmcal(), and PrintGeometry().

Int_t AliEMCALGeometry::GetAbsCellIdFromCellIndexes ( Int_t  nSupMod,
Int_t  iphi,
Int_t  ieta 
) const

Transition from super module number (nSupMod) and cell indexes (ieta,iphi) to cell absolute ID number.

Parameters
nSupModsuper module number
iphiindex of cell in phi direction inside super module
ietaindex of cell in eta direction inside super module
Returns
cell absolute ID number

Definition at line 663 of file AliEMCALGeometry.cxx.

Referenced by GetAbsCellIdFromEtaPhi(), AliEMCALTriggerMappingV1::GetCellIndexFromFastORIndex(), AliEMCALTriggerMappingV2::GetCellIndexFromFastORIndex(), GetNumberOfCellsInEtaDirection(), PrintBadChannels(), AliEMCALRawUtils::Raw2Digits(), and AliEMCALv2::StepManager().

Bool_t AliEMCALGeometry::GetAbsCellIdFromEtaPhi ( Double_t  eta,
Double_t  phi,
Int_t &  absId 
) const

Get cell absolute ID number from eta and phi location.

Parameters
etapseudorapidity location
phiazimutal location
absIdcell absolute ID number
Returns
true if cell connexion found

Definition at line 786 of file AliEMCALGeometry.cxx.

Referenced by ImpactOnEmcal(), and PrintGeometry().

Bool_t AliEMCALGeometry::GetAbsFastORIndexFromPHOSSubregion ( const Int_t  iPHOS,
Int_t &  id 
) const
inline

Definition at line 370 of file AliEMCALGeometry.h.

Referenced by AliEMCALTriggerRawDigitMaker::PostProcess().

Bool_t AliEMCALGeometry::GetAbsFastORIndexFromPositionInEMCAL ( const Int_t  iEta,
const Int_t  iPhi,
Int_t &  id 
) const
inline
Bool_t AliEMCALGeometry::GetAbsFastORIndexFromPositionInSM ( const Int_t  iSM,
const Int_t  iEta,
const Int_t  iPhi,
Int_t &  id 
) const
inline

Definition at line 364 of file AliEMCALGeometry.h.

Bool_t AliEMCALGeometry::GetAbsFastORIndexFromPositionInTRU ( const Int_t  iTRU,
const Int_t  iEta,
const Int_t  iPhi,
Int_t &  id 
) const
inline
Bool_t AliEMCALGeometry::GetAbsFastORIndexFromTRU ( const Int_t  iTRU,
const Int_t  iADC,
Int_t &  id 
) const
inline
Float_t AliEMCALGeometry::GetArm1EtaMax ( void  ) const
inline

Definition at line 159 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetArm1EtaMin ( void  ) const
inline

Definition at line 158 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetArm1PhiMax ( void  ) const
inline

Definition at line 157 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateGeometry().

Float_t AliEMCALGeometry::GetArm1PhiMin ( void  ) const
inline

Definition at line 156 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateGeometry().

Bool_t AliEMCALGeometry::GetCellIndexFromFastORIndex ( const Int_t  id,
Int_t  idx[4] 
) const
inline
TArrayD AliEMCALGeometry::GetCentersOfCellsEtaDir ( ) const
inline

Definition at line 328 of file AliEMCALGeometry.h.

Referenced by AliEMCALv2::StepManager().

TArrayD AliEMCALGeometry::GetCentersOfCellsPhiDir ( ) const
inline

Definition at line 330 of file AliEMCALGeometry.h.

Referenced by AliEMCALv2::StepManager().

TArrayD AliEMCALGeometry::GetCentersOfCellsXDir ( ) const
inline

Definition at line 329 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetDCALInnerEdge ( void  ) const
inline
Float_t AliEMCALGeometry::GetDCALInnerExtandedEta ( void  ) const
inline

Definition at line 169 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetDCALPhiMax ( void  ) const
inline

Definition at line 166 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetDCALPhiMin ( void  ) const
inline

Definition at line 165 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetDeltaEta ( void  ) const
inline

Definition at line 203 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetDeltaPhi ( void  ) const
inline

Definition at line 204 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetECPbRadThick ( void  ) const
inline
Float_t AliEMCALGeometry::GetECScintThick ( void  ) const
inline
Float_t AliEMCALGeometry::GetEMCALPhiMax ( void  ) const
inline

Definition at line 167 of file AliEMCALGeometry.h.

Int_t* AliEMCALGeometry::GetEMCSystem ( ) const
inline

Definition at line 326 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateShishKebabGeometry().

Float_t AliEMCALGeometry::GetEnvelop ( Int_t  index) const
inline
TArrayD AliEMCALGeometry::GetEtaCentersOfCells ( ) const
inline

Definition at line 332 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetEtaModuleSize ( void  ) const
inline
Float_t AliEMCALGeometry::GetEtaTileSize ( void  ) const
inline

Definition at line 184 of file AliEMCALGeometry.h.

Bool_t AliEMCALGeometry::GetFastORIndexFromCellIndex ( const Int_t  id,
Int_t &  idx 
) const
inline

Definition at line 385 of file AliEMCALGeometry.h.

Referenced by AliEMCALDigitizer::Digits2FastOR().

Bool_t AliEMCALGeometry::GetFastORIndexFromL0Index ( const Int_t  iTRU,
const Int_t  id,
Int_t  idx[],
const Int_t  size 
) const
inline

Definition at line 400 of file AliEMCALGeometry.h.

Referenced by AliEMCALQADataMakerRec::MakeRaws().

Float_t AliEMCALGeometry::GetFrontSteelStrip ( void  ) const
inline

Definition at line 180 of file AliEMCALGeometry.h.

void AliEMCALGeometry::GetGlobal ( const Double_t *  loc,
Double_t *  glob,
int  iSM 
) const

Figure out the global coordinates from local coordinates on a supermodule. Use the supermodule alignment. Use double[3]

Parameters
locdouble[3] local coordinates, input
globdouble[3] global coordinates, output
iSMsuper module number

Definition at line 442 of file AliEMCALGeometry.cxx.

Referenced by EtaPhiFromIndex(), AliEMCALRecPoint::EvalGlobalPosition(), AliEMCALRecPoint::EvalLocal2TrackingCSTransform(), GetGlobal(), PrintCellIndexes(), PrintGeometry(), and AliEMCALTriggerPatchInfo::RecalculateKinematics().

void AliEMCALGeometry::GetGlobal ( const TVector3 &  vloc,
TVector3 &  vglob,
int  iSM 
) const

Figure out the global coordinates from local coordinates on a supermodule. Use the supermodule alignment. Use TVector3.

Parameters
vloc3-vector local coordinates, input (remove & ?)
vglob3-vector global coordinates, output
iSMsuper module number

Definition at line 464 of file AliEMCALGeometry.cxx.

void AliEMCALGeometry::GetGlobal ( Int_t  absId,
Double_t  glob[3] 
) const

Figure out the global coordinates of a cell. Use the supermodule alignment. Use double[3].

Parameters
absIdcell absolute id. number.
glob3-double coordinates, output

Definition at line 480 of file AliEMCALGeometry.cxx.

void AliEMCALGeometry::GetGlobal ( Int_t  absId,
TVector3 &  vglob 
) const

Figure out the global coordinates of a cell. Use the supermodule alignment. Use TVector3.

Parameters
absIdcell absolute id. number.
vglobTVector3 coordinates, output

Definition at line 509 of file AliEMCALGeometry.cxx.

Int_t AliEMCALGeometry::GetIHADR ( void  ) const
inline

Definition at line 201 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetILOSS ( void  ) const
inline

Definition at line 200 of file AliEMCALGeometry.h.

AliEMCALGeometry * AliEMCALGeometry::GetInstance ( const Text_t *  name,
const Text_t *  title = "",
const Text_t *  mcname = "TGeant3",
const Text_t *  mctitle = "" 
)
static
Returns
the pointer of the unique instance of the geometry
Parameters
namegeometry name, EMCAL_COMPLETEV1, EMCAL_COMPLETE12SMV1, EMCAL_COMPLETE12SMV1_DCAL, EMCAL_COMPLETE12SMV1_DCAL_8SM, EMCAL_COMPLETE12SMV1_DCAL_DEV (see main class description for definition)
title
mcnameGeant3/4, Fluka, needed for settings of transport (check)
mctitleGeant4 physics list (check)

Definition at line 273 of file AliEMCALGeometry.cxx.

AliEMCALGeometry * AliEMCALGeometry::GetInstanceFromRunNumber ( Int_t  runNumber,
TString  geoName = "",
const Text_t *  mcname = "TGeant3",
const Text_t *  mctitle = "" 
)
static

Instanciate geometry depending on the run number. Mostly used in analysis and MC anchors.

Returns
the pointer of the unique instance
Parameters
runNumberas indicated
geoNamegeometry name, EMCAL_COMPLETEV1, etc. Not really needed to be specified.
mcnameGeant3/4, Fluka, needed for settings of transport (check). Not really needed to be specified.
mctitleGeant4 physics list (check). Not really needed to be specified.

Definition at line 326 of file AliEMCALGeometry.cxx.

Referenced by AliEMCALQADataMakerRec::AliEMCALQADataMakerRec(), AliEMCALReconstructor::AliEMCALReconstructor(), AliEMCAL::GetGeometry(), and TestMatrices().

Float_t AliEMCALGeometry::GetIPDistance ( void  ) const
inline

Definition at line 160 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetKey110DEG ( void  ) const
inline

Definition at line 198 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetLateralSteelStrip ( void  ) const
inline
Float_t AliEMCALGeometry::GetLongModuleSize ( void  ) const
inline

Definition at line 190 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateEmod().

const TGeoHMatrix * AliEMCALGeometry::GetMatrixForSuperModule ( Int_t  smod) const

Provides shift-rotation matrix for EMCAL from externally set matrix or from TGeoManager

Returns
alignment matrix for a super module number
Parameters
smodsuper module number

Definition at line 1505 of file AliEMCALGeometry.cxx.

Referenced by GetGlobal(), ImpactOnEmcal(), TestMatrices(), and ZFromEtaR().

const TGeoHMatrix * AliEMCALGeometry::GetMatrixForSuperModuleFromArray ( Int_t  smod) const

Provides shift-rotation matrix for EMCAL from fkSModuleMatrix[smod] Unsafe method, not to be used in reconstruction, just check there is something in the array of matrices without crashing, for EVE checks.

Returns
alignment matrix for a super module number
Parameters
smodsuper module number

Definition at line 1535 of file AliEMCALGeometry.cxx.

Referenced by ZFromEtaR().

const TGeoHMatrix * AliEMCALGeometry::GetMatrixForSuperModuleFromGeoManager ( Int_t  smod) const

Provides shift-rotation matrix for EMCAL from the TGeoManager.

Returns
alignment matrix for a super module number
Parameters
smodsuper module number

Definition at line 1549 of file AliEMCALGeometry.cxx.

Referenced by GetMatrixForSuperModule(), and ZFromEtaR().

void AliEMCALGeometry::GetModuleIndexesFromCellIndexesInSModule ( Int_t  nSupMod,
Int_t  iphi,
Int_t  ieta,
Int_t &  iphim,
Int_t &  ietam,
Int_t &  nModule 
) const

Transition from cell indexes (ieta,iphi) to module indexes (ietam, iphim, nModule)

Parameters
nSupModsuper module number
iphiindex of cell in phi direction inside super module
ietaindex of cell in eta direction inside super module
iphimindex of cell in module in phi direction 0 or 1
ietamindex of cell in module in eta direction 0 or 1
nModulemodule number

Definition at line 643 of file AliEMCALGeometry.cxx.

Referenced by GetAbsCellIdFromCellIndexes(), and GetNumberOfCellsInEtaDirection().

void AliEMCALGeometry::GetModulePhiEtaIndexInSModule ( Int_t  nSupMod,
Int_t  nModule,
Int_t &  iphim,
Int_t &  ietam 
) const

Get eta-phi indexes of module in SM

Parameters
nSupModsuper module number, input
nModulemodule number, input
iphimindex in phi direction of module, output
ietamindex in eta direction of module, output

Definition at line 929 of file AliEMCALGeometry.cxx.

Referenced by GetCellPhiEtaIndexInSModule(), AliEMCALTriggerMappingV1::GetFastORIndexFromCellIndex(), PrintGeometry(), and RelPosCellInSModule().

const Char_t* AliEMCALGeometry::GetNameOfEMCALEnvelope ( void  ) const
inline
Int_t AliEMCALGeometry::GetNCells ( void  ) const
inline

Definition at line 189 of file AliEMCALGeometry.h.

Referenced by AliEMCALDigitizer::Digitize().

Int_t AliEMCALGeometry::GetNCellsInModule ( void  ) const
inline

Definition at line 197 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetNCellsInSupMod ( void  ) const
inline

Definition at line 196 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetNECLayers ( void  ) const
inline
Int_t AliEMCALGeometry::GetNEta ( void  ) const
inline
Int_t AliEMCALGeometry::GetNETAdiv ( void  ) const
inline
Int_t AliEMCALGeometry::GetNPhi ( void  ) const
inline
Int_t AliEMCALGeometry::GetNPHIdiv ( void  ) const
inline
Int_t AliEMCALGeometry::GetNPhiSuperModule ( void  ) const
inline

Definition at line 186 of file AliEMCALGeometry.h.

Referenced by AliEMCALClusterizerFixedWindow::ExecOnce().

Int_t AliEMCALGeometry::GetnSupModInDCAL ( void  ) const
inline

Definition at line 199 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetNTowers ( void  ) const
inline

Definition at line 205 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetNumberOfCellsInEtaDirection ( Int_t  nSupMod) const
inline
Returns
number of cells in phi direction, it depends on the SM number, 48/2 default, 32/2 in DCal SMs
Parameters
nSupModsuper-module number to check

Definition at line 307 of file AliEMCALGeometry.h.

Referenced by GetAbsCellIdFromCellIndexes(), and GetCellPhiEtaIndexInSModule().

Int_t AliEMCALGeometry::GetNumberOfCellsInPhiDirection ( Int_t  nSupMod) const
inline
Returns
number of cells in phi direction, it depends on the SM number, 24/2 default, 8/2 in 1/3 SMs
Parameters
nSupModsuper-module number to check

Definition at line 294 of file AliEMCALGeometry.h.

Referenced by GetAbsCellIdFromCellIndexes(), and GetCellPhiEtaIndexInSModule().

Int_t AliEMCALGeometry::GetNumberOfModuleInEtaDirection ( Int_t  nSupMod) const
inline
Returns
number of modules in phi direction, it depends on the SM number, 48/2 default, 32/2 in DCal SMs
Parameters
nSupModsuper-module number to check

Definition at line 299 of file AliEMCALGeometry.h.

Referenced by GetNumberOfCellsInEtaDirection().

Int_t AliEMCALGeometry::GetNumberOfModuleInPhiDirection ( Int_t  nSupMod) const
inline
Returns
number of modules in phi direction, it depends on the SM number, 24/2 default, 8/2 in 1/3 SMs
Parameters
nSupModsuper-module number to check

Definition at line 284 of file AliEMCALGeometry.h.

Referenced by GetModuleIndexesFromCellIndexesInSModule(), GetModulePhiEtaIndexInSModule(), and GetNumberOfCellsInPhiDirection().

Int_t AliEMCALGeometry::GetNZ ( void  ) const
inline
Bool_t AliEMCALGeometry::GetOnlineIndexFromTRUIndex ( const Int_t  id,
Int_t &  idx 
) const
inline
Int_t AliEMCALGeometry::GetOnlineIndexFromTRUIndex ( const Int_t  id) const
inline

Definition at line 409 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetPassiveScintThick ( void  ) const
inline

Definition at line 182 of file AliEMCALGeometry.h.

Bool_t AliEMCALGeometry::GetPhiBoundariesOfSM ( Int_t  nSupMod,
Double_t &  phiMin,
Double_t &  phiMax 
) const
inline

Definition at line 218 of file AliEMCALGeometry.h.

Bool_t AliEMCALGeometry::GetPhiBoundariesOfSMGap ( Int_t  nPhiSec,
Double_t &  phiMin,
Double_t &  phiMax 
) const
inline

Definition at line 220 of file AliEMCALGeometry.h.

Double_t AliEMCALGeometry::GetPhiCenterOfSM ( Int_t  nsupmod) const
inline

Definition at line 207 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::AddAlignableVolumesInALICE().

Double_t AliEMCALGeometry::GetPhiCenterOfSMSec ( Int_t  nsupmod) const
inline
TArrayD AliEMCALGeometry::GetPhiCentersOfCells ( ) const
inline

Definition at line 333 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetPhiGapForSuperModules ( void  ) const
inline

Definition at line 177 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetPhiModuleSize ( void  ) const
inline
Float_t AliEMCALGeometry::GetPhiSuperModule ( void  ) const
inline

Definition at line 185 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetPhiTileSize ( void  ) const
inline

Definition at line 183 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateShishKebabGeometry().

Bool_t AliEMCALGeometry::GetPositionInEMCALFromAbsFastORIndex ( const Int_t  id,
Int_t &  iEta,
Int_t &  iPhi 
) const
inline
Bool_t AliEMCALGeometry::GetPositionInSMFromAbsFastORIndex ( const Int_t  id,
Int_t &  iSM,
Int_t &  iEta,
Int_t &  iPhi 
) const
inline
Bool_t AliEMCALGeometry::GetPositionInTRUFromAbsFastORIndex ( const Int_t  id,
Int_t &  iTRU,
Int_t &  iEta,
Int_t &  iPhi 
) const
inline

Definition at line 376 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetSampling ( void  ) const
inline
Float_t AliEMCALGeometry::GetShellThickness ( void  ) const
inline

Definition at line 162 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateSmod().

AliEMCALShishKebabTrd1Module * AliEMCALGeometry::GetShishKebabModule ( Int_t  neta) const
Returns
the shishkebabmodule at a given eta index point.

Definition at line 1270 of file AliEMCALGeometry.cxx.

Referenced by CreateListOfTrd1Modules(), GetShishKebabTrd1Modules(), PrintLocalTrd1(), and RelPosCellInSModule().

TList* AliEMCALGeometry::GetShishKebabTrd1Modules ( ) const
inline

Definition at line 131 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::AliEMCALv0(), and PrintLocalTrd1().

Float_t AliEMCALGeometry::GetSteelFrontThickness ( void  ) const
inline

Definition at line 224 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateEmod(), and AliEMCALv0::CreateSmod().

Bool_t AliEMCALGeometry::GetSTUFromTRU ( const Int_t  iTRU,
const Int_t  iADC,
Int_t &  oTRU,
Int_t &  oADC 
) const
inline

Definition at line 427 of file AliEMCALGeometry.h.

Bool_t AliEMCALGeometry::GetSTUFromTRU ( const Int_t  iTRU,
const Int_t  ieta,
const Int_t  iphi,
Int_t &  oTRU,
Int_t &  oeta,
Int_t &  ophi 
) const
inline

Definition at line 433 of file AliEMCALGeometry.h.

Bool_t AliEMCALGeometry::GetSTUIndexFromTRUIndex ( const Int_t  id,
Int_t &  idx 
) const
inline

Definition at line 418 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetSTUIndexFromTRUIndex ( const Int_t  id) const
inline

Definition at line 421 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetSuperModuleNumber ( Int_t  absId) const

Get cell SM, from absolute ID number

Parameters
absIdcell absolute id. number
Returns
super module number

Definition at line 913 of file AliEMCALGeometry.cxx.

Referenced by AliEMCALRecPoint::EvalAll(), AliEMCALRecPoint::EvalGlobalPosition(), AliEMCALRecPoint::EvalLocalPosition(), AliEMCALUnfolding::EvalParsPhiDependence(), and PrintGeometry().

Float_t AliEMCALGeometry::GetSuperModulesPar ( Int_t  ipar) const
inline
Float_t AliEMCALGeometry::GetTrd1AlFrontThick ( ) const
inline
Float_t AliEMCALGeometry::GetTrd1Angle ( void  ) const
inline
Float_t AliEMCALGeometry::GetTrd1BondPaperThick ( ) const
inline
AliEMCALTriggerMapping* AliEMCALGeometry::GetTriggerMapping ( ) const
inline

Definition at line 152 of file AliEMCALGeometry.h.

Referenced by AliEMCALTriggerRawDigitMaker::Add().

Int_t AliEMCALGeometry::GetTriggerMappingVersion ( ) const
inline
Bool_t AliEMCALGeometry::GetTRUFromAbsFastORIndex ( const Int_t  id,
Int_t &  iTRU,
Int_t &  iADC 
) const
inline
Bool_t AliEMCALGeometry::GetTRUFromSTU ( const Int_t  iTRU,
const Int_t  iADC,
Int_t &  oTRU,
Int_t &  oADC,
Int_t  detector 
) const
inline
Bool_t AliEMCALGeometry::GetTRUFromSTU ( const Int_t  iTRU,
const Int_t  ieta,
const Int_t  iphi,
Int_t &  oTRU,
Int_t &  oeta,
Int_t &  ophi,
Int_t  detector 
) const
inline

Definition at line 430 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetTRUIndexFromOnlineHwAdd ( Int_t  hwAdd,
Int_t  ddl,
Int_t  sm 
) const
inline

Definition at line 415 of file AliEMCALGeometry.h.

Referenced by AliEMCALQADataMakerRec::MakeRaws().

Bool_t AliEMCALGeometry::GetTRUIndexFromOnlineIndex ( const Int_t  id,
Int_t &  idx 
) const
inline

Definition at line 394 of file AliEMCALGeometry.h.

Int_t AliEMCALGeometry::GetTRUIndexFromOnlineIndex ( const Int_t  id) const
inline

Definition at line 406 of file AliEMCALGeometry.h.

Bool_t AliEMCALGeometry::GetTRUIndexFromSTUIndex ( const Int_t  id,
Int_t &  idx,
Int_t  detector 
) const
inline
Int_t AliEMCALGeometry::GetTRUIndexFromSTUIndex ( const Int_t  id,
Int_t  detector 
) const
inline

Definition at line 403 of file AliEMCALGeometry.h.

Float_t AliEMCALGeometry::GetZLength ( void  ) const
inline

Definition at line 163 of file AliEMCALGeometry.h.

Bool_t AliEMCALGeometry::Impact ( const TParticle *  particle) const
virtual

Given a TParticle, check if it falls in the EMCal/DCal geometry Call ImpactOnEmcal.

Parameters
particleTParticle
Returns
true in EMCal/DCa;

Definition at line 1328 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules().

void AliEMCALGeometry::ImpactOnEmcal ( TVector3  vtx,
Double_t  theta,
Double_t  phi,
Int_t &  absId,
TVector3 &  vimpact 
) const

Calculates the impact coordinates on EMCAL (centre of a tower/not on EMCAL surface) of a neutral particle emitted in the vertex vtx[3] with direction theta and phi in the ALICE global coordinate system

Parameters
vtxTVector3 with vertex?, input
thetatheta location, input
phiazimuthal angle, input
absIdabsolute ID number
vimpactTVector3 of impact coordinates?

Definition at line 1355 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules(), and Impact().

void AliEMCALGeometry::Init ( void  )
protected
Bool_t AliEMCALGeometry::IsDCALExtSM ( Int_t  iSupMod) const

Method to check if iSupMod is a valid DCal SM from 1/3rd

Definition at line 1761 of file AliEMCALGeometry.cxx.

Referenced by GetSMType().

Bool_t AliEMCALGeometry::IsDCALSM ( Int_t  iSupMod) const

Method to check if iSupMod is a valid DCal SM

Definition at line 1749 of file AliEMCALGeometry.cxx.

Referenced by GetSMType(), and AliEMCALTriggerPatchInfo::Initialize().

Bool_t AliEMCALGeometry::IsFolder ( ) const
virtual

Check if fShishKebabTrd1Modules is in folder. Obsolete?

Definition at line 427 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules().

Bool_t AliEMCALGeometry::IsInDCAL ( Double_t  x,
Double_t  y,
Double_t  z 
) const

Checks whether point is inside the DCal volume

Definition at line 1459 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules().

Bool_t AliEMCALGeometry::IsInEMCAL ( Double_t  x,
Double_t  y,
Double_t  z 
) const

Checks whether point is inside the EMCal volume

Definition at line 1449 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules(), and AliEMCALv1::StepManager().

Int_t AliEMCALGeometry::IsInEMCALOrDCAL ( Double_t  x,
Double_t  y,
Double_t  z 
) const

Checks whether point is inside the EMCal volume (included DCal), used in AliEMCALv*.cxx Code uses cylindrical approximation made of inner radius (for speed)

Points behind EMCAl/DCal, i.e. R > outer radius, but eta, phi in acceptance are considered to inside

Returns
calo type, 1 EMCal, 2 DCal

Definition at line 1475 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules(), IsInDCAL(), IsInEMCAL(), and AliEMCALv2::StepManager().

static Bool_t AliEMCALGeometry::IsInitialized ( void  )
inlinestatic

Definition at line 125 of file AliEMCALGeometry.h.

Referenced by AliEMCALv0::CreateGeometry().

AliEMCALGeometry & AliEMCALGeometry::operator= ( const AliEMCALGeometry rvalue)

Assign operator.

Definition at line 218 of file AliEMCALGeometry.cxx.

void AliEMCALGeometry::PrintCellIndexes ( Int_t  absId = 0,
int  pri = 0,
const char *  tit = "" 
) const

Print cell geometry parameters

Parameters
absIdcell absolute id. number.
priif >0 more verbosity
titunclear use

Definition at line 525 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules().

void AliEMCALGeometry::PrintGeometry ( )
inline

Definition at line 234 of file AliEMCALGeometry.h.

Referenced by AliEMCALClusterizer::Calibrate(), and TestEMCALSDigit().

void AliEMCALGeometry::PrintGeometryGeoUtils ( )

Print information from geometry

Definition at line 1286 of file AliEMCALGeometry.cxx.

Referenced by AliEMCALGeometry(), and GetShishKebabTrd1Modules().

void AliEMCALGeometry::PrintLocalTrd1 ( Int_t  pri = 0) const

Print Trd1 parameters For comparing with numbers from drawing (obsolete?)

Parameters
priif >0 more verbosity

Definition at line 550 of file AliEMCALGeometry.cxx.

Referenced by GetShishKebabTrd1Modules().

void AliEMCALGeometry::RecalculateTowerPosition ( Float_t  drow,
Float_t  dcol,
const Int_t  sm,
const Float_t  depth,
const Float_t  misaligTransShifts[15],
const Float_t  misaligRotShifts[15],
Float_t  global[3] 
) const

Transform clusters cell position into global with alternative method, taking into account the depth calculation. Input are:

  • the tower indeces,
  • supermodule,
  • particle type (photon 0, electron 1, hadron 2 )
  • misalignment shifts to global position in case of need.

Feder.nosp@m.ico..nosp@m.Ronch.nosp@m.etti.nosp@m.@cern.nosp@m..ch

Definition at line 1598 of file AliEMCALGeometry.cxx.

Referenced by ZFromEtaR().

Bool_t AliEMCALGeometry::RelPosCellInSModule ( Int_t  absId,
Double_t &  xr,
Double_t &  yr,
Double_t &  zr 
) const

Methods for AliEMCALRecPoint: Look to see what the relative position inside a given cell is for a recpoint.

Parameters
absIdcell absolute id. number, input
xr,yr,zr- x,y,z coordinates of cell with absId inside SM, output
Returns
false if cell absId does not exist

Definition at line 981 of file AliEMCALGeometry.cxx.

Referenced by AliEMCALRecPoint::EvalGlobalPosition(), AliEMCALRecPoint::EvalLocalPosition(), AliEMCALRecPoint::EvalLocalPositionFit(), AliEMCALRecPoint::EvalLocalPositionFromDigits(), GetGlobal(), GetNumberOfCellsInEtaDirection(), ImpactOnEmcal(), and RelPosCellInSModule().

Bool_t AliEMCALGeometry::RelPosCellInSModule ( Int_t  absId,
Double_t  distEff,
Double_t &  xr,
Double_t &  yr,
Double_t &  zr 
) const

Methods for AliEMCALRecPoint: Look to see what the relative position inside a given cell is for a recpoint. Same as RelPosCellInSModule(Int_t absId, Double_t &xr, Double_t &yr, Double_t &zr) but taking into account position of shower max.

Parameters
absIdcell absolute id. number, input
distEffshower max position? check call in AliEMCALRecPoint!, input
xr,yr,zr- x,y,z coordinates of cell with absId inside SM, output
Returns
false if cell absId does not exist=

Definition at line 1081 of file AliEMCALGeometry.cxx.

Bool_t AliEMCALGeometry::RelPosCellInSModule ( Int_t  absId,
Double_t  loc[3] 
) const

Methods for AliEMCALRecPoint: Look to see what the relative position inside a given cell is for a recpoint.

Parameters
absIdcell absolute id. number, input
locDouble[3] with x,y,z coordinates of cell with absId inside SM, output
Returns
false if cell absId does not exist

Definition at line 1035 of file AliEMCALGeometry.cxx.

Bool_t AliEMCALGeometry::RelPosCellInSModule ( Int_t  absId,
TVector3 &  vloc 
) const

Methods for AliEMCALRecPoint: Look to see what the relative position inside a given cell is for a recpoint.

Parameters
absIdcell absolute id. number, input
vlocTVector3 with x,y,z coordinates of cell with absId inside SM, output
Returns
false if cell absId does not exist

Definition at line 1054 of file AliEMCALGeometry.cxx.

void AliEMCALGeometry::SetMisalMatrix ( const TGeoHMatrix *  m,
Int_t  smod 
) const

Method to set shift-rotational matrixes from ESDHeader Move from header due to coding violations : Dec 2,2011 by PAI

Definition at line 1732 of file AliEMCALGeometry.cxx.

Referenced by GetMatrixForSuperModule(), TestESD(), and ZFromEtaR().

void AliEMCALGeometry::SetNPhi ( Int_t  nphi)
inline

Definition at line 230 of file AliEMCALGeometry.h.

void AliEMCALGeometry::SetNZ ( Int_t  nz)
inline

Definition at line 229 of file AliEMCALGeometry.h.

void AliEMCALGeometry::SetSampling ( Float_t  samp)
inline

Definition at line 232 of file AliEMCALGeometry.h.

void AliEMCALGeometry::ShiftOfflineToOnlineCellIndexes ( Int_t  sm,
Int_t &  iphi,
Int_t &  ieta 
) const

Here shift the DCal online cols or rows depending on the super-module number to match the online mapping.

Reverse procedure to the one in the method above ShiftOnlineToOfflineCellIndexes().

Parameters
smsuper module number of the channel/cell
iphirow/phi cell index, modified for DCal
ietacolumn/eta index, modified for DCal

Definition at line 762 of file AliEMCALGeometry.cxx.

Referenced by AliEMCALRawUtils::Digits2Raw(), AliEMCALTriggerMappingV2::GetFastORIndexFromCellIndex(), and GetNumberOfCellsInEtaDirection().

void AliEMCALGeometry::ShiftOnlineToOfflineCellIndexes ( Int_t  sm,
Int_t &  iphi,
Int_t &  ieta 
) const

Online mapping and numbering is the same for EMCal and DCal SMs but:

  • DCal odd SM (13,15,17) has online cols: 16-47; offline cols 0-31.
  • Even DCal SMs have the same numbering online and offline 0-31.
  • DCal 1/3 SM (18,19), online rows 16-23; offline rows 0-7

Here shift the online cols or rows depending on the super-module number to match the offline mapping.

Parameters
smsuper module number of the channel/cell
iphirow/phi cell index, modified for DCal
ietacolumn/eta index, modified for DCal

Definition at line 736 of file AliEMCALGeometry.cxx.

Referenced by AliEMCALTriggerMappingV2::GetCellIndexFromFastORIndex(), GetNumberOfCellsInEtaDirection(), and AliEMCALRawUtils::Raw2Digits().

Bool_t AliEMCALGeometry::SuperModuleNumberFromEtaPhi ( Double_t  eta,
Double_t  phi,
Int_t &  nSupMod 
) const

Given a global eta/phi point check if it belongs to a supermodule covered region.

Returns
false if phi belongs a phi cracks between SM or far from SM
Parameters
etapseudorapidity location
phiazimutal location
nSupModsuper module number, output

Definition at line 695 of file AliEMCALGeometry.cxx.

Referenced by GetAbsCellIdFromEtaPhi(), and PrintGeometry().

Float_t AliEMCALGeometry::ZFromEtaR ( Float_t  r,
Float_t  eta 
) const
inline

Definition at line 341 of file AliEMCALGeometry.h.

Member Data Documentation

Float_t AliEMCALGeometry::fArm1EtaMax
protected

Maximum pseudorapidity position of EMCAL in Eta.

Definition at line 470 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and IsInEMCALOrDCAL().

Float_t AliEMCALGeometry::fArm1EtaMin
protected

Minimum pseudorapidity position of EMCAL in Eta.

Definition at line 469 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

Float_t AliEMCALGeometry::fArm1PhiMax
protected

Maximum angular position of EMCAL in Phi (degrees)

Definition at line 472 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

Float_t AliEMCALGeometry::fArm1PhiMin
protected

Minimum angular position of EMCAL in Phi (degrees)

Definition at line 471 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and IsInEMCALOrDCAL().

TArrayD AliEMCALGeometry::fCentersOfCellsEtaDir
protected

Size fNZ*fNETAdiv (for TRD1 only) (eta or z in SM, in cm)

Definition at line 462 of file AliEMCALGeometry.h.

Referenced by CreateListOfTrd1Modules(), GetAbsCellIdFromEtaPhi(), GetCentersOfCellsEtaDir(), PrintGeometryGeoUtils(), and RelPosCellInSModule().

TArrayD AliEMCALGeometry::fCentersOfCellsPhiDir
protected

Size fNPhi*fNPHIdiv (for TRD1 only) (phi or y in SM, in cm)

Definition at line 463 of file AliEMCALGeometry.h.

Referenced by CreateListOfTrd1Modules(), GetCentersOfCellsPhiDir(), PrintGeometryGeoUtils(), and RelPosCellInSModule().

TArrayD AliEMCALGeometry::fCentersOfCellsXDir
protected

Size fNZ*fNETAdiv (for TRD1 only) ( x in SM, in cm)

Definition at line 467 of file AliEMCALGeometry.h.

Referenced by CreateListOfTrd1Modules(), GetCentersOfCellsXDir(), PrintGeometryGeoUtils(), and RelPosCellInSModule().

Float_t AliEMCALGeometry::fDCALInnerExtandedEta
protected

DCAL inner edge in Eta (with some extension)

Definition at line 478 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and IsInEMCALOrDCAL().

Float_t AliEMCALGeometry::fDCALPhiMax
protected

Maximum angular position of DCAL in Phi (degrees)

Definition at line 475 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and IsInEMCALOrDCAL().

Float_t AliEMCALGeometry::fDCALPhiMin
protected

Minimum angular position of DCAL in Phi (degrees)

Definition at line 474 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and IsInEMCALOrDCAL().

Float_t AliEMCALGeometry::fDCALStandardPhiMax
protected

Special edge for the case that DCAL contian extension.

Definition at line 477 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and IsInEMCALOrDCAL().

Float_t AliEMCALGeometry::fEMCALPhiMax
protected

Maximum angular position of EMCAL in Phi (degrees)

Definition at line 476 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and IsInEMCALOrDCAL().

AliEMCALEMCGeometry* AliEMCALGeometry::fEMCGeometry
protected
Float_t AliEMCALGeometry::fEnvelop[3]
protected

The GEANT TUB for the detector.

Definition at line 468 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and IsInEMCALOrDCAL().

TArrayD AliEMCALGeometry::fEtaCentersOfCells
protected

[fNZ*fNETAdiv*fNPhi*fNPHIdiv], positive direction (eta>0); eta depend from phi position;

Definition at line 464 of file AliEMCALGeometry.h.

Referenced by CreateListOfTrd1Modules(), GetAbsCellIdFromEtaPhi(), GetEtaCentersOfCells(), and PrintGeometryGeoUtils().

Float_t AliEMCALGeometry::fEtaMaxOfTRD1
protected

Max eta in case of TRD1 geometry (see AliEMCALShishKebabTrd1Module)

Definition at line 473 of file AliEMCALGeometry.h.

Referenced by CreateListOfTrd1Modules(), PrintGeometryGeoUtils(), and SuperModuleNumberFromEtaPhi().

Float_t AliEMCALGeometry::fEtaModuleSize
protected

Eta -> Y.

Definition at line 482 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

Float_t AliEMCALGeometry::fEtaTileSize
protected

Size of eta tile.

Definition at line 484 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

TString AliEMCALGeometry::fGeoName
protected

Geometry name string.

Definition at line 448 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

AliEMCALGeometry * AliEMCALGeometry::fgGeom = 0
staticprivate

Pointer to the unique instance of the singleton.

Definition at line 498 of file AliEMCALGeometry.h.

Referenced by GetInstance(), and ~AliEMCALGeometry().

Bool_t AliEMCALGeometry::fgInit
staticprivate

Tells if geometry has been succesfully set up.

Definition at line 499 of file AliEMCALGeometry.h.

const Char_t * AliEMCALGeometry::fgkDefaultGeometryName = "EMCAL_COMPLETE12SMV1_DCAL_8SM"
staticprivate

Default name of geometry.

Definition at line 500 of file AliEMCALGeometry.h.

Referenced by GetInstance().

Float_t AliEMCALGeometry::fIPDistance
protected

Radial Distance of the inner surface of the EMCAL.

Definition at line 486 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), CreateListOfTrd1Modules(), and ImpactOnEmcal().

Int_t AliEMCALGeometry::fKey110DEG
protected

For calculation abs cell id; 19-oct-05.

Definition at line 450 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

const TGeoHMatrix* AliEMCALGeometry::fkSModuleMatrix[AliEMCALGeoParams::fgkEMCALModules]
mutableprotected
Float_t AliEMCALGeometry::fLongModuleSize
protected

Size of long module.

Definition at line 487 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), CreateListOfTrd1Modules(), and ImpactOnEmcal().

Int_t AliEMCALGeometry::fNCells
protected

Number of cells in calo.

Definition at line 465 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and CheckAbsCellId().

Int_t AliEMCALGeometry::fNCellsInModule
protected

Number cell in module.

Definition at line 455 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), GetAbsCellId(), and GetCellIndex().

Int_t AliEMCALGeometry::fNCellsInSupMod
protected

Number cell in super module.

Definition at line 452 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), GetAbsCellId(), and GetCellIndex().

Int_t AliEMCALGeometry::fNETAdiv
protected
Int_t AliEMCALGeometry::fNPhi
protected

Number of Towers in the PHI direction.

Definition at line 466 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), CreateListOfTrd1Modules(), and GetNumberOfModuleInPhiDirection().

Int_t AliEMCALGeometry::fnSupModInDCAL
protected

For calculation abs cell id; 06-nov-12.

Definition at line 451 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

Int_t AliEMCALGeometry::fNZ
protected

Number of Towers in the Z direction.

Definition at line 485 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), CreateListOfTrd1Modules(), and GetNumberOfModuleInEtaDirection().

Float_t AliEMCALGeometry::fParSM[3]
protected

SM sizes as in GEANT (TRD1)

Definition at line 480 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), CreateListOfTrd1Modules(), and RelPosCellInSModule().

TArrayD AliEMCALGeometry::fPhiBoundariesOfSM
protected

Phi boundaries of SM in rad; size is fNumberOfSuperModules;.

Definition at line 456 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and SuperModuleNumberFromEtaPhi().

TArrayD AliEMCALGeometry::fPhiCentersOfCells
protected

[fNPhi*fNPHIdiv] from center of SM (-10. < phi < +10.)

Definition at line 461 of file AliEMCALGeometry.h.

Referenced by CreateListOfTrd1Modules(), GetAbsCellIdFromEtaPhi(), GetPhiCentersOfCells(), and PrintGeometryGeoUtils().

TArrayD AliEMCALGeometry::fPhiCentersOfSM
protected

Phi of centers of SM; size is fNumberOfSuperModules/2.

Definition at line 457 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

TArrayD AliEMCALGeometry::fPhiCentersOfSMSec
protected

Phi of centers of section where SM lies; size is fNumberOfSuperModules/2.

Definition at line 458 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and GetAbsCellIdFromEtaPhi().

Float_t AliEMCALGeometry::fPhiModuleSize
protected

Phi -> X.

Definition at line 481 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and CreateListOfTrd1Modules().

Float_t AliEMCALGeometry::fPhiTileSize
protected

Size of phi tile.

Definition at line 483 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry(), and CreateListOfTrd1Modules().

Float_t AliEMCALGeometry::fSampling
protected

Sampling factor.

Definition at line 492 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

Float_t AliEMCALGeometry::fShellThickness
protected

Total thickness in (x,y) direction.

Definition at line 490 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().

TList* AliEMCALGeometry::fShishKebabTrd1Modules
protected
Float_t AliEMCALGeometry::fZLength
protected

Total length in z direction.

Definition at line 491 of file AliEMCALGeometry.h.

Referenced by AliEMCALGeometry().


The documentation for this class was generated from the following files: