1 //--------------------------------------------------------------------------
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.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtStringParticle.cc
13 // Description: Class to describe the partons that are produced in JetSet.
15 // Modification history:
17 // RYD Febuary 27,1998 Module created
19 //------------------------------------------------------------------------
21 #include "EvtGenBase/EvtPatches.hh"
25 #include "EvtGenBase/EvtStringParticle.hh"
26 #include "EvtGenBase/EvtVector4R.hh"
27 #include "EvtGenBase/EvtReport.hh"
30 EvtStringParticle::~EvtStringParticle(){
42 EvtStringParticle::EvtStringParticle(){
52 void EvtStringParticle::init(EvtId id, const EvtVector4R& p4){
61 void EvtStringParticle::initPartons(int npartons,
62 EvtVector4R* p4partons,EvtId* idpartons){
64 _p4partons = new EvtVector4R[npartons];
65 _idpartons = new EvtId[npartons];
71 for(i=0;i<npartons;i++){
73 _p4partons[i]=p4partons[i];
74 _idpartons[i]=idpartons[i];
80 int EvtStringParticle::getNPartons(){
86 EvtId EvtStringParticle::getIdParton(int i){
92 EvtVector4R EvtStringParticle::getP4Parton(int i){
98 EvtSpinDensity EvtStringParticle::rotateToHelicityBasis() const{
100 report(ERROR,"EvtGen") << "rotateToHelicityBasis not implemented for strin particle.";
101 report(ERROR,"EvtGen") << "Will terminate execution.";
110 EvtSpinDensity EvtStringParticle::rotateToHelicityBasis(double,
114 report(ERROR,"EvtGen") << "rotateToHelicityBasis(alpha,beta,gamma) not implemented for string particle.";
115 report(ERROR,"EvtGen") << "Will terminate execution.";