Removing inheritances from TAttLine, TAttMarker and AliRndm in AliModule. The copy...
[u/mrichter/AliRoot.git] / ITS / AliITSvSPD02.h
CommitLineData
6078cf56 1#ifndef ALIITSVSPD02_H
2#define ALIITSVSPD02_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5/*
6 $Id$
7*/
8// ITS step manager and geometry class for the ITS SPD test beam geometry
9// of Summer 2002.
7d62fb64 10///////////////////////////////////////////////////////////////////////
11// Step manager and
12// geometry class
13// for the ITS
14// SPD test beam
15// geometry of summer 2002
16//
17///////////////////////////////////////////////////////////////////////
6078cf56 18
19#include "AliITS.h"
20
21class AliITSvSPD02 : public AliITS{
22 public:
23 AliITSvSPD02(); // default constructor
a421d869 24 AliITSvSPD02(const char *title,Int_t geomnum=2002); // standard constructor
6078cf56 25 virtual ~AliITSvSPD02(); // destructor
26 virtual void BuildGeometry();
27 virtual void CreateGeometry();
28 virtual void CreateMaterials();
3be5c40b 29 virtual Int_t DecodeDetector(Int_t id,Int_t cpy,Int_t &lay,Int_t &lad,
30 Int_t &det)const;
6078cf56 31 virtual Int_t IsVersion() const {// returns the ITS version number
32 return 1;}
a421d869 33 virtual void Init();
6078cf56 34 virtual void SetDefaults();
78b50563 35 virtual void DrawModule() const;
6078cf56 36 virtual void StepManager();
37 virtual void SetWriteDet(Bool_t det=kTRUE){ // set .det write
38 fGeomDetOut = det;}
39 virtual void SetWriteDet(const char *f){ // set write file
40 strncpy(fWrite,f,60);fGeomDetOut = kTRUE;}
41 virtual void SetReadDet(Bool_t det=kTRUE){ //set .det read
42 fGeomDetIn = det;}
43 virtual void SetReadDet(const char *f){ // set read file
44 strncpy(fRead,f,60);fGeomDetIn = kTRUE;}
6078cf56 45 virtual void SetEUCLIDFileName(const char *f){ // set write file
46 fEuclidGeometry=f;fEuclidOut = kTRUE;}
47 virtual void SetMinorVersion(Int_t v=22){ // Choose between existing minor versions
48 fMinorVersion = v;}
49 virtual void SetThicknessDet1(Float_t v=300.){
50 // Set detector thickness in layer 1
51 fDet1 = v;}
52 virtual void SetThicknessDet2(Float_t v=300.){
53 // Set detector thickness in layer 2
54 fDet2 = v;}
55 virtual void SetThicknessChip1(Float_t v=300.){
56 // Set chip thickness in layer 1
57 fChip1 = v;}
58 virtual void SetThicknessChip2(Float_t v=300.){
59 // Set chip thickness in layer 2
60 fChip2 = v;}
12e7c97c 61 // Replacement default simulation initilization.
62 virtual void SetDefaultSimulation();
a421d869 63 //
64 private:
65 void BuildGeometry2002();
66 void CreateGeometry2002();
67 void CreateMaterials2002();
12e7c97c 68
6078cf56 69 private:
e939a978 70 AliITSvSPD02(const AliITSvSPD02 &source); // Copy constructor
71 AliITSvSPD02& operator=(const AliITSvSPD02 &source); // = operator
6078cf56 72 void InitAliITSgeom();
73 Bool_t fGeomDetOut; // Flag to write .det file out
74 Bool_t fGeomDetIn; // Flag to read .det file or directly from Geat.
75 Int_t fMajorVersion; // Major version number == IsVersion
76 Int_t fMinorVersion; // Minor version number
a421d869 77 Int_t fGeomNumber; // Geometry version number (year)
6078cf56 78 char fEuclidGeomDet[60];// file where detector transormation are define.
79 char fRead[60]; //! file name to read .det file
80 char fWrite[60]; //! file name to write .det file
81 Float_t fDet1; // thickness of detector in SPD layer 1
82 Float_t fDet2; // thickness of detector in SPD layer 2
83 Float_t fChip1; // thickness of chip in SPD layer 1
84 Float_t fChip2; // thickness of chip in SPD layer 2
85 Int_t fIDMother; //! ITS Mother Volume id.
86
a421d869 87 ClassDef(AliITSvSPD02,2) // Hits manager and geometry for SPD testbeam
6078cf56 88};
89#endif