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
EvtParticleDecayList.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 EVTPARTICLEDECAYLIST_HH
22
#define EVTPARTICLEDECAYLIST_HH
23
24
#include "
EvtGenBase/EvtParticleDecay.hh
"
25
26
typedef
EvtParticleDecay
*
EvtParticleDecayPtr
;
27
28
class
EvtParticleDecayList
{
29
public
:
30
EvtParticleDecayList
()
31
{
32
m_decaylist
=
nullptr
;
33
m_nmode
= 0;
34
m_rawbrfrsum
= 0;
35
}
36
37
EvtParticleDecayList
(
const
EvtParticleDecayList
& o );
38
39
~EvtParticleDecayList
();
40
41
EvtParticleDecayList
&
operator=
(
const
EvtParticleDecayList
& o );
42
43
int
getNMode
()
const
{
return
m_nmode
; }
44
45
void
setNMode
(
int
nmode );
46
47
EvtDecayBase
*
getDecayModel
(
EvtParticle
* p );
48
EvtDecayBase
*
getDecayModel
(
int
imode );
49
50
EvtParticleDecay
&
getDecay
(
int
nchannel )
const
;
51
52
double
getRawBrfrSum
() {
return
m_rawbrfrsum
; }
53
void
setRawBrfrSum
(
double
rawbrfrsum ) {
m_rawbrfrsum
= rawbrfrsum; }
54
55
void
makeChargeConj
(
EvtParticleDecayList
* conjDecayList );
56
57
void
removeDecay
();
58
59
void
alocateDecay
(
int
nmode )
60
{
61
m_decaylist
=
new
EvtParticleDecayPtr
[nmode];
62
}
63
64
void
removeMode
(
EvtDecayBase
* decay );
65
66
void
addMode
(
EvtDecayBase
* decay,
double
brfr,
double
massmin );
67
void
finalize
();
68
69
void
printSummary
()
const
;
70
71
bool
isJetSet
()
const
;
72
73
private
:
74
EvtParticleDecayPtr
*
m_decaylist
;
75
76
double
m_rawbrfrsum
;
77
int
m_nmode
;
78
};
79
80
#endif
EvtParticleDecayPtr
EvtParticleDecay * EvtParticleDecayPtr
Definition
EvtParticleDecayList.hh:26
EvtParticleDecay.hh
EvtDecayBase
Definition
EvtDecayBase.hh:33
EvtParticleDecayList
Definition
EvtParticleDecayList.hh:28
EvtParticleDecayList::EvtParticleDecayList
EvtParticleDecayList()
Definition
EvtParticleDecayList.hh:30
EvtParticleDecayList::removeMode
void removeMode(EvtDecayBase *decay)
Definition
EvtParticleDecayList.cpp:384
EvtParticleDecayList::~EvtParticleDecayList
~EvtParticleDecayList()
Definition
EvtParticleDecayList.cpp:74
EvtParticleDecayList::getRawBrfrSum
double getRawBrfrSum()
Definition
EvtParticleDecayList.hh:52
EvtParticleDecayList::printSummary
void printSummary() const
Definition
EvtParticleDecayList.cpp:85
EvtParticleDecayList::operator=
EvtParticleDecayList & operator=(const EvtParticleDecayList &o)
Definition
EvtParticleDecayList.cpp:341
EvtParticleDecayList::m_rawbrfrsum
double m_rawbrfrsum
Definition
EvtParticleDecayList.hh:76
EvtParticleDecayList::alocateDecay
void alocateDecay(int nmode)
Definition
EvtParticleDecayList.hh:59
EvtParticleDecayList::getDecayModel
EvtDecayBase * getDecayModel(EvtParticle *p)
Definition
EvtParticleDecayList.cpp:119
EvtParticleDecayList::makeChargeConj
void makeChargeConj(EvtParticleDecayList *conjDecayList)
Definition
EvtParticleDecayList.cpp:240
EvtParticleDecayList::setNMode
void setNMode(int nmode)
Definition
EvtParticleDecayList.cpp:213
EvtParticleDecayList::getDecay
EvtParticleDecay & getDecay(int nchannel) const
Definition
EvtParticleDecayList.cpp:229
EvtParticleDecayList::addMode
void addMode(EvtDecayBase *decay, double brfr, double massmin)
Definition
EvtParticleDecayList.cpp:254
EvtParticleDecayList::setRawBrfrSum
void setRawBrfrSum(double rawbrfrsum)
Definition
EvtParticleDecayList.hh:53
EvtParticleDecayList::m_nmode
int m_nmode
Definition
EvtParticleDecayList.hh:77
EvtParticleDecayList::m_decaylist
EvtParticleDecayPtr * m_decaylist
Definition
EvtParticleDecayList.hh:74
EvtParticleDecayList::isJetSet
bool isJetSet() const
Definition
EvtParticleDecayList.cpp:450
EvtParticleDecayList::removeDecay
void removeDecay()
Definition
EvtParticleDecayList.cpp:93
EvtParticleDecayList::getNMode
int getNMode() const
Definition
EvtParticleDecayList.hh:43
EvtParticleDecayList::finalize
void finalize()
Definition
EvtParticleDecayList.cpp:314
EvtParticleDecay
Definition
EvtParticleDecay.hh:26
EvtParticle
Definition
EvtParticle.hh:45
Generated by
1.17.0