/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtScalarParticle.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: EvtScalarParticle.cc
00012 //
00013 // Description: Class to describe scalar particles
00014 //
00015 // Modification history:
00016 //
00017 //    DJL/RYD   September 25, 1996           Module created
00018 //
00019 //------------------------------------------------------------------------
00020 // 
00021 #include "EvtGenBase/EvtPatches.hh"
00022 #include <iostream>
00023 #include <math.h>
00024 #include "EvtGenBase/EvtPatches.hh"
00025 #include "EvtGenBase/EvtScalarParticle.hh"
00026 #include "EvtGenBase/EvtVector4R.hh"
00027 
00028 
00029 void EvtScalarParticle::init(EvtId part_n,double e,double px,double py,double pz){
00030 
00031   _validP4=true;
00032   setp(e,px,py,pz);
00033   setpart_num(part_n);
00034 
00035   setLifetime();
00036 
00037 }
00038 
00039 EvtScalarParticle::~EvtScalarParticle() {}
00040 
00041 
00042 void EvtScalarParticle::init(EvtId part_n,const EvtVector4R& p4){
00043 
00044   _validP4=true;
00045   setp(p4);
00046   setpart_num(part_n);
00047 
00048   setLifetime();
00049 
00050 }
00051 
00052 EvtSpinDensity EvtScalarParticle::rotateToHelicityBasis() const{
00053 
00054   EvtSpinDensity R;
00055   R.SetDim(1);
00056       
00057   R.Set(0,0,1.0);
00058 
00059   return R;
00060 
00061 }
00062 
00063 
00064 EvtSpinDensity EvtScalarParticle::rotateToHelicityBasis(double alpha,
00065                                                        double beta,
00066                                                        double gamma) const{
00067 
00068   EvtSpinDensity R;
00069   R.SetDim(1);
00070       
00071   R.Set(0,0,1.0);
00072 
00073   return R;
00074 
00075 }
00076 

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