MINT2
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
6 
7 #include <iostream>
8 
9 using namespace std;
10 
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 
33  , int newMumID
34  )
35  : BW_BW(decay)
36  , _alternativeMumPDG(newMumID)
37 {}
38 
39 //
Definition: BW_BW.h:30
const ParticleProperties * get(const std::string &name) const
virtual const ParticleProperties * mumsProperties() const
static const ParticlePropertiesList * getMe()
BW_BW_DifferentMother(const AssociatedDecayTree &decay, int newMumID)