FlyoDoc_2011 Pisa 2011 by GmP --- 011

flyopunta/src/src_reaz/reagas.h

00001 /***************************************************************************
00002  *   Copyright (C) 2009 by giuseppe Pierazzini                                      *
00003  *   giuseppe@pierazzini.it                                                               *
00004  *                                                                         *
00005  *                                                                         *
00006  *   This program is distributed in the hope that it will be useful,       *
00007  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00008  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                  *
00009  *                                                                         *
00010  *  Dipartimento di Fisica  E.Fermi / INFN Pisa Italy                      *
00011  ***************************************************************************/
00012 #ifndef REAGAS_H
00013 #define REAGAS_H
00014 #include "particella.h"
00015 
00025 #include<iostream>
00026 #include<fstream>
00027 #include "part_db.h"
00028 using namespace std;
00029 struct NataInGas
00030 {
00031     Part_db *mp;     //puntatore alla particella del data base flyo standard
00032     float px,py,pz,massa;
00033 };
00034 
00035 struct Frammenti
00036 {
00037     int  Np;
00038     NataInGas *Pgas;
00039 };
00040 
00041 //==========Titoli per le reazioni su gas
00042 
00043 class Reagas
00044 {
00045     int Nug,rec,gletti;
00046     Frammenti *Gascls;  //puntatore all' array dei cluster di particelle...(da fluka)
00047 
00048 public:
00049 
00050 
00051     Reagas();
00052 
00053     ~Reagas();
00054     int idnow,np_gas,npp_gas;
00055 
00056 
00057     void Read();
00058     Particella *Get_GasInt ( int ,Particella * );
00059     void Print ( int,int );
00060 
00061 };
00062 
00063 #if defined(MAINFLYO)
00064 Reagas *Gasdati=0;
00065 int GasIdo=0;
00066 int ClsG=0;
00067 int BloccoGas=100000;
00068 std::ifstream Card_gas;
00069 
00070 
00071 #endif
00072 #if !defined(MAINFLYO)
00073 
00074 extern Reagas *Gasdati;
00075 extern int GasIdo;
00076 extern int ClsG;
00077 extern int BloccoGas;
00078 extern std::ifstream Card_gas;
00079 #endif
00080 
00081 
00082 #endif
00083 
00084 
00085 
00086 
 All Classes Namespaces Files Functions Variables