Skip to content
Snippets Groups Projects
PsiProdBaseLhNew.hh 2.12 KiB
Newer Older

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

#include "qft++/topincludes/relativistic-quantum-mechanics.hh"

#include "PwaUtils/AbsLhNew.hh"
#include "PwaUtils/PsiToXGamStates.hh"
#include "PwaUtils/DataUtils.hh"
#include "Minuit2/MnUserParameters.h"

class AbsXdecAmp;

class PsiProdBaseLhNew : public AbsLhNew {
  PsiProdBaseLhNew(boost::shared_ptr<const EvtDataBaseListNew>, 
		   const std::vector<std::string>& hypVec, 
		   boost::shared_ptr<PsiToXGamStates> theStates);
  PsiProdBaseLhNew(boost::shared_ptr<AbsLhNew>, const std::vector<std::string>& hypVec, 
		   boost::shared_ptr<PsiToXGamStates> theStates);
  virtual ~PsiProdBaseLhNew();
  virtual AbsLhNew* clone_() const = 0;
  virtual double calcEvtIntensity( EvtDataNew* theData, fitParamsNew& theParamVal);
  
  virtual void getDefaultParams(fitParamsNew& fitVal, fitParamsNew& fitErr);
  virtual void print(std::ostream& os) const;
  
protected:
  const std::vector<std::string> _hypVec;
  std::vector<std::string> _GammaEtaHyps;
  std::vector<std::string> _GammaEta2Hyps; 
  std::vector<std::string> _GammaF1Hyps;
  boost::shared_ptr<PsiToXGamStates> _theStatesPtr;
 
  bool _usePhasespace;  
  const std::string _GammaEtaKey;
  const std::string _GammaEta2Key;
  const std::string _GammaF1Key;
  const std::string _EtaKey;
  const std::string _Eta2Key;
  const std::string _F1Key;
Bertram Kopf's avatar
Bertram Kopf committed
  const std::string _phasespaceKey;
 
  std::map<std::string, boost::shared_ptr<AbsXdecAmp> > _etaDecAmpMap;
  std::map<std::string, boost::shared_ptr<AbsXdecAmp> > _f1DecAmpMap;
  std::map<std::string, boost::shared_ptr<AbsXdecAmp> > _eta2DecAmpMap;

  virtual complex<double> psiToXGammaAmp(Spin Minit, Spin jX, Spin lamX, Spin lamGamma,
					 EvtDataNew* theData, 
                                         double PsiToXGamMag, double PsiToXGamPhi);
 
private:
  void getDefaultLamLamParams(std::vector<std::string>& hyps, 
			      std::vector< boost::shared_ptr<const JPClamlam> > lamLamAmps, 
			      fitParamsNew& fitVal, fitParamsNew& fitErr);
  void initializeHypothesis();
};