]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TEvtGen/EvtGenBase/EvtStringParticle.hh
AliDecayer realisation for the EvtGen code and EvtGen itself.
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtStringParticle.hh
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: EvtGen/EvtStringParticle.hh
12 //
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.
16 //
17 // Modification history:
18 //
19 //    RYD     Febuary 27, 1998         Module created
20 //
21 //------------------------------------------------------------------------
22
23 #ifndef EVTSTRINGPARTICLE_HH
24 #define EVTSTRINGPARTICLE_HH
25
26 #include "EvtGenBase/EvtParticle.hh"
27 #include "EvtGenBase/EvtId.hh"
28
29 class EvtStringParticle:public EvtParticle {
30
31 public:
32
33   EvtStringParticle();
34   virtual ~EvtStringParticle();
35   void init(EvtId id, const EvtVector4R& p4);
36   void initPartons(int npartons,EvtVector4R* p4partons,EvtId* idpartons);
37   int getNPartons();
38   EvtId getIdParton(int i);
39   EvtVector4R getP4Parton(int i);
40   EvtSpinDensity rotateToHelicityBasis() const;
41   EvtSpinDensity rotateToHelicityBasis(double alpha,
42                                        double beta,
43                                        double gamma) const;
44
45 private:
46
47   int _npartons;
48
49   EvtVector4R* _p4partons;
50   EvtId* _idpartons;
51
52   EvtStringParticle& operator=(const EvtStringParticle& d);
53
54 };
55 #endif
56