FlyoDoc_2011 Pisa 2011 by GmP --- 011

flyopunta/src/src_ana/anabeam.cpp

00001 /***************************************************************************
00002                           anabeam.cpp  -  description
00003                              -------------------
00004     begin                : Sat Jan 18 2003
00005     copyright            : (C) 2003 by Giuseppe Pierazzini
00006     email                : peppe@unipi.it
00007   ***************************************************************************
00008   *                                                                         *
00009   *   NA48  simulation program.                                             *
00010   *                                                                         *
00011   ***************************************************************************/
00012 
00013 
00014 #include "flyoh.h"
00015 #include "anabeam.h"
00016  
00022 using namespace std;
00023 
00024 
00025 AnaBeam::AnaBeam()
00026 {
00027 
00028     tipo=30;nfit=0;titol="Fascio ";nome="Fascio";
00029     Gout<<"\n Creata la classe per il "<<titol;
00030 }
00031 AnaBeam::~AnaBeam(){
00032 }
00033 
00034 int AnaBeam::Fisica()
00035   { 
00036 //  routine utente per l'analisi del beam.
00037 //  Per usarla mettere in epc, "wrtnt" e "fascio"
00038 //  questa routine deve uscire con 1
00039 //  se vogliamo scrivere l'evento sul file nt
00040 //----
00041 //   moni e' il  puntatore al monitor
00042 //    if(moni->mhit<=0) return 0;
00043 
00044 //   codice utente
00045 //......................
00046    
00047    count_call++;
00048    count_wnt++;
00049 
00050    return 1;
00051   }
00052 
00053   //----------------------------------------------------
00054    void AnaBeam::print_scale()
00055     {
00056      Gout<<"\n ---> "<<titol<<" Analysis Summary. <-------\n";
00057      Gout<<"\n Fit entries          "<<count_call;
00058      Gout<<"\n Good events          "<<count_wnt;
00059      Gout<<"\n\n ======>  Analysis summary end <============ \n";
00060     }
00061 //-------------------------------------------
 All Classes Namespaces Files Functions Variables