TFile * sfile;\r
TList* list;\r
TList* newlist;\r
- TString binlist = "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15";\r
+ TString binlist = "00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16";\r
\r
if (binlist.Length()) {\r
arr = binlist.Tokenize(" ");\r
continue;\r
} \r
xsection += hxs->GetBinContent(1);\r
- ntrials += htrial->GetBinContent(1)/htrial->GetEntries()/nEventsPerFile;\r
- cout << "Chain: xsection " <<hxs->GetBinContent(1)<<" ntrials "<<htrial->GetBinContent(1)/htrial->GetEntries()<<endl; \r
+ ntrials += htrial->GetBinContent(1)/nEventsPerFile;\r
+ cout << "Chain: xsection " <<hxs->GetBinContent(1)<<" ntrials "<<htrial->GetBinContent(1)<<endl; \r
+ cout << "nEventsPerFile = " << nEventsPerFile <<endl; \r
+ cout << "Accumulating ntrials/event = " << ntrials << endl;\r
}\r
else {\r
Double_t xs = 0;\r
xstree->GetEntry(0);\r
cout << "Chain: xsection " <<xs<<" ntrials "<<ntr<<endl;\r
xsection += xs ;\r
- ntrials += ntr/nEventsPerFile; \r
+ ntrials += (float) ntr/nEventsPerFile;\r
+ cout << "Latest values read are ntr = " << ntr << " and nEventsPerFile = " << nEventsPerFile <<endl; \r
+ cout << "Accumulating ntrials/event = " << ntrials <<endl;\r
} \r
}\r
\r
while ((os=(TObjString*)next())) {
TGridResult *res;
Info("Find", "Making collection for %s", os->GetString().Data());
- res = gGrid->Command(Form("find -x collection %s %s > mycollect%d.xml", os->GetString().Data(),datatype.Data(),count));
+ res = gGrid->Command(Form("find -x collection %s %s > mycollect%02d.xml", os->GetString().Data(),datatype.Data(),count));
if(!res) Info("Find", "Failed making collection for %s \n",os->GetString().Data());
delete res;
count++;
TGridResult *res;
TString jobID = "";
if(kMultiMode){
- res = gGrid->Command(Form("submit %s %s %d", jdlfilename.Data(),worksubdir.Data(),index));
- Info("Launcher:", "Submitting %s %s %d", jdlfilename.Data(),worksubdir.Data(),index);
+ res = gGrid->Command(Form("submit %s %s %02d", jdlfilename.Data(),worksubdir.Data(),index));
+ Info("Launcher:", "Submitting %s %s %02d", jdlfilename.Data(),worksubdir.Data(),index);
}
else{
res = gGrid->Command(Form("submit %s", jdlfilename.Data()));
for (Int_t index = 0; index <= maxbin; index++) {
TGridResult *res;
TString jobID = "";
- res = gGrid->Command(Form("submit %s %s %d", jdlfilename.Data(),worksubdir.Data(),index));
- Info("Launcher:", "Submitting %s %s %d", jdlfilename.Data(),worksubdir.Data(),index);
+ res = gGrid->Command(Form("submit %s %s %02d", jdlfilename.Data(),worksubdir.Data(),index));
+ Info("Launcher:", "Submitting %s %s %02d", jdlfilename.Data(),worksubdir.Data(),index);
if (res) {
const char *cjobId = res->GetKey(0,"jobId");
if (!cjobId) {