FlyoDoc_2011 Pisa 2011 by GmP --- 011

flyopunta/src/src_main/parm.h

00001 /***************************************************************************
00002                           parm.h  -  description
00003                              -------------------
00004     begin                : Sun Nov 26 2000
00005     copyright            : (C) 2000 by Giuseppe m Pierazzini
00006     email                : pierazzini@unipi.it
00007  ***************************************************************************
00008  *                                                                         *
00009  *   NA48  titles for simulation program.                                  *
00010  *                                                                         *
00011  ***************************************************************************/
00012 #ifndef PARM_H
00013 #define PARM_H
00014 
00020 #include<iostream>
00021 #include<fstream>
00022 #include<iomanip>
00023 #include<string>
00024 #include<cstring>
00025 #include<cstdio>
00026 #include<cstdlib>
00027 #include<ctime>
00028 #include<cmath>
00029 #include <iosfwd>
00030 #include <sstream>
00031 
00032 // CP violation  program...... in Obj!!     New version  3.01.2005
00033 //definizioni
00034 
00035 #include "gvet.h"
00036 
00037 
00038 namespace GmpConst
00039 {
00043         const double PiGreco =3.14159265358979323846;
00044         const double DuePiGreco= 2.*PiGreco;
00045         const double EPSI = 1.00e-64;
00046         const double SQRT2=1.414213562;
00047         const double SINCOS45=1./SQRT2;
00048 
00049 }
00050 
00051 #if defined(MAIN)
00052 // in-out operators definitions
00053 std::ofstream Gout;
00054 std::ofstream Wrout;
00055 std::ifstream *Cardcur;
00056 int WrtNt=0,WRTALL=10,Wrtype=-1,Debugon=1, Dbginput=0;
00057 int gargc;
00058 char *OutDir=0;
00059 char **gargv;
00060 char OutGn[256],*Cardin=0;
00061 std::string Wrt_type_out="null";
00062 #endif
00063 
00064 #if !defined(MAIN)
00065 extern std::ofstream Gout;
00066 extern std::ofstream Wrout;
00067 extern std::ifstream *Cardcur;
00068 extern int WrtNt,WRTALL,Wrtype,Debugon, Dbginput;
00069 extern char *OutDir;
00070 extern int gargc;
00071 extern char **gargv;
00072 extern char OutGn[256],*Cardin;
00073 extern std::string Wrt_type_out;
00074 #endif
00075 
00076 
00077 
00078 // free  Function definition
00079 double  ran();
00080 double  Pran();
00081 double  Pgauss ( double s, double c );
00082 void    Set_Pran();
00083 void    Set_PranEv();
00084 
00085 
00086 
00087 void     File_Manager();
00088 void     Legge_input_file ( const char * );
00089 void     check_file_name ( const char *,std::string &);
00090 double   Fspace ( double, double, double );
00091 void     Commenta ( const char * );
00092 void     Sommario_Input_Data();
00093 
00094 void     flyoinit();
00095 int      flyoevento();
00096 void     flyosimuladev();
00097 void     flyoend();
00098 
00099 
00100 #if defined(MAIN)
00101 // definition of flyo driving parameters with the default values.
00102 double Beg_fid = 0.0, End_fid = 100000.0, Zona=30000.;
00103 int Errori=0, Scatter=0, Perdita=0;
00104 int  Correla=0,Wtrk=0;
00105 int Mostra=1;
00106 int colpo=0, visto = 0,debaggati=0;
00107 gvet Lab_Zero ( -999999.,-999999.,-999999. );
00108 int Pipeline=0,Trigger_low_on=0;
00109 int GasBegin=0;
00110 
00111 #endif
00112 
00113 #if !defined(MAIN)
00114 extern int Errori,Scatter, Perdita;
00115 extern double Beg_fid, End_fid, Zona;
00116 extern int Correla,Wtrk;
00117 extern int Mostra;
00118 extern int colpo, visto,debaggati;
00119 extern gvet Lab_Zero;
00120 extern int Pipeline, Trigger_low_on;
00121 extern int GasBegin;
00122 #endif
00123 
00124 
00125 #endif
00126 
00127 
00128 
00129 
00130 
00131 
00132 
00133 
00134 
00135 
00136 
 All Classes Namespaces Files Functions Variables