FlyoDoc_2011 Pisa 2011 by GmP --- 011
|
00001 /*************************************************************************** 00002 anak2pi.cpp - description 00003 GMP 27-11-2010 00004 00005 ***************************************************************************/ 00006 // #define MIN(x,y,z) ((x)<(y)?(x)<(z)?(x):(z):(y)<(z)?(y):(z)) 00007 00008 #include "flyoh.h" 00009 #include "anakpip0.h" 00010 using namespace std; 00011 00012 //------------------------------------------------------------- 00013 //------------------------------------------------------------- 00014 00015 AnaKpip0::AnaKpip0() 00016 {tipo=29;nfit=2;titol="K--> pi+ pi0";nome="Kpip0"; 00017 ntrk=good=0; 00018 mas_pip=ptr_Pip->Get_Massa(); 00019 mas_Kp=ptr_Kapp->Get_Massa(); 00020 mas_pi0=ptr_Pi0->Get_Massa(); 00021 Gout<<"\n Attivato il fit di "<<titol; 00022 } 00023 00024 AnaKpip0::~AnaKpip0(){}; 00025 00026 //=============== C h a r g e 2 pions F i t ======== 00027 00028 int AnaKpip0::Fisica() 00029 { 00030 00031 count_call++; 00032 // 00033 00034 if(Trkstraw!=0) ntrk=Trkstraw->ntrk_done; 00035 if(ntrk<1) {good=0;return(-1);} 00036 00037 Pkin.setvn(-0.09,0.,75.,mas_Kp); 00038 Pkin=SelRea->avo->P; 00039 00040 Track Trk=Trkstraw->Traccia[0]; 00041 charge=Trk.charge; 00042 chisq=Trk.chiq_fit; 00043 Ppi.setvn(Trkstraw->Traccia[0].P_in,mas_pip); 00044 00045 //float charge,chisq,pmis,masmis, ppip; 00046 ppip=Ppi.mom; 00047 00048 Ppi0=Pkin-Ppi; 00049 Ppi0.Invar(); 00050 // Ppi0.print("P_mis"); 00051 00052 masmis=Ppi0.m; 00053 pmis=Ppi0.mom; 00054 00055 if(ppip<15.||ppip>35.)return -1; 00056 00057 count_wnt++; 00058 good=1; 00059 return 1; 00060 00061 } 00062 00063 //====================================================================================== 00064 int AnaKpip0::Vertice() 00065 { 00066 00067 return 1; 00068 } 00069 00070 //---------------------------------------------------- 00071 void AnaKpip0::print_scale() 00072 { 00073 00074 Gout<<"\n -----> "<<titol<<" Analysis Summary. <-------\n"; 00075 Gout<<"\n Fit entries "<<count_call; 00076 Gout<<"\n Track energ to low "<<getta_ch; 00077 Gout<<"\n Killed by energy "<<getta_en; 00078 Gout<<"\n Tau cut "<<getta_tau; 00079 Gout<<"\n No good vertex "<<getta_fit; 00080 Gout<<"\n Good events "<<count_wnt; 00081 Gout<<"\n\n ======> d o n e <============ "; 00082 } 00083 //-------------------------------------------