Skip to content
Snippets Groups Projects
AbsXdecAmp.hh 1.54 KiB
Newer Older
Bertram Kopf's avatar
Bertram Kopf committed
// AbsXdecAmp class definition file. -*- C++ -*-
// Copyright 2012 Bertram Kopf


#include <iostream>
#include <vector>
#include <complex>
#include <map>
#include <string>
#include <boost/shared_ptr.hpp>

Bertram Kopf's avatar
Bertram Kopf committed
#include "PwaUtils/EvtDataBaseList.hh"
#include "PwaUtils/FitParamsBase.hh"
Bertram Kopf's avatar
Bertram Kopf committed
  AbsXdecAmp(const std::string& name, const std::vector<std::string>& hypVec, Spin spinX=0, int parity=1);
  AbsXdecAmp(const std::string& name);
  virtual complex<double> XdecAmp(Spin lamX, EvtData* theData, Spin lamFs)=0;
Bertram Kopf's avatar
Bertram Kopf committed
  virtual void getDefaultParams(fitParams& fitVal, fitParams& fitErr)=0;
  virtual void print(std::ostream& os) const=0;
  const std::string name() const {return _name;}
  const Spin  spinX() const {return _J_X;}
Bertram Kopf's avatar
Bertram Kopf committed
  const int  parity() const {return _parity;}
Bertram Kopf's avatar
Bertram Kopf committed
  virtual bool checkRecalculation(fitParams& theParamVal);
  virtual void cacheAmplitudes(){_cacheAmps=true;}
Bertram Kopf's avatar
Bertram Kopf committed
  virtual void updateFitParams(fitParams& theParamVal){return;}
  const std::string _name;
  const std::vector<std::string> _hypVec;
Bertram Kopf's avatar
Bertram Kopf committed
  Spin _J_X;
  int _parity; 
  std::map< boost::shared_ptr<const JPCLS>, double, pawian::Collection::SharedPtrLess > _currentParamMags;
  std::map< boost::shared_ptr<const JPCLS>, double, pawian::Collection::SharedPtrLess > _currentParamPhis;
  double _currentXMass;
  double _currentXWidth;
  double _currentgFactorPhiPhi;
  double _currentgFactorOmegaPhi;
  std::map<int, std::map<Spin, std::map<Spin, complex<double> > > > _cachedAmpMap;