Commit 8bf518cf authored by J.Dudouet [IPNL/CSNSM]'s avatar J.Dudouet [IPNL/CSNSM]
Browse files

Better determination of the run number in GuiBuildTree


git-svn-id: svn+ssh://anonsvn.in2p3.fr/agata/gammaware/trunk@2252 c3abf467-7ff2-0310-b516-c5fb849bdde0
parent 74b9eca5
...@@ -678,11 +678,24 @@ void GuiBuildTree::Update() ...@@ -678,11 +678,24 @@ void GuiBuildTree::Update()
fname = file->GetName(); fname = file->GetName();
TString Run=""; TString Run="";
bool isdigit = false;
for(int i=0 ; i< fname.Sizeof()-1 ; i++) for(int i=0 ; i< fname.Sizeof()-1 ; i++)
{ {
TString test=fname[i]; TString test=fname[i];
if(test.IsDigit()) if(test.IsDigit())
{
if(isdigit==false)
isdigit = true;
Run += test; Run += test;
}
else
{
if(isdigit==true)
break;
}
cout<<"!!!!!!!!!!!!!!!!!!!!! "<<Run<<endl;
} }
if(Run=="") Run="-1"; if(Run=="") Run="-1";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment