ROOT logo
AliRoot » ITS » AliITSgeomTGeo

class AliITSgeomTGeo: public TObject

AliITSgeomTGeo is a simple interface class to TGeoManager
It is used in the simulation and reconstruction in order to
query the TGeo ITS geometry

author - cvetan.cheshkov@cern.ch
15/02/2007

Function Members (Methods)

public:
AliITSgeomTGeo()
virtual~AliITSgeomTGeo()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
static TGeoHMatrix*GetMatrix(Int_t index)
static TGeoHMatrix*GetMatrix(Int_t lay, Int_t lad, Int_t det)
static Bool_tGetModuleId(Int_t index, Int_t& lay, Int_t& lad, Int_t& det)
static Int_tGetModuleIndex(Int_t lay, Int_t lad, Int_t det)
virtual const char*TObject::GetName() const
static Int_tGetNDetectors(Int_t lay)
static Int_tGetNLadders(Int_t lay)
static Int_tGetNLayers()
static Int_tGetNModules()
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
static Bool_tGetOrigMatrix(Int_t index, TGeoHMatrix& m)
static Bool_tGetOrigMatrix(Int_t lay, Int_t lad, Int_t det, TGeoHMatrix& m)
static Bool_tGetOrigRotation(Int_t index, Double_t* r)
static Bool_tGetOrigRotation(Int_t lay, Int_t lad, Int_t det, Double_t* r)
static Bool_tGetOrigTranslation(Int_t index, Double_t* t)
static Bool_tGetOrigTranslation(Int_t lay, Int_t lad, Int_t det, Double_t* t)
static Bool_tGetRotation(Int_t index, Double_t* r)
static Bool_tGetRotation(Int_t lay, Int_t lad, Int_t det, Double_t* r)
static const char*GetSymName(Int_t index)
static const char*GetSymName(Int_t lay, Int_t lad, Int_t det)
virtual const char*TObject::GetTitle() const
static const TGeoHMatrix*GetTracking2LocalMatrix(Int_t index)
static const TGeoHMatrix*GetTracking2LocalMatrix(Int_t lay, Int_t lad, Int_t det)
static Bool_tGetTrackingMatrix(Int_t index, TGeoHMatrix& m)
static Bool_tGetTrackingMatrix(Int_t lay, Int_t lad, Int_t det, TGeoHMatrix& m)
static Bool_tGetTranslation(Int_t index, Double_t* t)
static Bool_tGetTranslation(Int_t lay, Int_t lad, Int_t det, Double_t* t)
virtual UInt_tTObject::GetUniqueID() const
static Bool_tGlobalToLocal(Int_t index, const Double_t* glob, Double_t* loc)
static Bool_tGlobalToLocal(Int_t lay, Int_t lad, Int_t det, const Double_t* glob, Double_t* loc)
static Bool_tGlobalToLocalVect(Int_t index, const Double_t* glob, Double_t* loc)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
static Bool_tLocalToGlobal(Int_t index, const Double_t* loc, Double_t* glob)
static Bool_tLocalToGlobal(Int_t lay, Int_t lad, Int_t det, const Double_t* loc, Double_t* glob)
static Bool_tLocalToGlobalVect(Int_t index, const Double_t* loc, Double_t* glob)
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
AliITSgeomTGeo(const AliITSgeomTGeo& geom)
static Bool_tGetLayer(Int_t index, Int_t& lay, Int_t& index2)
static TGeoPNEntry*GetPNEntry(Int_t index)
AliITSgeomTGeo&operator=(const AliITSgeomTGeo& geom)

Data Members

private:
static const Int_tfgkNDetectors[6]Array of the number of detector/ladder(layer)
static const Int_tfgkNLadders[6]Array of the number of ladders/layer(layer)
static const Int_tfgkNModulesThe total number of modules

Class Charts

Inheritance Chart:
TObject
AliITSgeomTGeo

Function documentation

Int_t GetModuleIndex(Int_t lay, Int_t lad, Int_t det)
 The method is taken from the old AliITSgeom class by Bjorn Nilsen

 This routine computes the module index number from the layer,
 ladder, and detector numbers. The number of ladders and detectors
 per layer is set statically
 see above for details.
 Inputs:
    Int_t lay  The layer number. Starting from 1.
    Int_t lad  The ladder number. Starting from 1.
    Int_t det  The detector number. Starting from 1.
 Return:
    the module index number, starting from zero.
    -1 in case of error
Bool_t GetLayer(Int_t index, Int_t& lay, Int_t& index2)
 The method is taken from the old AliITSgeom class by Bjorn Nilsen

 This routine computes the layer number for a
 given the module index. The number of ladders and detectors
 per layer is defined statically,
 see above for details.
 Inputs:
     Int_t index  The module index number, starting from zero.
 Outputs:
     Int_t index2 The module index inside a layer, starting from zero.
     Int_t lay    The layer number. Starting from 1.
 Return:
     kTRUE in case of valid index
     kFALSE in case of error
Bool_t GetModuleId(Int_t index, Int_t& lay, Int_t& lad, Int_t& det)
 The method is taken from the old AliITSgeom class by Bjorn Nilsen

 This routine computes the layer, ladder and detector number
 given the module index number. The number of ladders and detectors
 per layer is defined statically,
 see above for details.
 Inputs:
     Int_t index  The module index number, starting from zero.
 Outputs:
     Int_t lay    The layer number. Starting from 1.
     Int_t lad    The ladder number. Starting from 1.
     Int_t det    The detector number. Starting from 1.
 Return:
     kTRUE in case of valid index
     kFALSE in case of error
const char* GetSymName(Int_t index)
 Get the TGeoPNEntry symbolic name
 for a given module identified by 'index'
TGeoHMatrix* GetMatrix(Int_t index)
 Get the transformation matrix for a given module 'index'
 by quering the TGeoManager
Bool_t GetTranslation(Int_t index, Double_t* t)
 Get the translation vector for a given module 'index'
 by quering the TGeoManager
Bool_t GetRotation(Int_t index, Double_t* r)
 Get the rotation matrix for a given module 'index'
 by quering the TGeoManager
Bool_t GetOrigMatrix(Int_t index, TGeoHMatrix& m)
 Get the original (ideal geometry) TGeo matrix for
 a given module identified by 'index'.
 The method is slow, so it should be used
 with great care.
Bool_t GetOrigTranslation(Int_t index, Double_t* t)
 Get the original translation vector (ideal geometry)
 for a given module 'index' by quering the TGeoManager
Bool_t GetOrigRotation(Int_t index, Double_t* r)
 Get the original rotation matrix (ideal geometry)
 for a given module 'index' by quering the TGeoManager
const TGeoHMatrix* GetTracking2LocalMatrix(Int_t index)
 Get the matrix which transforms from the tracking to local r.s.
 The method queries directly the TGeoPNEntry
Bool_t GetTrackingMatrix(Int_t index, TGeoHMatrix& m)
 Get the matrix which transforms from the tracking r.s. to
 the global one.
 Returns kFALSE in case of error.
TGeoPNEntry* GetPNEntry(Int_t index)
 Get a pointer to the TGeoPNEntry of a module
 identified by 'index'
 Returns NULL in case of invalid index,
 missing TGeoManager or invalid symbolic name
Bool_t LocalToGlobal(Int_t index, const Double_t* loc, Double_t* glob)
 Make the conversion from the local sensitive reference system to the global
 reference system, for an arbitrary local position. The input is the pointer
 to the array of local coordinates, the result is sent to the glob pointer.

 Please don't use this method to get the global coordinates of clusters, use
 the direct method of AliCluster instead.
Bool_t GlobalToLocal(Int_t index, const Double_t* glob, Double_t* loc)
 Make the conversion from the global reference system to the sensitive local
 reference system, for an arbitrary global position. The input is the pointer
 to the array of global coordinates, the result is sent to the loc pointer.
Bool_t LocalToGlobalVect(Int_t index, const Double_t* loc, Double_t* glob)
 Make the conversion from the local sensitive reference system to the global
 reference system, for an arbitrary vector. The input is the pointer to the
 array of local coordinates, the result is sent to the glob pointer.
Bool_t GlobalToLocalVect(Int_t index, const Double_t* glob, Double_t* loc)
 Make the conversion from the global reference system to the sensitive local
 reference system, for an arbitrary vector. The input is the pointer to the
 array of global coordinates, the result is sent to the loc pointer.
AliITSgeomTGeo()
{ }
virtual ~AliITSgeomTGeo()
{ }
Int_t GetNModules()
 This function returns the total number of ITS modules
{return fgkNModules;}
Int_t GetNDetectors(Int_t lay)
 This function returns the number of detectors/ladder for a given layer
{return fgkNDetectors[lay-1];}
Int_t GetNLadders(Int_t lay)
 This function returns the number of ladders for a given layer
{return fgkNLadders[lay-1];}
Int_t GetNLayers()
 This function returns the number of layers
{return kNLayers;}
const char * GetSymName(Int_t index)
TGeoHMatrix* GetMatrix(Int_t index)
 This function returns a pointer to the TGeoHMatrix (local->global)
 of a given module index
Bool_t GetTranslation(Int_t index, Double_t* t)
Bool_t GetRotation(Int_t index, Double_t* r)
Bool_t GetOrigMatrix(Int_t index, TGeoHMatrix& m)
 This function returns a pointer to the original TGeoHMatrix (local->global)
 for a specific module index
Bool_t GetOrigTranslation(Int_t index, Double_t* t)
Bool_t GetOrigRotation(Int_t index, Double_t* r)
const TGeoHMatrix* GetTracking2LocalMatrix(Int_t index)
Bool_t GetTrackingMatrix(Int_t index, TGeoHMatrix& m)
Bool_t LocalToGlobal(Int_t index, const Double_t* loc, Double_t* glob)
Bool_t GlobalToLocal(Int_t index, const Double_t* glob, Double_t* loc)
AliITSgeomTGeo(const AliITSgeomTGeo& geom)
AliITSgeomTGeo& operator=(const AliITSgeomTGeo& geom)