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
EvtSecondary.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 EVTSECONDARY_HH
22
#define EVTSECONDARY_HH
23
24
const
int
EVTSECONDARYLENGTH
= 100;
25
26
class
EvtParticle
;
27
#include <iosfwd>
28
29
class
EvtSecondary
{
30
public
:
31
EvtSecondary
() {}
32
~EvtSecondary
() {}
33
34
void
init
();
35
36
int
getStdHepIndex
(
int
i ) {
return
m_stdhepindex
[i]; }
37
int
getD1
(
int
i ) {
return
m_id1
[i]; }
38
int
getD2
(
int
i ) {
return
m_id2
[i]; }
39
int
getD3
(
int
i ) {
return
m_id3
[i]; }
40
41
int
getNPart
();
42
void
createSecondary
(
int
stdhepindex,
EvtParticle
* prnt );
43
44
friend
std::ostream&
operator<<
( std::ostream& s,
45
const
EvtSecondary
& secondary );
46
47
private
:
48
int
m_npart
;
49
int
m_stdhepindex
[
EVTSECONDARYLENGTH
];
50
int
m_id1
[
EVTSECONDARYLENGTH
];
51
int
m_id2
[
EVTSECONDARYLENGTH
];
52
int
m_id3
[
EVTSECONDARYLENGTH
];
53
};
54
55
#endif
EVTSECONDARYLENGTH
const int EVTSECONDARYLENGTH
Definition
EvtSecondary.hh:24
EvtParticle
Definition
EvtParticle.hh:45
EvtSecondary::~EvtSecondary
~EvtSecondary()
Definition
EvtSecondary.hh:32
EvtSecondary::m_id2
int m_id2[EVTSECONDARYLENGTH]
Definition
EvtSecondary.hh:51
EvtSecondary::createSecondary
void createSecondary(int stdhepindex, EvtParticle *prnt)
Definition
EvtSecondary.cpp:41
EvtSecondary::getD1
int getD1(int i)
Definition
EvtSecondary.hh:37
EvtSecondary::m_stdhepindex
int m_stdhepindex[EVTSECONDARYLENGTH]
Definition
EvtSecondary.hh:49
EvtSecondary::getStdHepIndex
int getStdHepIndex(int i)
Definition
EvtSecondary.hh:36
EvtSecondary::m_npart
int m_npart
Definition
EvtSecondary.hh:48
EvtSecondary::getD3
int getD3(int i)
Definition
EvtSecondary.hh:39
EvtSecondary::m_id3
int m_id3[EVTSECONDARYLENGTH]
Definition
EvtSecondary.hh:52
EvtSecondary::operator<<
friend std::ostream & operator<<(std::ostream &s, const EvtSecondary &secondary)
EvtSecondary::EvtSecondary
EvtSecondary()
Definition
EvtSecondary.hh:31
EvtSecondary::getD2
int getD2(int i)
Definition
EvtSecondary.hh:38
EvtSecondary::m_id1
int m_id1[EVTSECONDARYLENGTH]
Definition
EvtSecondary.hh:50
EvtSecondary::getNPart
int getNPart()
Definition
EvtSecondary.cpp:36
EvtSecondary::init
void init()
Definition
EvtSecondary.cpp:31
Generated by
1.17.0