]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/TPCConfig.C
removed obsolete AliTPCDigitsDisplay.C
[u/mrichter/AliRoot.git] / TPC / TPCConfig.C
CommitLineData
cc80f89e 1void Config()
2{
3//=======================================================================
4// Create the output file
5
6TFile *rootfile = new TFile("galice.root","recreate");
7rootfile->SetCompressionLevel(2);
8
9//=======================================================================
10// ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
11geant3->SetTRIG(1); //Number of events to be processed
12geant3->SetSWIT(4,1);
13geant3->SetDEBU(0,0,1);
14//geant3->SetSWIT(2,2);
15geant3->SetDCAY(1);
16geant3->SetPAIR(1);
17geant3->SetCOMP(1);
18geant3->SetPHOT(1);
19geant3->SetPFIS(0);
20geant3->SetDRAY(0);
21geant3->SetANNI(1);
22geant3->SetBREM(1);
23geant3->SetMUNU(1);
24geant3->SetCKOV(1);
25geant3->SetHADR(1); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
26geant3->SetLOSS(2);
27geant3->SetMULS(1);
28geant3->SetRAYL(1);
29geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
30geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
31geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
32Float_t cut = 1.e-3; // 1MeV cut by default
33Float_t tofmax = 1.e10;
34// GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
35geant3->SetCUTS(cut,cut, cut, cut, cut, cut, cut, cut, cut, cut, tofmax);
36//
37//=======================================================================
38// ************* STEERING parameters FOR ALICE SIMULATION **************
39// --- Specify event type to be tracked through the ALICE setup
40// --- All positions are in cm, angles in degrees, and P and E in GeV
41AliGenHIJINGpara *gener = new AliGenHIJINGpara(1000);
42gener->SetMomentumRange(0,100);
43gener->SetPhiRange(0,360);
44gener->SetThetaRange(20,160);
45gener->SetOrigin(0,0,0); //vertex position
46gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
47gener->Init();
48
49gAlice->SetField(-999,2); //Specify maximum magnetic field in Tesla (neg. ==> default field)
50
51//=================== Alice BODY parameters =============================
52AliBODY *BODY = new AliBODY("BODY","Alice envelop");
53
54
55
56//============================ TPC parameters ================================
57// --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
58// --- Simulator. TPCSECL (TPSECU) <0 means that ALL lower (upper)
59// --- sectors are specified, any value other than that requires at least one
60// --- sector (lower or upper)to be specified!
61// --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
62// --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
63// --- TPCLOWS - number of lower sectors specified (up to 6)
64// --- TPCUPS - number of upper sectors specified (up to 12)
65// --- TPCSENS - sensitive strips for the Slow Simulator !!!
66// --- This does NOT work if all S or L-sectors are specified, i.e.
67// --- if TPCSECL or TPCSECU < 0
68//-----------------------------------------------------------------------------
69
70AliTPC *TPC = new AliTPCv1("TPC","Normal TPC");
71TPC->SetSecAL(1);
72TPC->SetSecAU(1);
73TPC->SetSecLows(1, -1, -1, -1, -1, -1);
74TPC->SetSecUps(25, 26, 48, -1, -1, -1, -1, -1, -1, -1, -1, -1);
75TPC->SetSens(1);
76
77
78
79
80}