Adding new SPD 2002 test-beam geometry, with Config file (setup for testing,
[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.
10
11#include "AliITS.h"
12
13class AliITSvSPD02 : public AliITS{
14 public:
15 AliITSvSPD02(); // default constructor
16 AliITSvSPD02(const char *title); // standard constructor
17 AliITSvSPD02(const AliITSvSPD02 &source); // Copy constructor
18 AliITSvSPD02& operator=(const AliITSvSPD02 &source); // = operator
19 virtual ~AliITSvSPD02(); // destructor
20 virtual void BuildGeometry();
21 virtual void CreateGeometry();
22 virtual void CreateMaterials();
23 virtual Int_t IsVersion() const {// returns the ITS version number
24 return 1;}
25 virtual void Init();
26 virtual void SetDefaults();
27 virtual void DrawModule();
28 virtual void StepManager();
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;}
37 virtual void SetEUCLID(Bool_t euclid=kTRUE){ // set write Euclid file
38 fEuclidOut = euclid;}
39 virtual void SetEUCLIDFileName(const char *f){ // set write file
40 fEuclidGeometry=f;fEuclidOut = kTRUE;}
41 virtual void SetMinorVersion(Int_t v=22){ // Choose between existing minor versions
42 fMinorVersion = v;}
43 virtual void SetThicknessDet1(Float_t v=300.){
44 // Set detector thickness in layer 1
45 fDet1 = v;}
46 virtual void SetThicknessDet2(Float_t v=300.){
47 // Set detector thickness in layer 2
48 fDet2 = v;}
49 virtual void SetThicknessChip1(Float_t v=300.){
50 // Set chip thickness in layer 1
51 fChip1 = v;}
52 virtual void SetThicknessChip2(Float_t v=300.){
53 // Set chip thickness in layer 2
54 fChip2 = v;}
55 private:
56 void InitAliITSgeom();
57 Bool_t fGeomDetOut; // Flag to write .det file out
58 Bool_t fGeomDetIn; // Flag to read .det file or directly from Geat.
59 Int_t fMajorVersion; // Major version number == IsVersion
60 Int_t fMinorVersion; // Minor version number
61 char fEuclidGeomDet[60];// file where detector transormation are define.
62 char fRead[60]; //! file name to read .det file
63 char fWrite[60]; //! file name to write .det file
64 Float_t fDet1; // thickness of detector in SPD layer 1
65 Float_t fDet2; // thickness of detector in SPD layer 2
66 Float_t fChip1; // thickness of chip in SPD layer 1
67 Float_t fChip2; // thickness of chip in SPD layer 2
68 Int_t fIDMother; //! ITS Mother Volume id.
69
70 ClassDef(AliITSvSPD02,1) // Hits manager and geometry for SPD testbeam
71};
72#endif