Removing inheritances from TAttLine, TAttMarker and AliRndm in AliModule. The copy...
[u/mrichter/AliRoot.git] / ITS / AliITSvtest.h
CommitLineData
3fccfd9e 1#ifndef ALIITSVTEST_H
2#define ALIITSVTEST_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////////////////////////////////////////////////////////////////////////
9// Manager and hits classes for ITS version 5
10////////////////////////////////////////////////////////////////////////
11
12
13#include "AliITS.h"
14
15class TBRIK;
16class AliITSvtest : public AliITS {
17
18public:
19 AliITSvtest();
20 AliITSvtest(const char *fileeuc,const char *filetme,
21 const char *name, const char *title);
3fccfd9e 22 virtual ~AliITSvtest() ;
23 virtual void CreateGeometry();
24 virtual void CreateMaterials();
25 virtual void Init();
bae7e562 26 virtual Int_t IsVersion() const {// returns the ITS version number
3fccfd9e 27 return -1;}
28 virtual void StepManager();
bae7e562 29 virtual void SetWriteDet(Bool_t det=kTRUE){ // set .det write
30 fGeomDetOut = det;}
31 virtual void SetWriteDet(const char *f){ // set write file
32 strncpy(fWrite,f,60);fGeomDetOut = kTRUE;}
33 virtual void SetReadDet(Bool_t det=kTRUE){ //set .det read
34 fGeomDetIn = det;}
35 virtual void SetReadDet(const char *f){ // set read file
36 strncpy(fRead,f,60);fGeomDetIn = kTRUE;}
bae7e562 37 virtual void SetEUCLIDFileName(const char *f){ // set write file
38 fEuclidGeometry=f;fEuclidOut = kTRUE;}
39 virtual void SetMinorVersion(Int_t v){ // Choose between existing minor versions
40 fMinorVersion = 1;
41 if(v==1) fMinorVersion = 1;
42 else if(v==2) fMinorVersion = 2;
43 else Warning("SetMinorVersion","Undefined Minor Version setting =1");}
a8e8915c 44
bae7e562 45 virtual const char *GetEULIIDFileName() const{ // return .euc file name
46 return fEuclidGeometry.Data();}
a8e8915c 47 virtual Bool_t GetWriteDet() const { // returns value GeomDetOut flag.
bae7e562 48 return fGeomDetOut;}
a8e8915c 49 virtual Bool_t GetReadDet() const { // returns value GeomDetIn flag.
bae7e562 50 return fGeomDetIn;}
51 virtual char *GetReadDetFileName(){ // return .det read file name
52 if(fRead[0]!='\0') return fRead; else return fEuclidGeomDet;}
53 virtual char *GetWriteDetFileName(){ // return .det write file name
54 if(fWrite[0]!='\0') return fWrite; else return fEuclidGeomDet;}
a8e8915c 55 virtual Int_t GetMajorVersion() const {// return Major Version Number
bae7e562 56 return fMajorVersion;}
a8e8915c 57 virtual Int_t GetMinorVersion() const {// return Major Version Number
bae7e562 58 return fMinorVersion;}
59
60 private:
e939a978 61 AliITSvtest(const AliITSvtest &source); // copy constructor
62 AliITSvtest& operator=(const AliITSvtest &source); // assignment operator
bae7e562 63 void InitAliITSgeom();
64
65 // TString fEuclidGeomtery,fEuclidMaterial defined in AliModule.
bae7e562 66 Bool_t fGeomDetOut; // Flag to write .det file out
67 Bool_t fGeomDetIn; // Flag to read .det file or directly from Geat.
68 Int_t fMajorVersion; // Major version number == IsVersion
69 Int_t fMinorVersion; // Minor version number
70 char fEuclidGeomDet[60];// file where detector transormation are define.
71 char fRead[60]; //! file name to read .det file
72 char fWrite[60]; //! file name to write .det file
3fccfd9e 73
74 ClassDef(AliITSvtest,1) //Hits manager for ITS test version, Private ITS class for different test geometries
75};
76
77#endif