Changeset View
Changeset View
Standalone View
Standalone View
src/LauAbsResonance.cc
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | bool LauAbsResonance::isIncoherentModel(LauResonanceModel model) { | ||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
// Constructor | // Constructor | ||||
LauAbsResonance::LauAbsResonance(LauResonanceInfo* resInfo, const Int_t resPairAmpInt, const LauDaughters* daughters) : | LauAbsResonance::LauAbsResonance(LauResonanceInfo* resInfo, const Int_t resPairAmpInt, const LauDaughters* daughters) : | ||||
resInfo_(resInfo), | resInfo_(resInfo), | ||||
daughters_(daughters), | daughters_(daughters), | ||||
nameParent_(""), nameDaug1_(""), nameDaug2_(""), nameBachelor_(""), | |||||
chargeParent_(0), chargeDaug1_(0), chargeDaug2_(0), chargeBachelor_(0), | |||||
massParent_(0.0), massDaug1_(0.0), massDaug2_(0.0), massBachelor_(0.0), | |||||
resName_( (resInfo!=0) ? resInfo->getName() : "" ), | resName_( (resInfo!=0) ? resInfo->getName() : "" ), | ||||
sanitisedName_( (resInfo!=0) ? resInfo->getSanitisedName() : "" ), | sanitisedName_( (resInfo!=0) ? resInfo->getSanitisedName() : "" ), | ||||
resMass_( (resInfo!=0) ? resInfo->getMass() : 0 ), | resMass_( (resInfo!=0) ? resInfo->getMass() : 0 ), | ||||
resWidth_( (resInfo!=0) ? resInfo->getWidth() : 0 ), | resWidth_( (resInfo!=0) ? resInfo->getWidth() : 0 ), | ||||
resSpin_( (resInfo!=0) ? resInfo->getSpin() : 0 ), | resSpin_( (resInfo!=0) ? resInfo->getSpin() : 0 ), | ||||
resCharge_( (resInfo!=0) ? resInfo->getCharge() : 0 ), | resCharge_( (resInfo!=0) ? resInfo->getCharge() : 0 ), | ||||
resPairAmpInt_(resPairAmpInt), | resPairAmpInt_(resPairAmpInt) | ||||
parBWFactor_(0), | |||||
resBWFactor_(0), | |||||
spinType_(Zemach_P), | |||||
flipHelicity_(kFALSE), | |||||
ignoreMomenta_(kFALSE), | |||||
ignoreSpin_(kFALSE), | |||||
ignoreBarrierScaling_(kFALSE), | |||||
mass_(0.0), | |||||
cosHel_(0.0), | |||||
q_(0.0), | |||||
p_(0.0), | |||||
pstar_(0.0), | |||||
erm_(1.0), | |||||
covFactor_(1.0) | |||||
{ | { | ||||
if ( resInfo == 0 ) { | if ( resInfo == 0 ) { | ||||
std::cerr << "ERROR in LauAbsResonance constructor : null LauResonanceInfo object provided" << std::endl; | std::cerr << "ERROR in LauAbsResonance constructor : null LauResonanceInfo object provided" << std::endl; | ||||
gSystem->Exit(EXIT_FAILURE); | gSystem->Exit(EXIT_FAILURE); | ||||
} | } | ||||
if ( daughters_ == 0 ) { | if ( daughters_ == 0 ) { | ||||
std::cerr << "ERROR in LauAbsResonance constructor : null LauDaughters object provided" << std::endl; | std::cerr << "ERROR in LauAbsResonance constructor : null LauDaughters object provided" << std::endl; | ||||
Show All 18 Lines | LauAbsResonance::LauAbsResonance(LauResonanceInfo* resInfo, const Int_t resPairAmpInt, const LauDaughters* daughters) : | ||||
if ( (totalCharge != resCharge_) && (resPairAmpInt_ != 0) ) { | if ( (totalCharge != resCharge_) && (resPairAmpInt_ != 0) ) { | ||||
std::cerr << "ERROR in LauAbsResonance : Total charge of daughters = " << totalCharge << ". Resonance charge = " << resCharge_ << "." << std::endl; | std::cerr << "ERROR in LauAbsResonance : Total charge of daughters = " << totalCharge << ". Resonance charge = " << resCharge_ << "." << std::endl; | ||||
gSystem->Exit(EXIT_FAILURE); | gSystem->Exit(EXIT_FAILURE); | ||||
} | } | ||||
} | } | ||||
// Constructor | // Constructor | ||||
LauAbsResonance::LauAbsResonance(const TString& resName, const Int_t resPairAmpInt, const LauDaughters* daughters) : | LauAbsResonance::LauAbsResonance(const TString& resName, const Int_t resPairAmpInt, const LauDaughters* daughters) : | ||||
resInfo_(0), | |||||
daughters_(daughters), | daughters_(daughters), | ||||
nameParent_(""), nameDaug1_(""), nameDaug2_(""), nameBachelor_(""), | |||||
chargeParent_(0), chargeDaug1_(0), chargeDaug2_(0), chargeBachelor_(0), | |||||
massParent_(0.0), massDaug1_(0.0), massDaug2_(0.0), massBachelor_(0.0), | |||||
resName_(resName), | resName_(resName), | ||||
sanitisedName_(resName), | sanitisedName_(resName), | ||||
resMass_(0), | resPairAmpInt_(resPairAmpInt) | ||||
resWidth_(0), | |||||
resSpin_(0), | |||||
resCharge_(0), | |||||
resPairAmpInt_(resPairAmpInt), | |||||
parBWFactor_(0), | |||||
resBWFactor_(0), | |||||
spinType_(Zemach_P), | |||||
flipHelicity_(kFALSE), | |||||
ignoreMomenta_(kFALSE), | |||||
ignoreSpin_(kFALSE), | |||||
ignoreBarrierScaling_(kFALSE), | |||||
mass_(0.0), | |||||
cosHel_(0.0), | |||||
q_(0.0), | |||||
p_(0.0), | |||||
pstar_(0.0), | |||||
erm_(1.0), | |||||
covFactor_(1.0) | |||||
{ | { | ||||
if ( daughters_ == 0 ) { | if ( daughters_ == 0 ) { | ||||
std::cerr << "ERROR in LauAbsResonance constructor : null LauDaughters object provided" << std::endl; | std::cerr << "ERROR in LauAbsResonance constructor : null LauDaughters object provided" << std::endl; | ||||
gSystem->Exit(EXIT_FAILURE); | gSystem->Exit(EXIT_FAILURE); | ||||
} | } | ||||
nameParent_ = this->getNameParent(); | nameParent_ = this->getNameParent(); | ||||
nameDaug1_ = this->getNameDaug1(); | nameDaug1_ = this->getNameDaug1(); | ||||
▲ Show 20 Lines • Show All 541 Lines • Show Last 20 Lines |