Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251627
EvtStringParticle.cpp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
EvtStringParticle.cpp
View Options
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* *
* EvtGen is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* EvtGen is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
***********************************************************************/
#include
"EvtGenBase/EvtStringParticle.hh"
#include
"EvtGenBase/EvtPatches.hh"
#include
"EvtGenBase/EvtReport.hh"
#include
"EvtGenBase/EvtVector4R.hh"
#include
<iostream>
#include
<math.h>
#include
<stdlib.h>
void
EvtStringParticle
::
init
(
EvtId
id
,
const
EvtVector4R
&
p4
)
{
_validP4
=
true
;
setp
(
p4
);
setpart_num
(
id
);
}
void
EvtStringParticle
::
initPartons
(
int
npartons
,
EvtVector4R
*
p4partons
,
EvtId
*
idpartons
)
{
_p4partons
.
resize
(
npartons
);
_idpartons
.
resize
(
npartons
);
for
(
int
i
=
0
;
i
<
npartons
;
i
++
)
{
_p4partons
[
i
]
=
p4partons
[
i
];
_idpartons
[
i
]
=
idpartons
[
i
];
}
}
int
EvtStringParticle
::
getNPartons
()
{
return
_p4partons
.
size
();
}
EvtId
EvtStringParticle
::
getIdParton
(
int
i
)
{
return
_idpartons
[
i
];
}
EvtVector4R
EvtStringParticle
::
getP4Parton
(
int
i
)
{
return
_p4partons
[
i
];
}
EvtSpinDensity
EvtStringParticle
::
rotateToHelicityBasis
()
const
{
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
<<
"rotateToHelicityBasis not implemented for strin particle."
;
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
<<
"Will terminate execution."
;
::
abort
();
EvtSpinDensity
rho
;
return
rho
;
}
EvtSpinDensity
EvtStringParticle
::
rotateToHelicityBasis
(
double
,
double
,
double
)
const
{
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
<<
"rotateToHelicityBasis(alpha,beta,gamma) not implemented for string particle."
;
EvtGenReport
(
EVTGEN_ERROR
,
"EvtGen"
)
<<
"Will terminate execution."
;
::
abort
();
EvtSpinDensity
rho
;
return
rho
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 6:08 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6550552
Default Alt Text
EvtStringParticle.cpp (2 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment