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
EvtStdHep.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 EVTSTDHEP_HH
22
#define EVTSTDHEP_HH
23
24
#include "
EvtGenBase/EvtVector4R.hh
"
25
26
#include <iosfwd>
27
28
const
int
EVTSTDHEPLENGTH
= 1000;
29
30
class
EvtStdHep
{
31
public
:
32
EvtStdHep
() {}
33
~EvtStdHep
() {}
34
35
void
init
();
36
37
int
getFirstMother
(
int
i ) {
return
m_prntfirst
[i]; }
38
int
getLastMother
(
int
i ) {
return
m_prntlast
[i]; }
39
int
getFirstDaughter
(
int
i ) {
return
m_daugfirst
[i]; }
40
int
getLastDaughter
(
int
i ) {
return
m_dauglast
[i]; }
41
42
int
getStdHepID
(
int
i ) {
return
m_id
[i]; }
43
int
getIStat
(
int
i ) {
return
m_istat
[i]; }
44
45
EvtVector4R
getP4
(
int
i ) {
return
m_p4
[i]; }
46
EvtVector4R
getX4
(
int
i ) {
return
m_x
[i]; }
47
48
void
translate
(
EvtVector4R
d );
49
50
int
getNPart
();
51
void
createParticle
(
EvtVector4R
p4,
EvtVector4R
x,
int
prntfirst,
52
int
prntlast,
int
id
);
53
54
friend
std::ostream&
operator<<
( std::ostream& s,
const
EvtStdHep
& stdhep );
55
56
private
:
57
int
m_npart
;
58
EvtVector4R
m_p4
[
EVTSTDHEPLENGTH
];
59
EvtVector4R
m_x
[
EVTSTDHEPLENGTH
];
60
int
m_prntfirst
[
EVTSTDHEPLENGTH
];
61
int
m_prntlast
[
EVTSTDHEPLENGTH
];
62
int
m_daugfirst
[
EVTSTDHEPLENGTH
];
63
int
m_dauglast
[
EVTSTDHEPLENGTH
];
64
int
m_id
[
EVTSTDHEPLENGTH
];
65
int
m_istat
[
EVTSTDHEPLENGTH
];
66
};
67
68
#endif
EVTSTDHEPLENGTH
const int EVTSTDHEPLENGTH
Definition
EvtStdHep.hh:28
EvtVector4R.hh
EvtStdHep::operator<<
friend std::ostream & operator<<(std::ostream &s, const EvtStdHep &stdhep)
EvtStdHep::EvtStdHep
EvtStdHep()
Definition
EvtStdHep.hh:32
EvtStdHep::m_daugfirst
int m_daugfirst[EVTSTDHEPLENGTH]
Definition
EvtStdHep.hh:62
EvtStdHep::getIStat
int getIStat(int i)
Definition
EvtStdHep.hh:43
EvtStdHep::m_prntfirst
int m_prntfirst[EVTSTDHEPLENGTH]
Definition
EvtStdHep.hh:60
EvtStdHep::translate
void translate(EvtVector4R d)
Definition
EvtStdHep.cpp:67
EvtStdHep::m_x
EvtVector4R m_x[EVTSTDHEPLENGTH]
Definition
EvtStdHep.hh:59
EvtStdHep::getFirstMother
int getFirstMother(int i)
Definition
EvtStdHep.hh:37
EvtStdHep::m_id
int m_id[EVTSTDHEPLENGTH]
Definition
EvtStdHep.hh:64
EvtStdHep::m_prntlast
int m_prntlast[EVTSTDHEPLENGTH]
Definition
EvtStdHep.hh:61
EvtStdHep::m_npart
int m_npart
Definition
EvtStdHep.hh:57
EvtStdHep::getLastMother
int getLastMother(int i)
Definition
EvtStdHep.hh:38
EvtStdHep::createParticle
void createParticle(EvtVector4R p4, EvtVector4R x, int prntfirst, int prntlast, int id)
Definition
EvtStdHep.cpp:39
EvtStdHep::init
void init()
Definition
EvtStdHep.cpp:29
EvtStdHep::m_p4
EvtVector4R m_p4[EVTSTDHEPLENGTH]
Definition
EvtStdHep.hh:58
EvtStdHep::getLastDaughter
int getLastDaughter(int i)
Definition
EvtStdHep.hh:40
EvtStdHep::m_istat
int m_istat[EVTSTDHEPLENGTH]
Definition
EvtStdHep.hh:65
EvtStdHep::~EvtStdHep
~EvtStdHep()
Definition
EvtStdHep.hh:33
EvtStdHep::getStdHepID
int getStdHepID(int i)
Definition
EvtStdHep.hh:42
EvtStdHep::getFirstDaughter
int getFirstDaughter(int i)
Definition
EvtStdHep.hh:39
EvtStdHep::m_dauglast
int m_dauglast[EVTSTDHEPLENGTH]
Definition
EvtStdHep.hh:63
EvtStdHep::getNPart
int getNPart()
Definition
EvtStdHep.cpp:34
EvtStdHep::getP4
EvtVector4R getP4(int i)
Definition
EvtStdHep.hh:45
EvtStdHep::getX4
EvtVector4R getX4(int i)
Definition
EvtStdHep.hh:46
EvtVector4R
Definition
EvtVector4R.hh:29
Generated by
1.17.0