flavour
scripttable.cpp File Reference
#include <iostream>
#include <fstream>
Include dependency graph for scripttable.cpp:

Go to the source code of this file.

Typedefs

typedef unsigned int uint
 

Functions

int main ()
 

Typedef Documentation

typedef unsigned int uint

Definition at line 5 of file scripttable.cpp.

Function Documentation

int main ( )

Definition at line 6 of file scripttable.cpp.

6  {
7 
8 string g[3]={"0","1","2"};
9 string u[3]={"0","1"};
10 
11 string sg[3]={"1st","2nd","3rd"};
12 string su[3]={"Down","Up"};
13 
14 for(uint qup=0;qup<2;qup++)
15 for(uint gL=0;gL<3;gL++)
16 {
17 for(uint lup=0;lup<2;lup++)
18 for(uint gQ=0;gQ<3;gQ++){
19  char name[5]="0000";
20  name[0]+=gL;
21  name[1]+=gQ;
22  name[2]+=lup;
23  name[3]+=qup;
24  ifstream ff((string("pdfs/T_BD/maxs_")+string(name)+string(".out")).c_str());
25  if(!ff.is_open()){
26  cout<<"ERROR: maxs_*.out not found"<<endl;
27  return 1;
28  }
29  double McH=0,MR=0,MI=0;
30  ff>>McH>>MR>>MI;
31  cout<<name<<" "<<McH<<" "<<MR<<" "<<MI<<endl;
32  ff.close();
33 }
34 cout<<endl;
35 }
36 return 0;
37 }
unsigned int uint
Definition: script.cpp:4