Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenModels/EvtBtoXsgamma.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
noProbMax(); | noProbMax(); | ||||
} | } | ||||
void EvtBtoXsgamma::decay( EvtParticle* p ) | void EvtBtoXsgamma::decay( EvtParticle* p ) | ||||
{ | { | ||||
//initialize here. -- its too damn slow otherwise. | //initialize here. -- its too damn slow otherwise. | ||||
if ( _model == 0 ) { | if ( _model == nullptr ) { | ||||
if ( getArg( 0 ) == 1 ) | if ( getArg( 0 ) == 1 ) | ||||
_model = std::make_unique<EvtBtoXsgammaAliGreub>(); | _model = std::make_unique<EvtBtoXsgammaAliGreub>(); | ||||
else if ( getArg( 0 ) == 2 ) | else if ( getArg( 0 ) == 2 ) | ||||
_model = std::make_unique<EvtBtoXsgammaKagan>(); | _model = std::make_unique<EvtBtoXsgammaKagan>(); | ||||
else if ( getArg( 0 ) == 3 ) | else if ( getArg( 0 ) == 3 ) | ||||
_model = std::make_unique<EvtBtoXsgammaFixedMass>(); | _model = std::make_unique<EvtBtoXsgammaFixedMass>(); | ||||
else if ( getArg( 0 ) == 4 ) | else if ( getArg( 0 ) == 4 ) | ||||
_model = std::make_unique<EvtBtoXsgammaFlatEnergy>(); | _model = std::make_unique<EvtBtoXsgammaFlatEnergy>(); | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |