32       fLogger->Fatal(
MESSAGE_ORIGIN, 
"\033[5m\033[31m Failed to open '%s' field!  \033[0m", 
 
   40       fLogger->Fatal(
MESSAGE_ORIGIN, 
"\033[5m\033[31m Failed to import '%s' field!  \033[0m", 
 
   57   std::cout << 
"dirName = " << dirName << std::endl;
 
   59   DIR *curr_dir = opendir(dirName.Data());
 
   61     fLogger->Fatal(
MESSAGE_ORIGIN, 
"\033[5m\033[31m Directory '%s' does not exist!  \033[0m", 
 
   66     struct dirent *curr_file;
 
   67     int extention_len = strlen(
".dat");
 
   69     while((curr_file = readdir(curr_dir))) {
 
   70       int len = strlen(curr_file->d_name);    
 
   72         if (len >= extention_len && 
 
   73             !memcmp(curr_file->d_name + len - extention_len, 
 
   74                     ".dat", extention_len))
 
   77     TString fileName = dirName + 
"/" + curr_file->d_name;
 
   82     std::cout << 
"Getting ready to read in the text file with the field information" << std::endl;
 
   86     fin.open(fileName.Data());
 
   88       printf(
"-E- EicBeamLineElementGrad::Initialize() -> fail to open '%s' file!\n", fileName.Data());
 
   92     std::cout << 
"its open..." << std::endl;
 
   96     double mCenterX, mCenterY, mCenterZ, mRadius, mLength, mAngle, mB, mGradient;
 
  101     for(
int i=0; i<6; i++)
 
  103         fin.getline(buffer, 1024);
 
  111     std::cout << 
"extract the information in the file" << std::endl;
 
  114         if(fin >> mName >> mCenterZ >> mCenterX >> mCenterY >> mRadius >> mLength >> mAngle >> mB >> mGradient)
 
  117       printf(
"Adding beam line element gradient '%s'\n", mName);
 
  118       printf(
"%15.10f %15.10f %15.10f %15.10f %15.10f %15.10f %15.10f %15.10f\n", 
 
  119        mCenterX, mCenterY, mCenterZ, mRadius, mLength, mAngle, mB, mGradient);
 
  173       fLogger->Fatal(
MESSAGE_ORIGIN, 
"\033[5m\033[31m Failed to initialize '%s' field map!  \033[0m", 
 
  198   for(
unsigned iq=0; iq<3; iq++)
 
  204   if (!xx || !B || !
mMaps.size()) 
return -1;
 
  218       for(
unsigned iq=0; iq<3; iq++)