23 if(0 == mps) mps = MinuitParameterSet::getDefaultSet();
24 std::pair<std::string, const MINT::MinuitParameterSet*> nameAndSet(namePrefix, mps);
27 map<pair<string, const MinuitParameterSet*>,
ResonancePropertiesList*>::iterator it=_mapOfLists.find(nameAndSet);
29 if(_mapOfLists.end() != it) ptr=it->second;
35 cout <<
"ERROR in ResonanceProperties::getMe( " << namePrefix <<
" )" 36 <<
" Couldn't get ResonancePropertiesList (i.e. myself)" 37 <<
"\n\t This is a serious problem. Will crash." 39 throw "No ResonancePropertiesList";
41 _mapOfLists[nameAndSet] = ptr;
98 if(0 ==
_mps)
_mps = MinuitParameterSet::getDefaultSet();
104 if(0 != rp)
byID[rp->
pid()] = rp;
122 std::map<int, ResonanceProperties*>::const_iterator it =
byID.find(
id);
123 if(it ==
byID.end())
return 0;
const std::string & prefix() const
ResonancePropertiesList(const std::string &namePrefix="", MINT::MinuitParameterSet *mps=0)
const ResonanceProperties * get(int i) const
static ResonancePropertiesList * getMe(const std::string &prefix="", MINT::MinuitParameterSet *mps=0)
std::map< int, ResonanceProperties * > byID
MINT::MinuitParameterSet * getMinuitParameterSet()
MINT::MinuitParameterSet * _mps
const ResonanceProperties * AddToList(ResonanceProperties *rp)
static std::map< std::pair< std::string, const MINT::MinuitParameterSet * >, ResonancePropertiesList * > _mapOfLists
const ResonanceProperties * AddToListIfMissing(int pdg)