Changeset 1091 in Sophya for trunk/SophyaPI/PIext/basexecut.cc


Ignore:
Timestamp:
Jul 26, 2000, 3:15:43 PM (25 years ago)
Author:
ercodmgr
Message:

Histos/Hprof/Histo2D en r_8 cmv 26/7/00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/basexecut.cc

    r1068 r1091  
    210210else if (kw == "newh1d") {
    211211  if (tokens.size() < 4) { cout << "Usage: newh1d name xmin xmax nbin" << endl; return(0); }
    212   int nbx;
    213   float xmin, xmax;
    214   nbx = 100;
    215   xmin = 0.;  xmax = 1.;
     212  int_4 nbx = 100;
     213  r_8 xmin = 0., xmax = 1.;
    216214  nbx = atoi(tokens[3].c_str());
    217215  xmin = atof(tokens[1].c_str());   xmax = atof(tokens[2].c_str());
     
    224222    return(0);
    225223    }
    226   int nbx, nby;
    227   float xmin, xmax;
    228   float ymin, ymax;
    229   nbx = nby = 50;
    230   xmin = 0.;  xmax = 1.;
    231   ymin = 0.;  ymax = 1.;
     224  int_4 nbx = 50, nby = 50;
     225  r_8 xmin = 0., xmax = 1.;
     226  r_8 ymin = 0., ymax = 1.;
    232227  nbx = atoi(tokens[3].c_str());
    233228  nby = atoi(tokens[6].c_str());
     
    240235  if (tokens.size() < 4)
    241236    { cout << "Usage: newprof[e] name xmin xmax nbin [ymin ymax]" << endl; return(0); }
    242   int nbx;
    243   float xmin, xmax, ymin = 1., ymax = -1.;
     237  int_4 nbx = 100;
     238  r_8 xmin = 0., xmax = 1., ymin = 1., ymax = -1.;
    244239  if(tokens.size() > 5)
    245240    {ymin = atof(tokens[4].c_str());   ymax = atof(tokens[5].c_str());}
    246   nbx = 100;
    247   xmin = 0.;  xmax = 1.;
    248241  nbx = atoi(tokens[3].c_str());
    249242  xmin = atof(tokens[1].c_str());   xmax = atof(tokens[2].c_str());
     
    546539  while (tokens.size() < 8) tokens.push_back("");
    547540  srvo->ProjectHProf(tokens[1], tokens[2], tokens[3], tokens[4], tokens[5], tokens[0],
    548                     tokens[6], tokens[7] );
     541                     tokens[6], tokens[7] );
    549542  }
    550543
Note: See TracChangeset for help on using the changeset viewer.