Project

General

Profile

Actions

Development #1379

closed

Development #1353: Code cleanup for OCT19

Code cleanup: rich/qa

Added by Volker Friese almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/16/2019
Due date:
09/27/2019
% Done:

100%

Estimated time:
1.00 h

Description

Compiler warnings:


/home/uhlig/cbm/release/oct19/rich/qa/CbmRichGeoOpt.cxx: In member function 'void CbmRichGeoOpt::HitsAndPointsWithRef()':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/rich/qa/CbmRichGeoOpt.cxx:433:7: warning: 'ElTheta' may be used uninitialized in this function [-Wmaybe-uninitialized]
       if(ElTheta<=25){
       ^
/home/uhlig/cbm/release/oct19/rich/qa/CbmRichGeoOpt.cxx: In member function 'void CbmRichGeoOpt::HitsAndPoints()':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/rich/qa/CbmRichGeoOpt.cxx:314:7: warning: 'ElTheta' may be used uninitialized in this function [-Wmaybe-uninitialized]
       if(ElTheta<=25){
       ^

/home/uhlig/cbm/release/oct19/rich/qa/CbmRichGeoTestOpt.cxx: In member function 'void CbmRichGeoTestOpt::DrawMeanRms(CbmRichGeoTestOptFileEnum, const string&, CbmRichGeoTestOptHistEnum, const string&, double, double, int, int)':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/rich/qa/CbmRichGeoTestOpt.cxx:151:34: warning: 'refValue' may be used uninitialized in this function [-Wmaybe-uninitialized]
     DrawReferenceLineH1(refValue);

/home/uhlig/cbm/release/oct19/rich/qa/CbmRichUrqmdTest.cxx: In member function 'void CbmRichUrqmdTest::PmtXYSource()':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/rich/qa/CbmRichUrqmdTest.cxx:412:49: warning: 'motherPdg' may be used uninitialized in this function [-Wmaybe-uninitialized]
                 if (motherId != -1 && pdg == 11 && motherPdg == 22){
                                                 ^
/home/uhlig/cbm/release/oct19/rich/qa/CbmRichUrqmdTest.cxx: In member function 'void CbmRichUrqmdTest::NofHitsAndPoints()':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/rich/qa/CbmRichUrqmdTest.cxx:361:49: warning: 'motherPdg' may be used uninitialized in this function [-Wmaybe-uninitialized]
                 if (motherId != -1 && pdg == 11 && motherPdg != 22) fHM->H1("fh_nof_points_per_event")->Fill(2);
                                                 ^
/home/uhlig/cbm/release/oct19/rich/qa/CbmRichUrqmdTest.cxx: In member function 'void CbmRichUrqmdTest::NofRings()':
[CTest: warning matched] /home/uhlig/cbm/release/oct19/rich/qa/CbmRichUrqmdTest.cxx:267:49: warning: 'motherPdg' may be used uninitialized in this function [-Wmaybe-uninitialized]
                 if (motherId != -1 && pdg == 11 && motherPdg != 22) fHM->H1("fh_secel_mom")->Fill(mom);
                                                 ^
Actions #1

Updated by Volker Friese almost 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Fixed.

Actions

Also available in: Atom PDF