add memory handling for DKS/GPU. No fitting possible, yet.

This commit is contained in:
2016-03-31 16:41:46 +02:00
parent 5fb2ce777e
commit ae77181f42
6 changed files with 164 additions and 2 deletions

View File

@ -69,6 +69,8 @@ PMsrHandler::PMsrHandler(const Char_t *fileName, PStartupOptions *startupOptions
fFuncHandler = 0;
fNoOfMaps = -1;
// check if the file name given is a path-file-name, and if yes, split it into path and file name.
if (fFileName.Contains("/")) {
Int_t idx = -1;
@ -5664,6 +5666,17 @@ Bool_t PMsrHandler::CheckMaps()
}
}
if (result == true) {
PIntVector *map = fRuns[0].GetMap();
fNoOfMaps = 0;
for (UInt_t i=0; i<map->size(); i++)
if (map->at(i) != 0)
fNoOfMaps++;
if (fNoOfMaps == 0)
fNoOfMaps = -1;
}
cout << "debug> fNoOfMaps=" << fNoOfMaps << endl;
// clean up
mapVec.clear();
mapBlock.clear();