// --- AliRoot header files ---
#include "AliEMCALEMCGeometry.h"
+#include "AliEMCALGeoParams.h"
class AliEMCALShishKebabTrd1Module;
#include "AliLog.h"
TList *GetShishKebabTrd1Modules() const {return fShishKebabTrd1Modules;}
AliEMCALShishKebabTrd1Module *GetShishKebabModule(Int_t neta) const;
- void PrintGeometry();
+ void PrintGeometryGeoUtils(); // *MENU*
void PrintCellIndexes(Int_t absId=0, int pri=0, const char *tit="") const ; //*MENU*
+ void PrintLocalTrd1(Int_t pri=0) const; // *MENU*
virtual void Browse(TBrowser* b);
virtual Bool_t IsFolder() const;
void GetModulePhiEtaIndexInSModuleFromTRUIndex(
Int_t itru, Int_t iphitru, Int_t ietatru, Int_t &ietaSM, Int_t &iphiSM) const;
Int_t GetAbsTRUNumberFromNumberInSm(const Int_t row, const Int_t col, const Int_t sm) const ;
+
+
+ void BuildFastOR2DMap();
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 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) const;
+ Int_t GetTRUIndexFromSTUIndex(const Int_t id) const;
+ Bool_t GetFastORIndexFromL0Index(const Int_t iTRU, const Int_t id, Int_t idx[], const Int_t size) const;
+
///////////////////
// useful utilities
//
else AliFatal(Form("Wrong supermodule index -> %d",smod));
}
-protected:
+ //Alternate geometry that allows to calculate tower position for different particles and different alignments
+ 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;
+
//Returns shift-rotational matrixes for different volumes
const TGeoHMatrix * GetMatrixForSuperModule(Int_t smod)const ;
Float_t fArm1PhiMax; // Maximum angular position of EMCAL in Phi (degrees)
Float_t fEtaMaxOfTRD1; // Max eta in case of TRD1 geometry (see AliEMCALShishKebabTrd1Module)
TList *fShishKebabTrd1Modules; //! list of modules
- Float_t *fParSM; // SM sizes as in GEANT (TRD1)
+ Float_t fParSM[3]; // SM sizes as in GEANT (TRD1)
Float_t fPhiModuleSize; // Phi -> X
Float_t fEtaModuleSize; // Eta -> Y
Float_t fPhiTileSize; // Size of phi tile
Float_t fIPDistance; // Radial Distance of the inner surface of the EMCAL
Float_t fLongModuleSize; // Size of long module
// Geometry Parameters
- Float_t fShellThickness; // Total thickness in (x,y) direction
- Float_t fZLength; // Total length in z direction
- Float_t fSampling; // Sampling factor
+ Float_t fShellThickness; // Total thickness in (x,y) direction
+ Float_t fZLength; // Total length in z direction
+ Float_t fSampling; // Sampling factor
- TGeoHMatrix* fkSModuleMatrix[12] ; //Orientations of EMCAL super modules
+ Int_t fFastOR2DMap[48][64]; // FastOR 2D Map over full EMCal
+
+ TGeoHMatrix* fkSModuleMatrix[AliEMCALGeoParams::fgkEMCALModules] ; //Orientations of EMCAL super modules
ClassDef(AliEMCALGeoUtils,1) // EMCAL geometry class
} ;
#endif // AliEMCALGEOUTILS_H
+