StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
doPlotMaker.C
1 void doPlotMaker(
2  const TString name = "Npart",
3  const TString energy = "200",
4  const UInt_t mode = 1 // Take maximum difference as a systematic error
5  )
6 {
7  // type description node
8  // default default default
9  // small small R, large d small
10  // large large R, small d large
11  // smallXsec small sigma_{NN} smallXsec
12  // largeXsec large sigma_{NN} largeXsec
13  // gray gray disk profile gray
14  // gauss gaussian profile gauss
15  // smallNpp small (npp, x) default
16  // largeNpp large (npp, x) default
17  // smallTotal -5% total cross section default
18  // largeTotal +5% total cross section default
19 
20  gSystem->Load("St_base");
21  gSystem->Load("StUtilities");
22  gSystem->Load("StGlauberAnalysisMaker");
23 
24  StGlauberPlotMaker* maker = new StGlauberPlotMaker(name);
25  // const Int_t nFiles = 11 ;
26  // const TString type[] = {
27  // "default", "small", "large", "smallXsec", "largeXsec",
28  // "gray", "gauss", "smallNBD", "largeNBD", "smallTotal", "largeTotal"
29  // };
30  // const Int_t nFiles = 1 ;
31  // const Int_t nFiles = 10 ;
32  // const Int_t nFiles = 12 ;
33  // const TString type[] = {
34  // "default", "small", "large", "smallXsec", "largeXsec",
35  // "gauss", "smallNpp", "largeNpp", "smallTotal", "largeTotal",
36  // "lowrw", "highrw"
37  // };
38 
39  const Int_t nFiles = 10 ;
40  const TString type[] =
41  {
42  "default", "small", "large", "smallXsec", "largeXsec",
43  "smallNpp", "largeNpp", "gauss", "smallTotal", "largeTotal"
44  // "smallNpp", "largeNpp", "gauss"
45  };
46 
47  //----------------------------------------------------------------------------------------------------
48  // Description for Au+Au 200 GeV Run10 (default)
49  //----------------------------------------------------------------------------------------------------
50  TString description[] =
51  {
52  "default",
53  "small R, large d",
54  "large R, small d",
55  "small #sigma_{NN}=41mb",
56  "large #sigma_{NN}=43mb",
57  // "small n_{pp}: (npp, x) = (2.55, 0.11)",
58  // "large n_{pp}: (npp, x) = (2.31, 0.15)",
59  "small n_{pp}: (npp, x) = (2.153, 0.13)",
60  "large n_{pp}: (npp, x) = (1.948, 0.17)",
61  "gauss profile",
62  "-5% total cross section",
63  "+5% total cross section"
64  };
65 
66  if( energy.Contains("200") )
67  {
68  cout << "Initialize 200 GeV" << endl;
69  }
70 
71  //----------------------------------------------------------------------------------------------------
72  // Description for Au+Au 39 GeV Run10
73  //----------------------------------------------------------------------------------------------------
74  if( energy.Contains("39") )
75  {
76  cout << "Initialize 39 GeV" << endl;
77  description[3] = "small #sigma_{NN}=33mb" ;
78  description[4] = "large #sigma_{NN}=35mb" ;
79  description[5] = "small n_{pp}: (npp, x) = (1.44, 0.14)" ;
80  description[6] = "large n_{pp}: (npp, x) = (1.60, 0.10)" ;
81  }
82 
83 #if 0
84  const TString description[] = {
85  "default",
86  "-2% R, +10% d",
87  "+2% R, -10% d",
88  "small #sigma_{NN}=33mb",
89  "large #sigma_{NN}=35mb",
90  // "gray disk profile",
91  "gaussian profile",
92  "small n_{pp}: (npp, x) = (1.44, 0.14)",
93  "large n_{pp}: (npp, x) = (1.60, 0.10)",
94  "-5% total cross section",
95  "+5% total cross section",
96  "Re-weighting +(-) 2#sigma for p_{0}(p_{1})",
97  "Re-weighting -(+) 2#sigma for p_{0}(p_{1})"
98  };
99 #endif
100 
101  //----------------------------------------------------------------------------------------------------
102  // Description for Au+Au 11.5 GeV Run10
103  //----------------------------------------------------------------------------------------------------
104  if( energy.Contains("11.5") ) {
105  cout << "Initialize 11.5 GeV" << endl;
106  description[3] = "small #sigma_{NN}=30.2mb" ;
107  description[4] = "large #sigma_{NN}=32.2mb" ;
108  description[5] = "small n_{pp}: (npp, x) = (1.01, 0.14)" ;
109  description[6] = "large n_{pp}: (npp, x) = (1.11, 0.10)" ;
110  }
111 
112 #if 0
113  const TString description[] = {
114  "default",
115  "small R, large d",
116  "large R, small d",
117  "small #sigma_{NN}=30.2mb",
118  "large #sigma_{NN}=32.2mb",
119  "gaussian profile",
120  "small n_{pp}: (npp, x) = (0.82, 0.14)",
121  "large n_{pp}: (npp, x) = (0.90, 0.10)",
122  "-5% total cross section",
123  "+5% total cross section"
124  };
125 #endif
126  //----------------------------------------------------------------------------------------------------
127  // Description for Au+Au 7.7 GeV Run10
128  //----------------------------------------------------------------------------------------------------
129  if( energy.Contains("7.7") ) {
130  cout << "Initialize 7.7 GeV" << endl;
131  description[3] = "small #sigma_{NN}=29.8mb" ;
132  description[4] = "large #sigma_{NN}=31.8mb" ;
133  description[5] = "small n_{pp}: (npp, x) = (0.85, 0.14)" ;
134  description[6] = "large n_{pp}: (npp, x) = (0.93, 0.10)" ;
135  }
136 
137 #if 0
138  const TString description[] = {
139  "default",
140  "small R, large d",
141  "large R, small d",
142  "small #sigma_{NN}=29.8mb",
143  "large #sigma_{NN}=31.8mb",
144  // "gaussian profile",
145  "small n_{pp}: (npp, x) = (0.85, 0.14)",
146  "large n_{pp}: (npp, x) = (0.93, 0.10)",
147  "-5% total cross section",
148  "+5% total cross section"
149  };
150  // "small n_{pp}: (npp, x) = (0.82, 0.14)", // Fast offline
151  // "large n_{pp}: (npp, x) = (0.90, 0.10)", // Fast offline
152 #endif
153 
154  for(Int_t i=0; i<nFiles; i++)
155  {
156  cout << description[i] << endl;
157  const TString tableName(Form("./table/table_%s_%s_vs_centrality.txt", type[i].Data(), name.Data()));
158  maker->Read(tableName, description[i]) ;
159  }
160 
161  maker->Draw(mode) ;
162 }
163 
void Draw(const UInt_t mode=0)
Int_t Read(const TString filename, const TString type)
Default destructor.