LCOV - code coverage report
Current view: top level - TEvtGen/EvtGen/EvtGenBase - EvtScalarParticle.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 19 0.0 %
Date: 2016-06-14 17:26:59 Functions: 0 7 0.0 %

          Line data    Source code
       1             : //--------------------------------------------------------------------------
       2             : //
       3             : // Environment:
       4             : //      This software is part of the EvtGen package developed jointly
       5             : //      for the BaBar and CLEO collaborations.  If you use all or part
       6             : //      of it, please give an appropriate acknowledgement.
       7             : //
       8             : // Copyright Information: See EvtGen/COPYRIGHT
       9             : //      Copyright (C) 1998      Caltech, UCSB
      10             : //
      11             : // Module: EvtScalarParticle.cc
      12             : //
      13             : // Description: Class to describe scalar particles
      14             : //
      15             : // Modification history:
      16             : //
      17             : //    DJL/RYD   September 25, 1996           Module created
      18             : //
      19             : //------------------------------------------------------------------------
      20             : // 
      21             : #include "EvtGenBase/EvtPatches.hh"
      22             : #include <iostream>
      23             : #include <math.h>
      24             : #include "EvtGenBase/EvtPatches.hh"
      25             : #include "EvtGenBase/EvtScalarParticle.hh"
      26             : #include "EvtGenBase/EvtVector4R.hh"
      27             : 
      28             : 
      29             : void EvtScalarParticle::init(EvtId part_n,double e,double px,double py,double pz){
      30             : 
      31           0 :   _validP4=true;
      32           0 :   setp(e,px,py,pz);
      33           0 :   setpart_num(part_n);
      34             : 
      35           0 :   setLifetime();
      36             : 
      37           0 : }
      38             : 
      39           0 : EvtScalarParticle::~EvtScalarParticle() {}
      40             : 
      41             : 
      42             : void EvtScalarParticle::init(EvtId part_n,const EvtVector4R& p4){
      43             : 
      44           0 :   _validP4=true;
      45           0 :   setp(p4);
      46           0 :   setpart_num(part_n);
      47             : 
      48           0 :   setLifetime();
      49             : 
      50           0 : }
      51             : 
      52             : EvtSpinDensity EvtScalarParticle::rotateToHelicityBasis() const{
      53             : 
      54           0 :   EvtSpinDensity R;
      55           0 :   R.setDim(1);
      56             :       
      57           0 :   R.set(0,0,1.0);
      58             : 
      59             :   return R;
      60             : 
      61           0 : }
      62             : 
      63             : 
      64             : EvtSpinDensity EvtScalarParticle::rotateToHelicityBasis(double,
      65             :                                                        double,
      66             :                                                        double) const{
      67             : 
      68           0 :   EvtSpinDensity R;
      69           0 :   R.setDim(1);
      70             :       
      71           0 :   R.set(0,0,1.0);
      72             : 
      73             :   return R;
      74             : 
      75           0 : }
      76             : 

Generated by: LCOV version 1.11