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: EvtGen/EvtStringParticle.hh
13 // Description: EvtStringParticle particle is a class to keep the
14 // collection of partons that are generated by jetset.
15 // This is supposedly the _only_ use of this particle.
17 // Modification history:
19 // RYD Febuary 27, 1998 Module created
21 //------------------------------------------------------------------------
23 #ifndef EVTSTRINGPARTICLE_HH
24 #define EVTSTRINGPARTICLE_HH
26 #include "EvtGenBase/EvtParticle.hh"
27 #include "EvtGenBase/EvtId.hh"
29 class EvtStringParticle:public EvtParticle {
34 virtual ~EvtStringParticle();
35 void init(EvtId id, const EvtVector4R& p4);
36 void initPartons(int npartons,EvtVector4R* p4partons,EvtId* idpartons);
38 EvtId getIdParton(int i);
39 EvtVector4R getP4Parton(int i);
40 EvtSpinDensity rotateToHelicityBasis() const;
41 EvtSpinDensity rotateToHelicityBasis(double alpha,
49 EvtVector4R* _p4partons;
52 EvtStringParticle& operator=(const EvtStringParticle& d);