Initial version
[u/mrichter/AliRoot.git] / AliGeant4 / macro / TPC / ConfigPPR.C
1 void Config(Int_t version)
2 {
3   gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTPC");
4
5   AliTPC* TPC = 0;
6   switch (version) {
7     case 0: TPC  = new AliTPCv0("TPC","Default"); break;
8     case 1: TPC  = new AliTPCv1("TPC","Default"); break;
9     case 2: TPC  = new AliTPCv2("TPC","Default"); break;
10     case 3: TPC  = new AliTPCv3("TPC","Default"); break;
11   }   
12
13   //============================ TPC parameters ================================
14   // --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
15   // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
16   // --- sectors are specified, any value other than that requires at least one 
17   // --- sector (lower or upper)to be specified!
18   // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
19   // ---   sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
20   // --- SecLows - number of lower sectors specified (up to 6)
21   // --- SecUps - number of upper sectors specified (up to 12)
22   // --- Sens - sensitive strips for the Slow Simulator !!!
23   // --- This does NOT work if all S or L-sectors are specified, i.e.
24   // --- if SecAL or SecAU < 0
25   //
26   //
27   //-----------------------------------------------------------------------------
28
29   //  gROOT->LoadMacro("SetTPCParam.C");
30   //  AliTPCParam *param = SetTPCParam();
31
32   // All sectors included 
33   TPC->SetSecAL(-1);
34   TPC->SetSecAU(-1);
35 }