fixed some 'int' vs 'unsigned int' warnings
This commit is contained in:
@ -73,7 +73,7 @@ PRunBase::PRunBase(PMsrHandler *msrInfo, PRunDataHandler *rawData, unsigned int
|
|||||||
{
|
{
|
||||||
fValid = true;
|
fValid = true;
|
||||||
|
|
||||||
fRunNo = runNo;
|
fRunNo = static_cast<int>(runNo);
|
||||||
if ((runNo < 0) || (runNo > msrInfo->GetMsrRunList()->size())) {
|
if ((runNo < 0) || (runNo > msrInfo->GetMsrRunList()->size())) {
|
||||||
fRunInfo = 0;
|
fRunInfo = 0;
|
||||||
return;
|
return;
|
||||||
|
@ -526,9 +526,9 @@ double PTheory::Func(register double t, const vector<double>& paramValues, const
|
|||||||
*
|
*
|
||||||
* \param name
|
* \param name
|
||||||
*/
|
*/
|
||||||
unsigned int PTheory::SearchDataBase(TString name)
|
int PTheory::SearchDataBase(TString name)
|
||||||
{
|
{
|
||||||
unsigned int idx = THEORY_UNDEFINED;
|
int idx = THEORY_UNDEFINED;
|
||||||
|
|
||||||
for (unsigned int i=0; i<THEORY_MAX; i++) {
|
for (unsigned int i=0; i<THEORY_MAX; i++) {
|
||||||
if (!name.CompareTo(fgTheoDataBase[i].fName, TString::kIgnoreCase) ||
|
if (!name.CompareTo(fgTheoDataBase[i].fName, TString::kIgnoreCase) ||
|
||||||
@ -557,7 +557,7 @@ void PTheory::MakeCleanAndTidyTheoryBlock(PMsrLines *fullTheoryBlock)
|
|||||||
char substr[256];
|
char substr[256];
|
||||||
TObjArray *tokens = 0;
|
TObjArray *tokens = 0;
|
||||||
TObjString *ostr;
|
TObjString *ostr;
|
||||||
unsigned int idx = THEORY_UNDEFINED;
|
int idx = THEORY_UNDEFINED;
|
||||||
|
|
||||||
for (unsigned int i=1; i<fullTheoryBlock->size(); i++) {
|
for (unsigned int i=1; i<fullTheoryBlock->size(); i++) {
|
||||||
// get the line to be prettyfied
|
// get the line to be prettyfied
|
||||||
@ -580,7 +580,7 @@ void PTheory::MakeCleanAndTidyTheoryBlock(PMsrLines *fullTheoryBlock)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check if theory is indeed defined. This should not be necessay at this point but ...
|
// check if theory is indeed defined. This should not be necessay at this point but ...
|
||||||
if (idx == (unsigned int)THEORY_UNDEFINED)
|
if (idx == THEORY_UNDEFINED)
|
||||||
continue;
|
continue;
|
||||||
// check that there enough tokens. This should not be necessay at this point but ...
|
// check that there enough tokens. This should not be necessay at this point but ...
|
||||||
if ((unsigned int)tokens->GetEntries() < fgTheoDataBase[idx].fNoOfParam + 1)
|
if ((unsigned int)tokens->GetEntries() < fgTheoDataBase[idx].fNoOfParam + 1)
|
||||||
|
@ -77,7 +77,7 @@ class PRunBase
|
|||||||
protected:
|
protected:
|
||||||
bool fValid;
|
bool fValid;
|
||||||
|
|
||||||
unsigned int fRunNo; ///< number of the run within the msr file
|
int fRunNo; ///< number of the run within the msr file
|
||||||
PMsrHandler *fMsrInfo; ///< msr-file handler
|
PMsrHandler *fMsrInfo; ///< msr-file handler
|
||||||
PMsrRunStructure *fRunInfo; ///< run info used to filter out needed infos for the run
|
PMsrRunStructure *fRunInfo; ///< run info used to filter out needed infos for the run
|
||||||
PRunDataHandler *fRawData; ///< holds the raw run data
|
PRunDataHandler *fRawData; ///< holds the raw run data
|
||||||
|
@ -166,7 +166,7 @@ class PTheory
|
|||||||
virtual double Func(register double t, const vector<double>& paramValues, const vector<double>& funcValues) const;
|
virtual double Func(register double t, const vector<double>& paramValues, const vector<double>& funcValues) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual unsigned int SearchDataBase(TString name);
|
virtual int SearchDataBase(TString name);
|
||||||
virtual void MakeCleanAndTidyTheoryBlock(PMsrLines* fullTheoryBlock);
|
virtual void MakeCleanAndTidyTheoryBlock(PMsrLines* fullTheoryBlock);
|
||||||
|
|
||||||
virtual double Asymmetry(const vector<double>& paramValues, const vector<double>& funcValues) const;
|
virtual double Asymmetry(const vector<double>& paramValues, const vector<double>& funcValues) const;
|
||||||
|
Reference in New Issue
Block a user