]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/macro/TRD/Config.C
This commit was generated by cvs2svn to compensate for changes in r1459,
[u/mrichter/AliRoot.git] / AliGeant4 / macro / TRD / Config.C
1 void Config(Int_t version)
2 {
3   gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTRD");
4
5   AliTRD *TRD = 0;
6   switch (version) {
7     case 0: TRD  = new AliTRDv0("TRD", "TRDv0 detector"); break;
8     case 1: TRD  = new AliTRDv1("TRD","TRD version 0");   break;
9   }
10
11 //=================== TRD parameters ============================
12   
13   //TRD->SetHits();
14   
15   //AliTRD *TRD  = new AliTRDv1("TRD","TRD slow simulator");
16   //TRD->SetSensPlane(0);
17   //TRD->SetSensChamber(2);
18   //TRD->SetSensSector(17);
19   
20   // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
21   TRD->SetGasMix(1);
22   
23   // With hole in front of PHOS
24   TRD->SetPHOShole();
25   // With hole in front of RICH
26   TRD->SetRICHhole();
27 }