2 TCanvas* c1=
new TCanvas(
"c1");
8 c1->SetWindowSize(500,500);
11 gStyle->SetOptTitle(0);
12 gStyle->SetOptStat(0);
15 gROOT->LoadMacro(
"load2ptLibs.C");
17 gSystem->Load(
"StEStructPoolSupport.so");
22 TH2F **ytyt[nCent][12];
23 TH2F **ptdedp[nCent][12];
24 TH2F **dedp[nCent][12];
26 const char* oname[]={
"all",
"awayside",
"nearside",
"soft",
"softAS",
"softNS",
"neck",
"neckAS",
"neckNS",
"hard",
"hardAS",
"hardNS"};
28 char *dir =
"/common/star/stardata/estruct/prindle/Hijing/auau200/QuenchOff/noSymm_mode3";
29 char *dir =
"/common/star/stardata/estruct/prindle/Data/pp200/pidTest/productionMinBias_year5";
31 float sf[2] = {0.98,0.98};
33 for (
int ic=0;ic<nCent;ic++) {
34 for (
int it=0;it<12;it++) {
35 sprintf(fileName,
"%s/data/Data%i%s.root",dir,ic,oname[it]);
36 tf[ic][it] =
new TFile(fileName);
38 ytyt[ic][it] = (TH2F**) ehelp[ic][it]->buildChargeTypes(
"YtYt",0);
40 float dx = ytyt[ic][it][j]->GetXaxis()->GetBinWidth(1);
41 float dy = ytyt[ic][it][j]->GetYaxis()->GetBinWidth(1);
42 float sf2 = sqrt(dx*dy);
43 ytyt[ic][it][j]->Scale(1.0/sf2);
45 ptdedp[ic][it] = (TH2F**) ehelp[ic][it]->buildPtChargeTypes(
"DEtaDPhi",0,1);
46 dedp[ic][it] = (TH2F**) ehelp[ic][it]->buildChargeTypes(
"DEtaDPhi",0);
52 for (
int i=0;i<nCent;i++) {
53 ytyt[i][2]->SetMaximum(0.02);
54 ytyt[i][3]->SetMaximum(0.04);
62 for (
int ic=0;ic<nCent;ic++) {
66 ytyt[ic][ipid][icharge]->Draw(
"surf1");
71 const char* oname[]={
"all",
"awayside",
"nearside",
"soft",
"softAS",
"softNS",
72 "neck",
"neckAS",
"neckNS",
"hard",
"hardAS",
"hardNS"};
74 char *chargeCombo[] = {
"LS",
"US",
"CD",
"CI"};
79 for (
int ic=0;ic<nCent;ic++) {
83 dedp[ic][icut][icharge]->Draw(
"surf1");
91 int dumpEm[] = {0, 3, 9};
93 for (
int ic=0;ic<nCent;ic++) {
94 for (
int id=0;
id<3;
id++) {
95 for (
int ih=0;ih<4;ih++) {
96 sprintf(fileName,
"%s/txt/asciiYtYtData%i%s_%i.txt",dir,ic,oname[dumpEm[
id]],ih);
97 ehelp[ic][dumpEm[id]]->writeAscii( ytyt[ic][dumpEm[
id]], ih, fileName, 0 );
98 sprintf(fileName,
"%s/txt/asciidedpData%i%s_%i.txt",dir,ic,oname[dumpEm[
id]],ih);
99 ehelp[ic][dumpEm[id]]->writeAscii( dedp[ic][dumpEm[
id]], ih, fileName, 0 );
100 sprintf(fileName,
"%s/txt/asciiptdedpData%i%s_%i.txt",dir,ic,oname[dumpEm[
id]],ih);
101 ehelp[ic][dumpEm[id]]->writeAscii( ptdedp[ic][dumpEm[
id]], ih, fileName, 0 );