BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtStringParticle.cc
Go to the documentation of this file.
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: EvtStringParticle.cc
12//
13// Description: Class to describe the partons that are produced in JetSet.
14//
15// Modification history:
16//
17// RYD Febuary 27,1998 Module created
18//
19//------------------------------------------------------------------------
20//
21#include "EvtStringParticle.hh"
22#include "EvtPatches.hh"
23#include "EvtVector4R.hh"
24#include <iostream>
25#include <math.h>
26#include <stdlib.h>
27
29
30 if ( _npartons != 0 )
31 {
32
33 delete[] _p4partons;
34 delete[] _idpartons;
35 }
36}
37
39
40 _p4partons = 0;
41 _idpartons = 0;
42 _npartons = 0;
43
44 return;
45}
46
48
49 _validP4 = true;
50 setp( p4 );
51 setpart_num( id );
52}
53
54void EvtStringParticle::initPartons( int npartons, EvtVector4R* p4partons, EvtId* idpartons ) {
55
56 _p4partons = new EvtVector4R[npartons];
57 _idpartons = new EvtId[npartons];
58
59 int i;
60
61 _npartons = npartons;
62
63 for ( i = 0; i < npartons; i++ )
64 {
65
66 _p4partons[i] = p4partons[i];
67 _idpartons[i] = idpartons[i];
68 }
69}
70
71int EvtStringParticle::getNPartons() { return _npartons; }
72
73EvtId EvtStringParticle::getIdParton( int i ) { return _idpartons[i]; }
74
75EvtVector4R EvtStringParticle::getP4Parton( int i ) { return _p4partons[i]; }
76
78
79 report( ERROR, "EvtGen" ) << "rotateToHelicityBasis not implemented for strin particle.";
80 report( ERROR, "EvtGen" ) << "Will terminate execution.";
81
82 ::abort();
83
85 return rho;
86}
87
89 double gamma ) const {
90
91 report( ERROR, "EvtGen" )
92 << "rotateToHelicityBasis(alpha,beta,gamma) not implemented for string particle.";
93 report( ERROR, "EvtGen" ) << "Will terminate execution.";
94
95 ::abort();
96
98 return rho;
99}
double alpha
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:34
@ ERROR
Definition EvtReport.hh:49
Definition EvtId.hh:27
void setp(double e, double px, double py, double pz)
void setpart_num(EvtId particle_number)
EvtVector4R getP4Parton(int i)
EvtSpinDensity rotateToHelicityBasis() const
void init(EvtId id, const EvtVector4R &p4)
void initPartons(int npartons, EvtVector4R *p4partons, EvtId *idpartons)