FlyoDoc_2011 Pisa 2011 by GmP --- 011
|
00001 /* 00002 <one line to give the program's name and a brief idea of what it does.> 00003 Copyright (C) <year> <name of author> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along 00016 with this program; if not, write to the Free Software Foundation, Inc., 00017 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 00019 */ 00020 #include <flyoh.h> 00021 #include "anaklambda.h" 00022 00023 using namespace std; 00028 AnaKlambda::AnaKlambda() 00029 { 00030 tipo=27; 00031 nfit=1; 00032 titol="Lamda->protone pim " ; 00033 nome="Klambda"; 00034 mas_lambda= ptr_Lambda->Get_Massa(); 00035 mas_pim=ptr_Pip->Get_Massa(); 00036 mas_protone= ptr_Protone->Get_Massa(); 00037 00038 00039 Gout<<"\n Attivato il fit di "<<titol; 00040 00041 } 00042 AnaKlambda::~AnaKlambda() 00043 { 00044 } 00045 00046 00051 int AnaKlambda::Fisica() 00052 { 00053 count_call++; 00054 00055 np=0; 00056 00057 pxlam=pylam=pzlam=momlam=0.; 00058 pxpim=pypim=pzpim=mompim=0.; 00059 pxprt=pyprt=pzprt=momprt=0.; 00060 epim =elam= eprt=0.; 00061 00062 00063 //taglio sul vertice generato 00064 if ( evento_.Gen.zv < 10000 || evento_.Gen.zv > 17000 ) 00065 { 00066 counter[0]++; 00067 return -1; 00068 } 00069 00070 count_decay++; 00071 00072 //*********************************************** 00073 // da fare 00074 //************************************************* 00075 count_wnt++; 00076 np=1; 00077 return 1; 00078 00079 } 00080 //---------------------------------------------------- 00081 void AnaKlambda::print_scale() 00082 { 00087 Gout<<"\n -----> "<<titol<<" Analysis Summary <-------\n"; 00088 Gout<<"\n Fit entries "<<count_call; 00089 Gout<<"\n Good decays "<<count_decay << " (in the fiducial region)"; 00090 for ( int i=0;i<30;i++ ) 00091 { 00092 if ( counter[i]>0 ) Gout<<"\n Rejection "<<setw ( 3 ) <<i<<" "<<counter[i]; 00093 00094 } 00095 00096 Gout<<"\n Good events "<<count_wnt; 00097 00098 Gout<<"\n\n ======> d o n e <============ "<<std::endl; 00099 }