Commit 4c758efb authored by Frank Siegert's avatar Frank Siegert

Restore FixedDecays functionality.

parent 40e245ca
......@@ -350,3 +350,15 @@ void Hadron_Decay_Map::CreateBooklet(std::string & name)
f<<"\\end{document}"<<endl;
f.close();
}
Decay_Table* Hadron_Decay_Map::FindDecay(const ATOOLS::Flavour & decayer)
{
// first check, whether a fixed decaytable has been requested for this decayer
for (size_t i=0; i<m_fixed_next_tables.size(); ++i) {
if (m_fixed_next_tables[i]->Flav().Kfcode()==decayer.Kfcode()) {
return m_fixed_next_tables[i];
}
}
return Decay_Map::FindDecay(decayer);
}
......@@ -95,6 +95,8 @@ namespace HADRONS {
*/
void ClearFixedDecayTables();
virtual PHASIC::Decay_Table* FindDecay(const ATOOLS::Flavour& decayer);
//@{
/// Getter/setter method.
inline const Mixing_Handler* MixingHandler() const {return p_mixinghandler;}
......
......@@ -60,7 +60,7 @@ namespace PHASIC {
* of which the n'th will be chosen for the n'th particle of that Flavour
* in this event. (cf. Decay_Map::m_counters)
*/
Decay_Table* FindDecay(const ATOOLS::Flavour& decayer);
virtual Decay_Table* FindDecay(const ATOOLS::Flavour& decayer);
/**
* @param idcode IDCode() of the wanted decay channel
......
......@@ -69,7 +69,7 @@ Hadron_Decay_Handler::Hadron_Decay_Handler(string path, string fragfile) :
dmap->Read(decaypath, decayfile, true);
dmap->Read(decaypath, aliasdecayfile);
dmap->Initialise();
dmap->ReadFixedTables(decaypath, "FixedDecays.dat");
dmap->ReadFixedTables("./", "FixedDecays.dat");
p_decaymap=dmap;
p_mixinghandler = new Mixing_Handler();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment