corrected warning messages

This commit is contained in:
nemu 2009-12-09 16:34:08 +00:00
parent a3b7a10f49
commit b793c76e58

View File

@ -132,7 +132,7 @@ PNonMusrRawRunData::~PNonMusrRawRunData()
void PNonMusrRawRunData::SetLabel(const UInt_t idx, const TString str) void PNonMusrRawRunData::SetLabel(const UInt_t idx, const TString str)
{ {
if (idx >= fLabels.size()) { if (idx >= fLabels.size()) {
cerr << endl << "**WARNING** PNonMusrRawRunData::SetLabel: idx=" << idx << " is out of range (0.." << fLabels.size() << ")"; cerr << endl << "**WARNING** PNonMusrRawRunData::SetLabel: idx=" << idx << " is out of range [0," << fLabels.size() << "[.";
cerr << endl; cerr << endl;
return; return;
} }
@ -152,7 +152,7 @@ void PNonMusrRawRunData::SetLabel(const UInt_t idx, const TString str)
void PNonMusrRawRunData::AppendSubData(const UInt_t idx, const Double_t dval) void PNonMusrRawRunData::AppendSubData(const UInt_t idx, const Double_t dval)
{ {
if (idx >= fData.size()) { if (idx >= fData.size()) {
cerr << endl << "**WARNING** PNonMusrRawRunData::AppendSubData: idx=" << idx << " is out of range (0.." << fData.size() << ")"; cerr << endl << "**WARNING** PNonMusrRawRunData::AppendSubData: idx=" << idx << " is out of range [0," << fData.size() << "[.";
cerr << endl; cerr << endl;
return; return;
} }
@ -172,7 +172,7 @@ void PNonMusrRawRunData::AppendSubData(const UInt_t idx, const Double_t dval)
void PNonMusrRawRunData::AppendSubErrData(const UInt_t idx, const Double_t dval) void PNonMusrRawRunData::AppendSubErrData(const UInt_t idx, const Double_t dval)
{ {
if (idx >= fErrData.size()) { if (idx >= fErrData.size()) {
cerr << endl << "**WARNING** PNonMusrRawRunData::AppendSubErrData: idx=" << idx << " is out of range (0.." << fErrData.size() << ")"; cerr << endl << "**WARNING** PNonMusrRawRunData::AppendSubErrData: idx=" << idx << " is out of range [0," << fErrData.size() << "[.";
cerr << endl; cerr << endl;
return; return;
} }
@ -230,7 +230,7 @@ PRawRunData::~PRawRunData()
const Double_t PRawRunData::GetTemperature(const UInt_t idx) const Double_t PRawRunData::GetTemperature(const UInt_t idx)
{ {
if (idx >= fTemp.size()) { if (idx >= fTemp.size()) {
cerr << endl << "**WARNING** PRawRunData::GetTemperature: idx=" << idx << " is out of range (0.." << fTemp.size() << ")."; cerr << endl << "**WARNING** PRawRunData::GetTemperature: idx=" << idx << " is out of range [0," << fTemp.size() << "[.";
cerr << endl; cerr << endl;
return PMUSR_UNDEFINED; return PMUSR_UNDEFINED;
} }
@ -248,7 +248,7 @@ const Double_t PRawRunData::GetTemperature(const UInt_t idx)
const Double_t PRawRunData::GetTempError(const UInt_t idx) const Double_t PRawRunData::GetTempError(const UInt_t idx)
{ {
if (idx >= fTemp.size()) { if (idx >= fTemp.size()) {
cerr << endl << "**WARNING** PRawRunData::GetTempError: idx=" << idx << " is out of range (0.." << fTemp.size() << ")."; cerr << endl << "**WARNING** PRawRunData::GetTempError: idx=" << idx << " is out of range [0," << fTemp.size() << "[.";
cerr << endl; cerr << endl;
return PMUSR_UNDEFINED; return PMUSR_UNDEFINED;
} }
@ -266,7 +266,7 @@ const Double_t PRawRunData::GetTempError(const UInt_t idx)
const Double_t PRawRunData::GetRingAnode(const UInt_t idx) const Double_t PRawRunData::GetRingAnode(const UInt_t idx)
{ {
if (idx >= fRingAnode.size()) { if (idx >= fRingAnode.size()) {
cerr << endl << "**WARNING** PRawRunData::GetRingAnode: idx=" << idx << " is out of range (0.." << fRingAnode.size() << ")."; cerr << endl << "**WARNING** PRawRunData::GetRingAnode: idx=" << idx << " is out of range [0," << fRingAnode.size() << "[.";
cerr << endl; cerr << endl;
return PMUSR_UNDEFINED; return PMUSR_UNDEFINED;
} }
@ -284,7 +284,7 @@ const Double_t PRawRunData::GetRingAnode(const UInt_t idx)
const Int_t PRawRunData::GetT0(const UInt_t idx) const Int_t PRawRunData::GetT0(const UInt_t idx)
{ {
if (idx >= fT0s.size()) { if (idx >= fT0s.size()) {
cerr << endl << "**WARNING** PRawRunData::GetT0: idx=" << idx << " is out of range (0.." << fT0s.size() << ")."; cerr << endl << "**WARNING** PRawRunData::GetT0: idx=" << idx << " is out of range [0," << fT0s.size() << "[.";
cerr << endl; cerr << endl;
return -1; return -1;
} }
@ -302,7 +302,7 @@ const Int_t PRawRunData::GetT0(const UInt_t idx)
const Int_t PRawRunData::GetT0Estimated(const UInt_t idx) const Int_t PRawRunData::GetT0Estimated(const UInt_t idx)
{ {
if (idx >= fT0Estimated.size()) { if (idx >= fT0Estimated.size()) {
cerr << endl << "**WARNING** PRawRunData::GetT0Estimated: idx=" << idx << " is out of range (0.." << fT0Estimated.size() << ")."; cerr << endl << "**WARNING** PRawRunData::GetT0Estimated: idx=" << idx << " is out of range [0," << fT0Estimated.size() << "[.";
cerr << endl; cerr << endl;
return -1; return -1;
} }
@ -320,7 +320,7 @@ const PIntPair PRawRunData::GetBkgBin(const UInt_t idx)
PIntPair pair(-1, -1); PIntPair pair(-1, -1);
if (idx >= fBkgBin.size()) { if (idx >= fBkgBin.size()) {
cerr << endl << "**WARNING** PRawRunData::GetBkgBin: idx=" << idx << " is out of range (0.." << fBkgBin.size() << ")."; cerr << endl << "**WARNING** PRawRunData::GetBkgBin: idx=" << idx << " is out of range [0," << fBkgBin.size() << "[.";
cerr << endl; cerr << endl;
return pair; return pair;
} }
@ -338,7 +338,7 @@ const PIntPair PRawRunData::GetGoodDataBin(const UInt_t idx)
PIntPair pair(-1, -1); PIntPair pair(-1, -1);
if (idx >= fGoodDataBin.size()) { if (idx >= fGoodDataBin.size()) {
cerr << endl << "**WARNING** PRawRunData::GetGoodDataBin: idx=" << idx << " is out of range (0.." << fGoodDataBin.size() << ")."; cerr << endl << "**WARNING** PRawRunData::GetGoodDataBin: idx=" << idx << " is out of range [0," << fGoodDataBin.size() << "[.";
cerr << endl; cerr << endl;
return pair; return pair;
} }
@ -354,7 +354,7 @@ const PIntPair PRawRunData::GetGoodDataBin(const UInt_t idx)
const PDoubleVector* PRawRunData::GetDataBin(const UInt_t idx) const PDoubleVector* PRawRunData::GetDataBin(const UInt_t idx)
{ {
if (idx >= fDataBin.size()) { if (idx >= fDataBin.size()) {
cerr << endl << "**WARNING** PRawRunData::GetDataBin: idx=" << idx << " is out of range (0.." << fDataBin.size() << ")."; cerr << endl << "**WARNING** PRawRunData::GetDataBin: idx=" << idx << " is out of range [0," << fDataBin.size() << "[.";
cerr << endl; cerr << endl;
return 0; return 0;
} }
@ -429,13 +429,13 @@ void PRawRunData::SetTempError(const UInt_t idx, const Double_t errTemp)
void PRawRunData::SetDataBin(const UInt_t histoNo, const UInt_t bin, const Double_t dval) void PRawRunData::SetDataBin(const UInt_t histoNo, const UInt_t bin, const Double_t dval)
{ {
if (histoNo > fDataBin.size()) { if (histoNo > fDataBin.size()) {
cerr << endl << "**WARNING** PRawRunData::SetDataBin: histoNo=" << histoNo << " is out of range (0.." << fDataBin.size() << ")."; cerr << endl << "**WARNING** PRawRunData::SetDataBin: histoNo=" << histoNo << " is out of range [0," << fDataBin.size() << "].";
cerr << endl; cerr << endl;
return; return;
} }
if (bin > fDataBin[histoNo].size()) { if (bin > fDataBin[histoNo].size()) {
cerr << endl << "**WARNING** PRawRunData::SetDataBin: bin=" << bin << " is out of range (0.." << fDataBin[histoNo].size() << ")."; cerr << endl << "**WARNING** PRawRunData::SetDataBin: bin=" << bin << " is out of range [0," << fDataBin[histoNo].size() << "].";
cerr << endl; cerr << endl;
return; return;
} }
@ -456,13 +456,13 @@ void PRawRunData::SetDataBin(const UInt_t histoNo, const UInt_t bin, const Doubl
void PRawRunData::AddDataBin(const UInt_t histoNo, const UInt_t bin, const Double_t dval) void PRawRunData::AddDataBin(const UInt_t histoNo, const UInt_t bin, const Double_t dval)
{ {
if (histoNo > fDataBin.size()) { if (histoNo > fDataBin.size()) {
cerr << endl << "**WARNING** PRawRunData::AddDataBin: histoNo=" << histoNo << " is out of range (0.." << fDataBin.size() << ")."; cerr << endl << "**WARNING** PRawRunData::AddDataBin: histoNo=" << histoNo << " is out of range [0," << fDataBin.size() << "].";
cerr << endl; cerr << endl;
return; return;
} }
if (bin > fDataBin[histoNo].size()) { if (bin > fDataBin[histoNo].size()) {
cerr << endl << "**WARNING** PRawRunData::AddDataBin: bin=" << bin << " is out of range (0.." << fDataBin[histoNo].size() << ")."; cerr << endl << "**WARNING** PRawRunData::AddDataBin: bin=" << bin << " is out of range [0," << fDataBin[histoNo].size() << "].";
cerr << endl; cerr << endl;
return; return;
} }