Changeset 1523


Ignore:
Timestamp:
09/13/02 11:56:39 (22 years ago)
Author:
blanch
Message:
Small modificaton to look for 0.01 phe/ns precision, when we have less than
1 phe/ns.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/include-MLons/MLons.cxx

    r1418 r1523  
    143143
    144144  Char_t filename_slt[256];
    145   Char_t cbright[5];
    146   Char_t cstoredbright[5];
     145  Char_t cbright[10];
     146  Char_t cstoredbright[10];
    147147
    148148  Int_t i;
     
    162162  //  NOTE: Same means, the smae inside the required precision!!!
    163163
    164   sprintf(cbright,"%3.1f",in_br);
    165   sprintf(cstoredbright,"%3.1f",MSLStored.GetBrightness());
    166 
     164  if(in_br<1.0){
     165    sprintf(cbright,"%4.2f",in_br);
     166    sprintf(cstoredbright,"%4.2f",MSLStored.GetBrightness());
     167  }
     168  else{
     169    sprintf(cbright,"%3.1f",in_br);
     170    sprintf(cstoredbright,"%3.1f",MSLStored.GetBrightness());
     171  }
    167172  if (strcmp(cbright, cstoredbright)){
    168173   
Note: See TracChangeset for help on using the changeset viewer.