X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSv11.h;h=66df286d0afcc47b2a18a6a797254d422975423e;hb=f5e33cc07e8750f569fba3903ce6f387d30d46bf;hp=9fd6e1697bd39a46142e1cbd7af6899a839970e2;hpb=f7315efcf460788e12c56412b39e9133b2b430f6;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSv11.h b/ITS/AliITSv11.h index 9fd6e1697bd..66df286d0af 100644 --- a/ITS/AliITSv11.h +++ b/ITS/AliITSv11.h @@ -3,50 +3,83 @@ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ -/* - $Id$ - */ +//======================================================================== +// +// Inner Traking System geometry v11 +// +// Based on ROOT geometrical modeler +// +// B. Nilsen, L. Gaudichet, M. Sitta +// +//======================================================================== -///////////////////////////////////////////////////////////////////////// -// Manager and hits classes for set: ITS version 11, 2003 geometry // -///////////////////////////////////////////////////////////////////////// + +// $Id: + +// $Log$ +// Revision 1.1 2011/06/10 14:48:24 masera +// First version from v11Hybrid to v11 (M. Sitta) +// #include "AliITS.h" -class TGeoVolume; -class TGeoPcon; - +#include "AliITSInitGeometry.h" + +class AliITSv11GeometrySPD; +class AliITSv11GeometrySDD; +class AliITSv11GeometrySSD; +class AliITSv11GeometrySupport; +class TGeoVolume; +class TGeoVolumeAssembly; + class AliITSv11 : public AliITS { public: AliITSv11(); AliITSv11(const char *title); - AliITSv11(const AliITSv11 &source); // copy constructor - AliITSv11& operator=(const AliITSv11 &source); // assignment operator - virtual ~AliITSv11(); - virtual void BuildGeometry(); + AliITSv11(const char *name, const char *title); + virtual ~AliITSv11() ; + + virtual void AddAlignableVolumes() const; virtual void CreateGeometry(); virtual void CreateMaterials(); - virtual Int_t IsVersion() const {return 11;} // ITS version number + + virtual AliITSv11GeometrySPD* GetSPDGeometry(){return fSPDgeom;} + virtual AliITSv11GeometrySDD* GetSDDGeometry(){return fSDDgeom;} + virtual AliITSv11GeometrySSD* GetSSDGeometry(){return fSSDgeom;} + virtual AliITSv11GeometrySupport* GetSupGeometry(){return fSupgeom;} + + virtual Int_t IsVersion() const {// returns the ITS version number + return 11;} virtual void Init(); virtual void SetDefaults(); - virtual void DrawModule(); virtual void StepManager(); - private: - void InitAliITSgeom(); - - // TString fEuclidGeomtery,fEuclidMaterial defined in AliModule. - Bool_t fGeomDetOut; // Flag to write .det file out - Bool_t fGeomDetIn; // Flag to read .det file or directly from Geat. - Int_t fMajorVersion; // Major version number == IsVersion - Int_t fMinorVersion; // Minor version number - Float_t fDet1; // thickness of detector in SPD layer 1 - Float_t fDet2; // thickness of detector in SPD layer 2 - Float_t fChip1; // thickness of chip in SPD layer 1 - Float_t fChip2; // thickness of chip in SPD layer 2 - Int_t fRails; // switch rails on (=1) and off (=0) - Int_t fFluid; // switch between water(=1) and freon(=0) - - ClassDef(AliITSv11,1) //Hits manager for set:ITS version 11 + virtual void SetDensityServicesByThickness(){// uses services density + // calculation based on the thickness of the services. + fByThick = kTRUE;} + virtual void SetDensityServicesByMass(){// uses services density + // calculation based on the Mass of the services. + fByThick = kFALSE;} + + + protected: + void SetT2Lmatrix(Int_t uid, Double_t yShift, + Bool_t yFlip, Bool_t yRot180=kFALSE) const; // Set T2L matrix in TGeoPNEntries + + private: + AliITSv11(const AliITSv11 &source); // copy constructor + AliITSv11& operator=(const AliITSv11 &source); // assignment operator + + Bool_t fByThick; // Flag to use services materials by thickness + // ture, or mass false. + Int_t fIDMother; //! ITS Mother Volume id. + + AliITSInitGeometry fInitGeom; //! Get access to decoding and AliITSgeom init functions + AliITSv11GeometrySPD *fSPDgeom; //! SPD Geometry + AliITSv11GeometrySDD *fSDDgeom; //! SDD Geometry + AliITSv11GeometrySSD *fSSDgeom; //! SSD Geometry + AliITSv11GeometrySupport *fSupgeom; //! Support Geometry + + ClassDef(AliITSv11,4) // ITS version 11 }; #endif