]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/macro/PMD/Config.C
update info about cvs installation using cvs account
[u/mrichter/AliRoot.git] / AliGeant4 / macro / PMD / Config.C
1 void Config(Int_t version)
2 {
3   gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libPMD");
4
5   AliPMD *PMD = 0;
6   switch (version) {
7     case 0: PMD  = new AliPMDv0("PMD","normal PMD");      break;
8     case 1: PMD  = new AliPMDv1("PMD", "PMDv1 detector"); break;
9     case 2: PMD  = new AliPMDv2("PMD", "PMDv2 detector"); break;
10   }  
11
12 //=================== PMD parameters ============================
13 PMD->SetPAR(1., 1., 0.8, 0.02);
14 PMD->SetIN(6., 18., -580., 27., 27.);
15 PMD->SetGEO(0.0, 0.2, 4.);
16 PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
17 }