StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
getPythia.C
1 void pythiaTuneA(TPythia6* pyth){
2 
3  pyth->SetPARP(67,4.0);
4  pyth->SetMSTP(81,1.0);
5  // pyth->SetMSTP(82,4.0); <-- this one causes probles
6  // with many lines of output like below ... never finishes event 1
7  // --> Advisory warning: maximum violated by 1.464E+00 in event 1
8  // --> XSEC(96,1) increased to 1.467E+03
9  pyth->SetPARP(83,0.5);
10  pyth->SetPARP(84,0.4);
11  pyth->SetPARP(89,1800.0);
12  pyth->SetPARP(90,0.25);
13 
14  pyth->SetPARP(82,2.0);
15  pyth->SetPARP(85,0.9);
16  pyth->SetPARP(86,0.95);
17 
18 
19 }
20 
21 //-------------------------------------------------------
22 void pythiaTuneB(TPythia6* pyth){
23 
24  //<-- same a tune a
25  pyth->SetPARP(67,4.0);
26  pyth->SetMSTP(81,1.0);
27  // pyth->SetMSTP(82,4.0); <-- this one causes probles
28  // with many lines of output like below ... never finishes event 1
29  // --> Advisory warning: maximum violated by 1.464E+00 in event 1
30  // --> XSEC(96,1) increased to 1.467E+03
31  pyth->SetPARP(83,0.5);
32  pyth->SetPARP(84,0.4);
33  pyth->SetPARP(89,1800.0);
34  pyth->SetPARP(90,0.25);
35  //<-- end same as tune a
36 
37  pyth->SetPARP(82,1.9);
38  pyth->SetPARP(85,1.0);
39  pyth->SetPARP(86,1.0);
40 }
41 
42 //-------------------------------------------------------
43 void pythiaTunes(TPythia6* pyth, int itune){
44 
45  //
46  // simple preset listing of tunes that we're not going to
47  // spend the effort to expose to the gui.
48  //
49 
50  if(!itune) return;
51  if(itune==1) return pythiaTuneA(pyth);
52  if(itune==2) return pythiaTuneB(pyth);
53 
54 }
55 
56 
57 //
58 // --------------- ok, here's the code to call -----------------
59 //
60 TPythia6* getPythia(const char* rframe,
61  const char* cproj,
62  const char* ctarg,
63  float rts,
64  int itune){
65  TPythia6* retVal=new TPythia6();
66  retVal->Initialize(rframe,cproj,ctarg,rts);
67 
68  retVal->SetMRPY(2,0);
69 
70  pythiaTunes(retVal,itune);
71  return retVal;
72 }
73 
74