// // Body for SimFlag class so that CINT recognizes its existence // #include "DbiSimFlag.hxx" #include "TMath.h" #include "TString.h" //_____________________________________________________________________________ Int_t COMET::DbiSimFlag::FullMask() { return kData|kDaqFakeData|kMC|kReroot; } //_____________________________________________________________________________ const Char_t* COMET::DbiSimFlag::AsString(SimFlag_t simFlag) { // static function to return mapping enum --> string switch (simFlag) { case kUnknown: return "Unknown"; break; case kData: return "Data"; break; case kDaqFakeData: return "DaqFakeData"; break; case kMC: return "MC"; break; case kReroot: return "Reroot"; break; default: return "?Data?"; break; } } //_____________________________________________________________________________ const Char_t* COMET::DbiSimFlag::MaskToString(Int_t mask) { // Return a mask of SimFlags as a string // // Result is a pointer to a statically allocated string. // User should copy this into their own buffer before calling // this method again. static Char_t newstring[255] = ""; Char_t* ptr = newstring; // start at the beginning *ptr = 0; // start with nothing Int_t fullmask = COMET::DbiSimFlag::FullMask(); for (Int_t i=0; i<32; i++) { COMET::DbiSimFlag::SimFlag_t flag = (COMET::DbiSimFlag::SimFlag_t)(1<0 && maxChar