From c8222754ced8a58d9d2aad738581b147a69cd432 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Fri, 1 Mar 2013 08:10:48 +0000 Subject: [PATCH] some minor issues with run block names messages in case of missing t0's --- src/classes/PRunAsymmetry.cpp | 8 ++++---- src/classes/PRunSingleHisto.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/classes/PRunAsymmetry.cpp b/src/classes/PRunAsymmetry.cpp index c55ba741..dd16e9a9 100644 --- a/src/classes/PRunAsymmetry.cpp +++ b/src/classes/PRunAsymmetry.cpp @@ -563,7 +563,7 @@ Bool_t PRunAsymmetry::PrepareData() fRunInfo->SetT0Bin(fT0s[2*i], 2*i); cerr << endl << ">> PRunAsymmetry::PrepareData(): **WARRNING** NO t0's found, neither in the run data nor in the msr-file!"; - cerr << endl << ">> run: " << fRunInfo->GetRunName(); + cerr << endl << ">> run: " << fRunInfo->GetRunName()->Data(); cerr << endl << ">> will try the estimated one: forward t0 = " << runData->GetT0BinEstimated(forwardHistoNo[i]); cerr << endl << ">> NO WARRANTY THAT THIS OK!! For instance for LEM this is almost for sure rubbish!"; cerr << endl; @@ -575,7 +575,7 @@ Bool_t PRunAsymmetry::PrepareData() fRunInfo->SetT0Bin(fT0s[2*i+1], 2*i+1); cerr << endl << ">> PRunAsymmetry::PrepareData(): **WARRNING** NO t0's found, neither in the run data nor in the msr-file!"; - cerr << endl << ">> run: " << fRunInfo->GetRunName(); + cerr << endl << ">> run: " << fRunInfo->GetRunName()->Data(); cerr << endl << ">> will try the estimated one: backward t0 = " << runData->GetT0BinEstimated(backwardHistoNo[i]); cerr << endl << ">> NO WARRANTY THAT THIS OK!! For instance for LEM this is almost for sure rubbish!"; cerr << endl; @@ -661,7 +661,7 @@ Bool_t PRunAsymmetry::PrepareData() fRunInfo->SetAddT0Bin(t0Add[2*j], i-1, 2*j); cerr << endl << ">> PRunAsymmetry::PrepareData(): **WARRNING** NO t0's found, neither in the run data nor in the msr-file!"; - cerr << endl << ">> run: " << fRunInfo->GetRunName(i); + cerr << endl << ">> run: " << fRunInfo->GetRunName(i)->Data(); cerr << endl << ">> will try the estimated one: forward t0 = " << addRunData->GetT0BinEstimated(forwardHistoNo[j]); cerr << endl << ">> NO WARRANTY THAT THIS OK!! For instance for LEM this is almost for sure rubbish!"; cerr << endl; @@ -673,7 +673,7 @@ Bool_t PRunAsymmetry::PrepareData() fRunInfo->SetAddT0Bin(t0Add[2*j+1], i-1, 2*j+1); cerr << endl << ">> PRunAsymmetry::PrepareData(): **WARRNING** NO t0's found, neither in the run data nor in the msr-file!"; - cerr << endl << ">> run: " << fRunInfo->GetRunName(i); + cerr << endl << ">> run: " << fRunInfo->GetRunName(i)->Data(); cerr << endl << ">> will try the estimated one: backward t0 = " << runData->GetT0BinEstimated(backwardHistoNo[j]); cerr << endl << ">> NO WARRANTY THAT THIS OK!! For instance for LEM this is almost for sure rubbish!"; cerr << endl; diff --git a/src/classes/PRunSingleHisto.cpp b/src/classes/PRunSingleHisto.cpp index bb56e158..3a6f11c4 100644 --- a/src/classes/PRunSingleHisto.cpp +++ b/src/classes/PRunSingleHisto.cpp @@ -656,7 +656,7 @@ Bool_t PRunSingleHisto::PrepareData() fRunInfo->SetT0Bin(fT0s[i], i); // keep value for the msr-file cerr << endl << ">> PRunSingleHisto::PrepareData(): **WARRNING** NO t0's found, neither in the run data nor in the msr-file!"; - cerr << endl << ">> run: " << fRunInfo->GetRunName(); + cerr << endl << ">> run: " << fRunInfo->GetRunName()->Data(); cerr << endl << ">> will try the estimated one: forward t0 = " << runData->GetT0BinEstimated(histoNo[i]); cerr << endl << ">> NO WARRANTY THAT THIS OK!! For instance for LEM this is almost for sure rubbish!"; cerr << endl; @@ -722,7 +722,7 @@ Bool_t PRunSingleHisto::PrepareData() fRunInfo->SetAddT0Bin(t0Add[j], i-1, j); // keep value for the msr-file cerr << endl << ">> PRunSingleHisto::PrepareData(): **WARRNING** NO t0's found, neither in the run data nor in the msr-file!"; - cerr << endl << ">> run: " << fRunInfo->GetRunName(); + cerr << endl << ">> run: " << fRunInfo->GetRunName(i)->Data(); cerr << endl << ">> will try the estimated one: forward t0 = " << addRunData->GetT0BinEstimated(histoNo[j]); cerr << endl << ">> NO WARRANTY THAT THIS OK!! For instance for LEM this is almost for sure rubbish!"; cerr << endl;