Skip to content
Snippets Groups Projects
Commit e45b5513 authored by Bertram Kopf's avatar Bertram Kopf
Browse files

reduced memory after initialization for the fit procedure

parent 12efe226
No related branches found
No related tags found
No related merge requests found
......@@ -332,3 +332,25 @@ void AbsDecay::print(std::ostream& os) const{
os << "\n";
}
void AbsDecay::resetFilledMap() {
_alreadyFilledMap.clear();
if(_isProdAmp){
if (!_daughter1IsStable){
_absDecDaughter1->resetFilledMap();
}
if (!_daughter2IsStable){
_absDecDaughter2->resetFilledMap();
}
}
else{
if (!_daughter1IsStable){
_absDecDaughter1->resetFilledMap();
}
if (!_daughter2IsStable){
_absDecDaughter2->resetFilledMap();
}
}
}
......@@ -97,6 +97,9 @@ public:
virtual std::string pathToConfigParser() {return _pathParserFile;}
void setProductionAmp() {_isProdAmp=true;}
bool isProductionAmp() {return _isProdAmp;}
void resetFilledMap();
protected:
ChannelID _channelId;
......
......@@ -145,6 +145,11 @@ EvtData* EvtDataBaseList::convertEvent(Event* theEvent, int evtNo){
(*itDyn)->fillMasses(evtData);
};
//reset filled map
for (itIso=theDecays.begin(); itIso!=theDecays.end(); ++itIso){
(*itIso)->resetFilledMap();
}
return evtData;
}
......
......@@ -71,7 +71,7 @@ protected:
std::vector< std::shared_ptr<const LScomb> > _LSs;
double _factorMag;
double _parityFactor;
std::map< std::shared_ptr<const LScomb>, map<Spin,map<Spin, double > > > _cgPreFactor;
std::map< std::shared_ptr<const LScomb>, map<Spin,map<Spin, double > >, pawian::Collection::SharedPtrLess > _cgPreFactor;
std::map< std::shared_ptr<const LScomb>, double, pawian::Collection::SharedPtrLess > _currentParamMags;
std::map< std::shared_ptr<const LScomb>, double, pawian::Collection::SharedPtrLess > _currentParamPhis;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment