00001 #include "Bin.h"
00002 #include "Stiostream.h"
00003 #ifndef ST_NO_NAMESPACES
00004 using namespace std;
00005 #endif
00006 using namespace Bin;
00007
00008
00009 void Bin::initPtAry(TArrayD* ary, int type)
00010 {
00011 double ptAry0[]=
00012 {
00013 1.6, 1.8, 2.0, 2.25, 2.5, 2.75, 3.0, 3.3, 3.6, 3.9,
00014 4.2, 4.5, 4.8, 5.1, 5.5, 6.0, 6.5, 7.0, 8.0, 9.0,
00015 10.0, 12.0, 14.0
00016 };
00017 int n0 = (int)sizeof(ptAry0)/sizeof(double);
00018
00019 double ptAry1[]=
00020 {
00021 1.6, 1.7, 1.8, 1.9, 2.0, 2.2, 2.4, 2.6, 2.8,
00022 3.0, 3.25, 3.5, 3.75, 4.0, 4.25, 4.5, 4.75, 5.0,
00023 5.25, 5.5, 5.75, 6.0, 7.0, 8.0, 9.0, 10.0, 12.0, 14.0, 16.0
00024 };
00025 int n1 = (int)sizeof(ptAry1)/sizeof(double);
00026 switch(type){
00027 case 0: ary->Set(n0,ptAry0); break;
00028 case 1: ary->Set(n1,ptAry1); break;
00029 default:
00030 cout << "ERROR. type " << type << "out of range" << endl; exit(1);
00031 }
00032
00033 }