1 void selectAllM5(
const char* dirName,
const char* inFile){
8 gROOT->LoadMacro(
"load2ptLibs.C");
14 gSystem->Load(
"StEStructPoolSupport.so");
18 TFile * tf=
new TFile(dir.Data());
21 cout<<
"error opening file "<<endl;
28 const char* oname[]={
"pi_o",
"pi_pi",
"pi_K",
"pi_p",
32 int symmXX[] = {0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1};
33 int parentDist[10][2] = {1,0, 1,1, 1,2, 1,3, 2,0, 2,2, 2,3, 3,0, 3,3, 0,0};
36 for (
int k=0;k<10;k++) {
39 int nParentDist[] = {4,4};
40 int parentSum[4][2] = { 0,0, 1,1, 2,2, 3,3 };
41 TString fname(dirName);
46 adder.addCuts(fname.Data(),tf,nList,10,parentSum,nParentDist,symmXX[10]);
47 TFile * tfComb=
new TFile(fname.Data(),
"UPDATE");
49 adder.combineUS(tfComb);
56 for(
int k=0;k<10;k++){
57 TString fname(dirName);
63 parentD[0][0] = parentDist[k][0];
64 parentD[0][1] = parentDist[k][1];
65 adder.addCuts(fname.Data(),tf,nList,1,parentD,nParentDist,symmXX[k]);
68 TString fname(dirName);
71 fname+=
"_pairDensities.root";
72 adder.addDensities(fname.Data(),tf);