]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/macro/ITS/Config.C
7cc7329b9eeeb6ea267b8d479bca2033ea7eef99
[u/mrichter/AliRoot.git] / AliGeant4 / macro / ITS / Config.C
1 void Config(Int_t version)
2 {
3   gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libITS");
4
5   AliITS* ITS = 0;
6   switch (version) {
7     case 1: ITS  = new AliITSv1("ITS","ITSv1 detector"); break;
8     case 3: ITS  = new AliITSv3("ITS","ITSv3 detector"); break; 
9     case 5: ITS  = new AliITSv5("ITS","normal ITS");       break;
10   }  
11
12 //=================== ITS parameters ============================
13 //
14 // EUCLID is a flag to output (=1) both geometry and media to two ASCII files 
15 // (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
16 // understandable to the CAD system EUCLID. The default (=0) means that you 
17 // dont want to use this facility.
18 //
19 ITS->SetEUCLID(0);
20 }