Skip to content
Snippets Groups Projects
  • Mark Jones's avatar
    7edb1e4b
    Modify THcFormula to properly handle kCutScaler and kCutNCalled. · 7edb1e4b
    Mark Jones authored
    This is a temporary fix for problem that arise when compiling on the
    ifarm machines. In the DefinedValue method when using
    kCutScaler and kCutNCalled the switch statement goes to the default
    case.
    
    On ifarm gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
    There are compiler warnings
     src/THcFormula.cxx: In member function 'virtual Double_t THcFormula::DefinedValue(Int_t)':
    src/THcFormula.cxx:131: warning: case label value exceeds maximum value for type
    src/THcFormula.cxx:134: warning: case label value exceeds maximum value for type
    One permenant fix would be to add kCutScaler and kCutNCalled to the
    enum EVariableType in THaFormula.h.
    7edb1e4b
    History
    Modify THcFormula to properly handle kCutScaler and kCutNCalled.
    Mark Jones authored
    This is a temporary fix for problem that arise when compiling on the
    ifarm machines. In the DefinedValue method when using
    kCutScaler and kCutNCalled the switch statement goes to the default
    case.
    
    On ifarm gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
    There are compiler warnings
     src/THcFormula.cxx: In member function 'virtual Double_t THcFormula::DefinedValue(Int_t)':
    src/THcFormula.cxx:131: warning: case label value exceeds maximum value for type
    src/THcFormula.cxx:134: warning: case label value exceeds maximum value for type
    One permenant fix would be to add kCutScaler and kCutNCalled to the
    enum EVariableType in THaFormula.h.