Something went wrong on our end
-
Bertram Kopf authoreda4ae9fe9
LSDecAmps.hh 1.61 KiB
// LSDecAmps class definition file. -*- C++ -*-
// Copyright 2012 Bertram Kopf
#pragma once
#include <iostream>
#include <vector>
#include <complex>
#include <map>
#include <string>
#include <cassert>
#include <boost/shared_ptr.hpp>
#include "PwaUtils/AbsXdecAmp.hh"
class IsobarDecay;
class LSDecAmps : public AbsXdecAmp{
public:
// create/copy/destroy:
///Constructor
LSDecAmps(boost::shared_ptr<IsobarDecay> theDec);
/** Destructor */
virtual ~LSDecAmps();
// Getters:
virtual complex<double> XdecAmp(Spin lamX, EvtData* theData, Spin lamFs=0);
virtual complex<double> daughterAmp(Spin lam1, Spin lam2, EvtData* theData, Spin lamFs);
virtual void getDefaultParams(fitParams& fitVal, fitParams& fitErr);
virtual void print(std::ostream& os) const;
virtual bool checkRecalculation(fitParams& theParamVal);
boost::shared_ptr<const jpcRes>& jpcPtr() {return _JPCPtr;}
std::vector< boost::shared_ptr<const JPCLS> >& jpclsVec() {return _JPCLSs;}
boost::shared_ptr<IsobarDecay> isobarDec() {return _decay;}
void updateFitParams(fitParams& theParamVal);
protected:
boost::shared_ptr<IsobarDecay> _decay;
boost::shared_ptr<const jpcRes> _JPCPtr;
std::vector< boost::shared_ptr<const JPCLS> > _JPCLSs;
boost::shared_ptr<LSDecAmps> _decAmpDaughter1;
boost::shared_ptr<LSDecAmps> _decAmpDaughter2;
Spin _Jdaughter1;
Spin _Jdaughter2;
std::string _key;
std::string _massKey;
const std::string _wignerDKey;
bool _daughter1IsStable;
bool _daughter2IsStable;
bool _withDyn;
double _factorMag;
virtual void initialize();
private:
};