1 void selectAllM9(
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",
"below4",
"below3",
"below2",
"below1",
"above1",
"above2",
"above3",
"above4",
"one",
"onetwo",
"onethree",
"two",
"twothree",
"three",
"soft",
"hard"};
30 const int _map[17][21]={
31 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,
32 0, 1, 2, 3, 4, 6, 7, 8, 9,11,12,13,15,16,18, 0, 0, 0, 0, 0, 0,
33 0, 1, 2, 3, 6, 7, 8,11,12,15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
34 0, 1, 2, 6, 7,11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
35 0, 1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
36 2, 3, 4, 5, 8, 9,10,13,14,17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
37 3, 4, 5, 9,10,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
38 4, 5,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
39 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
40 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
41 2, 3, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
42 2, 3, 4, 8, 9,13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
43 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
44 3, 4, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
45 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
46 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
47 1, 2, 3, 4, 5, 7, 8, 9,10,12,13,14,16,17,19, 0, 0, 0, 0, 0 0};
49 int num[17]={21,15,10,6,3,10,6,3,1,1,3,6,1,3,1,1,15};
53 int parentSum[6][2] = { 0,0, 1,1, 2,2, 3,3, 4,4, 5,5 };
54 for(
int k=0;k<17;k++){
57 for(
int i=0;i<21;i++) cout<<ndata[i]<<
",";
58 cout<<
" = "<<nin<<endl;
60 TString fname(dirName);
188 adder.addCuts(fname.Data(),tf,ndata,nin,parentSum,nParentSum,1);
191 TString fname(dirName);
194 fname+=
"_pairDensities.root";
195 adder.addDensities(fname.Data(),tf);