Initial version
[u/mrichter/AliRoot.git] / AliGeant4 / macro / TRD / ConfigPPR.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 slow simulator");   break;
9   }
10
11 //=================== TRD parameters ============================
12   
13   //AliTRD *TRD  = new AliTRDv1("TRD","TRD slow simulator");
14   
15   // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
16   TRD->SetGasMix(1);
17   
18   // With hole in front of PHOS
19   TRD->SetPHOShole();
20   // With hole in front of RICH
21   TRD->SetRICHhole();
22   // Switch on TR
23   AliTRDsim *TRDsim = TRD->CreateTR();
24 }