/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtTauVectornu.cc

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // Environment:
00004 //      This software is part of the EvtGen package developed jointly
00005 //      for the BaBar and CLEO collaborations.  If you use all or part
00006 //      of it, please give an appropriate acknowledgement.
00007 //
00008 // Copyright Information: See EvtGen/COPYRIGHT
00009 //      Copyright (C) 1998      Caltech, UCSB
00010 //
00011 // Module: EvtTauVectornu.cc
00012 //
00013 // Description: The vector decay of the tau meson.
00014 //              E.g., tau- -> rho- + nut
00015 //
00016 // Modification history:
00017 //
00018 //    RYD/SHY   April 23, 1997           Module created
00019 //
00020 //------------------------------------------------------------------------
00021 //
00022 #include "EvtGenBase/EvtPatches.hh"
00023 #include <stdlib.h>
00024 #include <iostream>
00025 #include <string>
00026 #include "EvtGenBase/EvtParticle.hh"
00027 #include "EvtGenBase/EvtPDL.hh"
00028 #include "EvtGenBase/EvtGenKine.hh"
00029 #include "EvtGenModels/EvtTauVectornu.hh"
00030 #include "EvtGenBase/EvtDiracSpinor.hh"
00031 #include "EvtGenBase/EvtReport.hh"
00032 #include "EvtGenBase/EvtVector4C.hh"
00033 
00034 EvtTauVectornu::~EvtTauVectornu() {}
00035 
00036 void EvtTauVectornu::getName(std::string& model_name){
00037 
00038   model_name="TAUVECTORNU";     
00039 
00040 }
00041 
00042 
00043 EvtDecayBase* EvtTauVectornu::clone(){
00044 
00045   return new EvtTauVectornu;
00046 
00047 }
00048 
00049 void EvtTauVectornu::init(){
00050 
00051   // check that there are 0 arguments
00052   checkNArg(0);
00053   checkNDaug(2);
00054 
00055   checkSpinParent(EvtSpinType::DIRAC);
00056     
00057   checkSpinDaughter(0,EvtSpinType::VECTOR);
00058   checkSpinDaughter(1,EvtSpinType::NEUTRINO);
00059 }
00060 
00061 void EvtTauVectornu::initProbMax(){
00062 
00063   setProbMax(55.0);
00064 
00065 }
00066 
00067 void EvtTauVectornu::decay(EvtParticle *p){
00068 
00069   static EvtId TAUM=EvtPDL::getId("tau-");
00070   p->initializePhaseSpace(getNDaug(),getDaugs());
00071 
00072   EvtParticle *v, *nut;
00073   v=p->getDaug(0);
00074   nut=p->getDaug(1);
00075   double mvec = v->mass();
00076   EvtVector4C tau1, tau2;
00077 
00078   if (p->getId()==TAUM) {
00079     tau1=EvtLeptonVACurrent(nut->spParentNeutrino(),p->sp(0));
00080     tau2=EvtLeptonVACurrent(nut->spParentNeutrino(),p->sp(1));
00081   }
00082   else{
00083     tau1=EvtLeptonVACurrent(p->sp(0),nut->spParentNeutrino());
00084     tau2=EvtLeptonVACurrent(p->sp(1),nut->spParentNeutrino());
00085   }
00086 
00087   double norm=mvec*sqrt(mvec);
00088   
00089   vertex(0,0,norm*tau1*(v->epsParent(0).conj()));
00090   vertex(0,1,norm*tau1*(v->epsParent(1).conj()));
00091   vertex(0,2,norm*tau1*(v->epsParent(2).conj()));
00092   vertex(1,0,norm*tau2*(v->epsParent(0).conj()));
00093   vertex(1,1,norm*tau2*(v->epsParent(1).conj()));
00094   vertex(1,2,norm*tau2*(v->epsParent(2).conj()));
00095   
00096   return;
00097 
00098 }
00099 

Generated on Tue Nov 29 23:12:23 2016 for BOSS_7.0.2 by  doxygen 1.4.7