]>
Commit | Line | Data |
---|---|---|
676fb573 | 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; | |
29d92eb4 | 8 | case 1: TRD = new AliTRDv1("TRD","TRD slow simulator"); break; |
676fb573 | 9 | } |
10 | ||
11 | //=================== TRD parameters ============================ | |
12 | ||
676fb573 | 13 | //AliTRD *TRD = new AliTRDv1("TRD","TRD slow simulator"); |
676fb573 | 14 | |
15 | // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2) | |
16 | TRD->SetGasMix(1); | |
17 | ||
a91966d8 | 18 | if (AliRunConfiguration::Holes()) { |
19 | // With hole in front of PHOS | |
20 | TRD->SetPHOShole(); | |
21 | // With hole in front of RICH | |
22 | TRD->SetRICHhole(); | |
23 | } | |
29d92eb4 | 24 | // Switch on TR |
25 | AliTRDsim *TRDsim = TRD->CreateTR(); | |
676fb573 | 26 | } |