1 void selectAllM3(
const char* dirName,
const char *fileBase ){
8 gROOT->LoadMacro(
"load2ptLibs.C");
10 TString inFile(dirName);
14 gSystem->Load(
"StEStructPoolSupport.so");
18 TFile * tf=
new TFile(inFile.Data());
21 cout<<
"error opening file "<<endl;
28 const char* oname[]={
"all",
"awayside",
"nearside",
"soft",
"softAS",
"softNS",
"neck",
"neckAS",
"neckNS",
"hard",
"hardAS",
"hardNS",
"softHard",
"softHardAS",
"softHardNS"};
30 const int _map[15][16]={
31 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,
32 0, 1, 4, 5, 8, 9,12,13, 0, 0, 0, 0, 0, 0, 0, 0,
33 2, 3, 6, 7,10,11,14,15, 0, 0, 0, 0, 0, 0, 0, 0,
34 0, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
35 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
36 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
37 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
38 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
39 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
40 8, 9,10,11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
41 8, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
42 10,11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
43 12,13,14,15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
44 12,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
45 14,15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
47 int num[15]={16,8,8,4,2,2,4,2,2,4,2,2,4,2,2};
51 int parentSum[3][2] = { 0,0, 1,1, 2,2 };
52 for(
int k=0;k<15;k++){
55 for(
int i=0;i<16;i++) cout<<ndata[i]<<
",";
56 cout<<
" = "<<nin<<endl;
58 TString fname(dirName);
69 parentSum[0][0] = k/3 - 1;
70 parentSum[0][1] = k/3 - 1;
78 adder.addCuts(fname.Data(),tf,ndata,nin,parentSum,nParentSum,1);
81 TString fname(dirName);
84 fname+=
"_pairDensities.root";
85 adder.addDensities(fname.Data(),tf);