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

@ -1062,3 +1062,44 @@ const Char_t* PRunListCollection::GetYAxisTitle(const TString &runName, const UI
return result;
}
//--------------------------------------------------------------------------
// GetN0Idx (public)
//--------------------------------------------------------------------------
/**
* \brief PRunListCollection::GetN0Idx
* \param idx
* \return
*/
Int_t PRunListCollection::GetN0Idx(UInt_t idx)
{
Int_t N0idx = -1;
// make sure idx is within proper bounds
if (idx >= fRunSingleHistoList.size())
return N0idx;
N0idx = fMsrInfo->GetMsrRunList()->at(idx).GetNormParamNo();
return N0idx;
}
//--------------------------------------------------------------------------
// GetNbkgIdx (public)
//--------------------------------------------------------------------------
/**
* \brief PRunListCollection::GetNbkgIdx
* \param idx
* \return
*/
Int_t PRunListCollection::GetNbkgIdx(UInt_t idx)
{
Int_t NbkgIdx = -1;
// make sure idx is within proper bounds
if (idx >= fRunSingleHistoList.size())
return NbkgIdx;
NbkgIdx = fMsrInfo->GetMsrRunList()->at(idx).GetBkgFitParamNo();
return NbkgIdx;
}