Skip to content
Snippets Groups Projects
Commit d6931277 authored by Matthias Steinke's avatar Matthias Steinke
Browse files

Merge branch 'newpwa' of tau.ep1.rub.de:/var/www/git/Pawian into newpwa

parents a2dc198e e45b5513
No related branches found
No related tags found
No related merge requests found
...@@ -332,3 +332,25 @@ void AbsDecay::print(std::ostream& os) const{ ...@@ -332,3 +332,25 @@ void AbsDecay::print(std::ostream& os) const{
os << "\n"; 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: ...@@ -97,6 +97,9 @@ public:
virtual std::string pathToConfigParser() {return _pathParserFile;} virtual std::string pathToConfigParser() {return _pathParserFile;}
void setProductionAmp() {_isProdAmp=true;} void setProductionAmp() {_isProdAmp=true;}
bool isProductionAmp() {return _isProdAmp;} bool isProductionAmp() {return _isProdAmp;}
void resetFilledMap();
protected: protected:
ChannelID _channelId; ChannelID _channelId;
......
...@@ -145,6 +145,11 @@ EvtData* EvtDataBaseList::convertEvent(Event* theEvent, int evtNo){ ...@@ -145,6 +145,11 @@ EvtData* EvtDataBaseList::convertEvent(Event* theEvent, int evtNo){
(*itDyn)->fillMasses(evtData); (*itDyn)->fillMasses(evtData);
}; };
//reset filled map
for (itIso=theDecays.begin(); itIso!=theDecays.end(); ++itIso){
(*itIso)->resetFilledMap();
}
return evtData; return evtData;
} }
......
...@@ -71,7 +71,7 @@ protected: ...@@ -71,7 +71,7 @@ protected:
std::vector< std::shared_ptr<const LScomb> > _LSs; std::vector< std::shared_ptr<const LScomb> > _LSs;
double _factorMag; double _factorMag;
double _parityFactor; 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 > _currentParamMags;
std::map< std::shared_ptr<const LScomb>, double, pawian::Collection::SharedPtrLess > _currentParamPhis; 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