BOSS 7.0.5
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//
22#include <iostream>
23#include <math.h>
24#include <stdlib.h>
27
28
30
31 if (_npartons!=0){
32
33 delete [] _p4partons;
34 delete [] _idpartons;
35
36 }
37
38}
39
40
42
43 _p4partons=0;
44 _idpartons=0;
45 _npartons=0;
46
47 return;
48
49}
50
52
53 _validP4=true;
54 setp(p4);
55 setpart_num(id);
56
57}
58
59
61 EvtVector4R* p4partons,EvtId* idpartons){
62
63 _p4partons = new EvtVector4R[npartons];
64 _idpartons = new EvtId[npartons];
65
66 int i;
67
68 _npartons=npartons;
69
70 for(i=0;i<npartons;i++){
71
72 _p4partons[i]=p4partons[i];
73 _idpartons[i]=idpartons[i];
74
75 }
76
77}
78
80
81 return _npartons;
82
83}
84
86
87 return _idpartons[i];
88
89}
90
92
93 return _p4partons[i];
94
95}
96
98
99 report(ERROR,"EvtGen") << "rotateToHelicityBasis not implemented for strin particle.";
100 report(ERROR,"EvtGen") << "Will terminate execution.";
101
102 ::abort();
103
104 EvtSpinDensity rho;
105 return rho;
106
107}
108
110 double beta,
111 double gamma) const{
112
113 report(ERROR,"EvtGen") << "rotateToHelicityBasis(alpha,beta,gamma) not implemented for string particle.";
114 report(ERROR,"EvtGen") << "Will terminate execution.";
115
116 ::abort();
117
118 EvtSpinDensity rho;
119 return rho;
120
121}
122
123
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ ERROR
Definition: EvtReport.hh:49
const double alpha
Definition: EvtId.hh:27
void setp(double e, double px, double py, double pz)
Definition: EvtParticle.hh:398
void setpart_num(EvtId particle_number)
Definition: EvtParticle.hh:400
EvtVector4R getP4Parton(int i)
EvtId getIdParton(int i)
EvtSpinDensity rotateToHelicityBasis() const
void init(EvtId id, const EvtVector4R &p4)
virtual ~EvtStringParticle()
void initPartons(int npartons, EvtVector4R *p4partons, EvtId *idpartons)