MINT2
src
Mojito
Lineshapes
BW_BW_DifferentMother.cpp
Go to the documentation of this file.
1
// author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
2
// status: Mon 9 Feb 2009 19:18:04 GMT
3
#include "
Mint/BW_BW_DifferentMother.h
"
4
#include "
Mint/ParticlePropertiesList.h
"
5
#include "
Mint/ParticleProperties.h
"
6
7
#include <iostream>
8
9
using namespace
std;
10
11
const
ParticleProperties
*
BW_BW_DifferentMother::mumsProperties
()
const
{
12
const
ParticlePropertiesList
* PPL =
ParticlePropertiesList::getMe
();
13
if
(0 == PPL){
14
cout <<
"ERROR in BW_BW_DifferentMother::mumsProperties():"
15
<<
" Couldn't get ParticlePropertiesList"
16
<<
"\n\t This is a serious problem. Will crash."
17
<< endl;
18
throw
"No ParticlePropertiesList"
;
19
}
20
const
ParticleProperties
* props = PPL->
get
(_alternativeMumPDG);
21
if
(0 == props){
22
cout <<
"ERROR in BW_BW_DifferentMother::mumsProperties():"
23
<<
" Got ParticlePropertiesList, but couldn't find "
24
<< _alternativeMumPDG
25
<<
"\n\t This is a serious problem. Will crash."
26
<< endl;
27
throw
"No ParticleProperties"
;
28
}
29
return
props;
30
}
31
32
BW_BW_DifferentMother::BW_BW_DifferentMother
(
const
AssociatedDecayTree
& decay
33
,
int
newMumID
34
)
35
:
BW_BW
(decay)
36
, _alternativeMumPDG(newMumID)
37
{}
38
39
//
ParticleProperties.h
BW_BW
Definition:
BW_BW.h:30
ParticleProperties
Definition:
ParticleProperties.h:13
ParticlePropertiesList.h
DDTree< AssociatedDecayTreeItem >
ParticlePropertiesList::get
const ParticleProperties * get(const std::string &name) const
Definition:
ParticlePropertiesList.cpp:237
BW_BW_DifferentMother::mumsProperties
virtual const ParticleProperties * mumsProperties() const
Definition:
BW_BW_DifferentMother.cpp:11
ParticlePropertiesList::getMe
static const ParticlePropertiesList * getMe()
Definition:
ParticlePropertiesList.cpp:21
BW_BW_DifferentMother.h
ParticlePropertiesList
Definition:
ParticlePropertiesList.h:14
BW_BW_DifferentMother::BW_BW_DifferentMother
BW_BW_DifferentMother(const AssociatedDecayTree &decay, int newMumID)
Definition:
BW_BW_DifferentMother.cpp:32
Generated by
1.8.15