EvtGen
2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Toggle main menu visibility
Loading...
Searching...
No Matches
EvtGenBase
EvtVectorParticle.hh
Go to the documentation of this file.
1
2
/***********************************************************************
3
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4
* *
5
* This file is part of EvtGen. *
6
* *
7
* EvtGen is free software: you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation, either version 3 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* EvtGen is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19
***********************************************************************/
20
21
#ifndef EVTVECTORPARTICLE_HH
22
#define EVTVECTORPARTICLE_HH
23
24
#include "
EvtGenBase/EvtParticle.hh
"
25
#include "
EvtGenBase/EvtVector4C.hh
"
26
#include "
EvtGenBase/EvtVector4R.hh
"
27
28
#include <array>
29
#include <cassert>
30
31
class
EvtId
;
32
33
class
EvtVectorParticle
:
public
EvtParticle
{
34
public
:
35
EvtVectorParticle
() =
default
;
36
37
void
init
(
EvtId
part_n,
double
e,
double
px,
double
py,
double
pz );
38
void
init
(
EvtId
part_n,
const
EvtVector4R
& p )
override
;
39
void
init
(
EvtId
part_n,
const
EvtVector4R
& p,
const
EvtVector4C
&,
40
const
EvtVector4C
&,
const
EvtVector4C
& );
41
EvtVector4C
epsParent
(
int
i )
const override
42
{
43
assert( i >= 0 &&
static_cast<
std::size_t
>
( i ) <
m_eps
.size() );
44
45
return
boostTo
(
m_eps
[i], this->
getP4
() );
46
}
47
EvtVector4C
eps
(
int
i )
const override
48
{
49
assert( i >= 0 &&
static_cast<
std::size_t
>
( i ) <
m_eps
.size() );
50
51
return
m_eps
[i];
52
}
53
EvtSpinDensity
rotateToHelicityBasis
()
const override
;
54
EvtSpinDensity
rotateToHelicityBasis
(
double
alpha,
double
beta,
55
double
gamma )
const override
;
56
57
private
:
58
std::array<EvtVector4C, 3>
m_eps
;
59
60
EvtVectorParticle
(
const
EvtVectorParticle
& vector );
61
EvtVectorParticle
&
operator=
(
const
EvtVectorParticle
& vector );
62
};
63
64
#endif
EvtParticle.hh
boostTo
EvtRaritaSchwinger boostTo(const EvtRaritaSchwinger &rs, const EvtVector4R p4)
Definition
EvtRaritaSchwinger.cpp:34
EvtVector4C.hh
EvtVector4R.hh
EvtId
Definition
EvtId.hh:27
EvtParticle::getP4
const EvtVector4R & getP4() const
Definition
EvtParticle.cpp:144
EvtParticle::EvtParticle
EvtParticle()
Definition
EvtParticle.cpp:59
EvtSpinDensity
Definition
EvtSpinDensity.hh:28
EvtVector4C
Definition
EvtVector4C.hh:30
EvtVector4R
Definition
EvtVector4R.hh:29
EvtVectorParticle::EvtVectorParticle
EvtVectorParticle(const EvtVectorParticle &vector)
EvtVectorParticle::rotateToHelicityBasis
EvtSpinDensity rotateToHelicityBasis() const override
Definition
EvtVectorParticle.cpp:74
EvtVectorParticle::eps
EvtVector4C eps(int i) const override
Definition
EvtVectorParticle.hh:47
EvtVectorParticle::EvtVectorParticle
EvtVectorParticle()=default
EvtVectorParticle::m_eps
std::array< EvtVector4C, 3 > m_eps
Definition
EvtVectorParticle.hh:58
EvtVectorParticle::operator=
EvtVectorParticle & operator=(const EvtVectorParticle &vector)
EvtVectorParticle::init
void init(EvtId part_n, double e, double px, double py, double pz)
Definition
EvtVectorParticle.cpp:32
EvtVectorParticle::epsParent
EvtVector4C epsParent(int i) const override
Definition
EvtVectorParticle.hh:41
Generated by
1.17.0