#include <string>
#include <map>

#include "QFramework/TQSystematics.h"

namespace{
  std::map<TQSystematics::Status,std::string> names;

  bool populate(){
    names[TQSystematics::UNKNOWN]    = "unknown";            
    names[TQSystematics::ACTIVE]    = "OK";
    names[TQSystematics::ZERO]      = "zero";
    names[TQSystematics::DROPPED]   = "dropped";
    names[TQSystematics::FIXED]     = "fixed";
    names[TQSystematics::OVERSHOOT] = "overshoot";
    names[TQSystematics::ONESIDED] = "one-sided";
    names[TQSystematics::SYMMETRIZED] = "symmetrized";
    names[TQSystematics::INSIGNIFICANT] = "insignificant";
    names[TQSystematics::SMOOTHED] = "smoothed";
    return true;
  }
  
  bool _init = populate();
}

const char* TQSystematics::name(Status s){
  return ::names[s].c_str();
}

const char* TQSystematics::name(int s){
  return TQSystematics::name((Status)s);
}

  
      
 TQSystematics.cxx:1
 TQSystematics.cxx:2
 TQSystematics.cxx:3
 TQSystematics.cxx:4
 TQSystematics.cxx:5
 TQSystematics.cxx:6
 TQSystematics.cxx:7
 TQSystematics.cxx:8
 TQSystematics.cxx:9
 TQSystematics.cxx:10
 TQSystematics.cxx:11
 TQSystematics.cxx:12
 TQSystematics.cxx:13
 TQSystematics.cxx:14
 TQSystematics.cxx:15
 TQSystematics.cxx:16
 TQSystematics.cxx:17
 TQSystematics.cxx:18
 TQSystematics.cxx:19
 TQSystematics.cxx:20
 TQSystematics.cxx:21
 TQSystematics.cxx:22
 TQSystematics.cxx:23
 TQSystematics.cxx:24
 TQSystematics.cxx:25
 TQSystematics.cxx:26
 TQSystematics.cxx:27
 TQSystematics.cxx:28
 TQSystematics.cxx:29
 TQSystematics.cxx:30
 TQSystematics.cxx:31
 TQSystematics.cxx:32
 TQSystematics.cxx:33
 TQSystematics.cxx:34
 TQSystematics.cxx:35
 TQSystematics.cxx:36