Changeset View
Changeset View
Standalone View
Standalone View
src/LauBlattWeisskopfFactor.cc
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | LauBlattWeisskopfFactor::LauBlattWeisskopfFactor( const LauResonanceInfo& resInfo, const Double_t resRadius, const BarrierType barrierType, const RestFrame restFrame, const BlattWeisskopfCategory category ) : | ||||
TString categoryName = this->setRadiusName( resInfo, category ); | TString categoryName = this->setRadiusName( resInfo, category ); | ||||
std::cout << "INFO in LauBlattWeisskopfFactor constructor : creating radius parameter for category \"" << categoryName << "\", with initial value " << resRadius << std::endl; | std::cout << "INFO in LauBlattWeisskopfFactor constructor : creating radius parameter for category \"" << categoryName << "\", with initial value " << resRadius << std::endl; | ||||
} | } | ||||
LauBlattWeisskopfFactor::~LauBlattWeisskopfFactor() | LauBlattWeisskopfFactor::~LauBlattWeisskopfFactor() | ||||
{ | { | ||||
} | } | ||||
LauBlattWeisskopfFactor::LauBlattWeisskopfFactor( const LauBlattWeisskopfFactor& other, const UInt_t newSpin ) : | LauBlattWeisskopfFactor::LauBlattWeisskopfFactor( const LauBlattWeisskopfFactor& other, const UInt_t newSpin, const BarrierType newBarrierType ) : | ||||
spin_(newSpin), | spin_(newSpin), | ||||
radius_(other.radius_->createClone()), | radius_(other.radius_->createClone()), | ||||
barrierType_(other.barrierType_), | barrierType_(newBarrierType), | ||||
restFrame_(other.restFrame_) | restFrame_(other.restFrame_) | ||||
{ | { | ||||
} | } | ||||
TString LauBlattWeisskopfFactor::setRadiusName( const LauResonanceInfo& resInfo, const BlattWeisskopfCategory category ) | TString LauBlattWeisskopfFactor::setRadiusName( const LauResonanceInfo& resInfo, const BlattWeisskopfCategory category ) | ||||
{ | { | ||||
TString name = "BarrierRadius_"; | TString name = "BarrierRadius_"; | ||||
TString categoryName; | TString categoryName; | ||||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | TString LauBlattWeisskopfFactor::setRadiusName( const LauResonanceInfo& resInfo, const BlattWeisskopfCategory category ) | ||||
} | } | ||||
name.Append(categoryName); | name.Append(categoryName); | ||||
radius_->name(name); | radius_->name(name); | ||||
return categoryName; | return categoryName; | ||||
} | } | ||||
LauBlattWeisskopfFactor* LauBlattWeisskopfFactor::createClone( const UInt_t newSpin ) | LauBlattWeisskopfFactor* LauBlattWeisskopfFactor::createClone( const UInt_t newSpin, const BarrierType newBarrierType ) | ||||
{ | { | ||||
LauBlattWeisskopfFactor* clone = new LauBlattWeisskopfFactor( *this, newSpin ); | LauBlattWeisskopfFactor* clone = new LauBlattWeisskopfFactor( *this, newSpin, newBarrierType ); | ||||
return clone; | return clone; | ||||
} | } | ||||
Double_t LauBlattWeisskopfFactor::calcFormFactor( const Double_t p ) const | Double_t LauBlattWeisskopfFactor::calcFormFactor( const Double_t p ) const | ||||
{ | { | ||||
// Calculate the requested form factor for the resonance, given the momentum value | // Calculate the requested form factor for the resonance, given the momentum value | ||||
Double_t fFactor(1.0); | Double_t fFactor(1.0); | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |