flavour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
script2.cpp
Go to the documentation of this file.
1 #include <iostream>
2 #include <fstream>
3 
4 
5 using namespace std;
6 typedef unsigned int uint;
7 int main(){
8 
9 string g[3]={"0","1","2"};
10 string u[3]={"0","1"};
11 
12 string sg[3]={"1st","2nd","3rd"};
13 string su[3]={"Down","Up"};
14 
15 for(uint qup=0;qup<2;qup++){
16 cout<<"\\pagebreak\n";
17 cout<<"\\begin{figure}[!htb]\n\\centering"<<endl;
18 for(uint gL=0;gL<3;gL++)
19 for(uint lup=0;lup<2;lup++){
20 cout<<"\\begin{tikzpicture}[every node/.style={anchor=south west,inner sep=0pt},"<<endl;
21 cout<<"x=0.307692307692\\textwidth,y=0.230769230769\\textwidth,]"<<endl;
22 
23 for(uint gQ=0;gQ<3;gQ++)
24 {
25  char name[5]="0000";
26  name[0]+=gL;
27  name[1]+=gQ;
28  name[2]+=lup;
29  name[3]+=qup;
30 
31  ifstream ff((string("pdfs/T_BD/maxs_")+string(name)+string(".out")).c_str());
32  if(!ff.is_open()){
33  cout<<"ERROR: maxs_*.out not found"<<endl;
34  return 1;
35  }
36  int tx=0, ty=0;
37  double xi=0,xxi=0.26,xw=0.384615384615,yi=0.25;
38  if(gQ>0) {xi=0.24+gQ; xxi+=gQ; tx=192; xw=0.307692307692;}
39  if(gL<2 || lup<1) {ty=144; yi=0.01;}
40 
41  double McH=0,MR=0,MI=0;
42  ff>>McH>>MR>>MI;
43  ff.close();
44  int mcH(McH+0.5),mR(MR+0.5),mI(MI+0.5);
45 
46  cout<<"\\node at ("<<xi<<",0) {\\includegraphics[trim="<<tx<<" "<<ty<<" 0 0,clip,"<<endl;
47  cout<<"width="<<xw<<"\\textwidth]{../pdfs/T_BD/pdf_"<<name<<".png}};"<<endl;
48  cout<<"\\node at ("<<xxi<<","<<yi<<") {\\begin{minipage}{0.1\\textwidth}{"<<endl;
49  cout<<"\\scriptsize \\begin{align*} M_{H^+}&>"<<mcH<<"\\\\[-4pt]"<<endl;
50  cout<<"M_{R^0}&>"<<mR<<"\\\\[-4pt]"<<endl;
51  cout<<"M_{I^0}&>"<<mI<<" (GeV)\\end{align*}}\\end{minipage}};"<<endl;
52 
53 
54 }
55 cout<<"\\end{tikzpicture}\\\\"<<endl;
56 }
57 cout<<"\\caption{BGL Quarks: gen ";
58 cout<<"; Leptons: gen FCNC chargedlepton/neutrino on the left/right.}"<<endl;
59 cout<<"\\end{figure}"<<endl<<endl;
60 }
61 
62 
63  for(uint qup=0;qup<2;qup++)
64  for(uint lup=0;lup<2;lup++)
65  for(uint gL=0;gL<3;gL++)
66  for(uint gQ=0;gQ<3;gQ++){
67  cout<<"export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH && ./teste "<<gL<<" "<<gQ<<" "<<lup<<" "<<qup;
68  cout<<" > "<<"teste"<<gL<<gQ<<lup<<qup<<".out"<<endl;
69  }
70 
71  for(uint lup=0;lup<2;lup++)
72  for(uint qup=0;qup<2;qup++)
73  for(uint gL=0;gL<3;gL++)
74  for(uint gQ=0;gQ<3;gQ++){
75  cout<<"./update "<<gL<<" "<<gQ<<" "<<lup<<" "<<qup;
76  cout<<" > "<<"teste"<<gL<<gQ<<lup<<qup<<".out"<<endl;
77  }
78 return 0;
79 }
Definition: multivector.h:4
unsigned int uint
Definition: script.cpp:4
int main()
Definition: script2.cpp:7
unsigned int uint
Definition: script2.cpp:6