1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Module: EvtBtoXsgammaKagan.cc
11 // Routine to perform two-body B->Xs,gamma decays with a fixed hadronic
12 // mass. For spectrum measurements.
13 // The input parameters are 1: the hadronic mass
15 // Modification history:
17 // Jim Libby October 11 2002
18 //------------------------------------------------------------------------
21 #include "EvtGenBase/EvtPatches.hh"
23 #include "EvtGenModels/EvtBtoXsgamma.hh"
24 #include "EvtGenModels/EvtBtoXsgammaFixedMass.hh"
25 #include "EvtGenBase/EvtReport.hh"
30 EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass(){
33 void EvtBtoXsgammaFixedMass::init(int nArg, double* args){
35 if ((nArg) > 2 || (nArg > 1 && nArg <2)){
37 report(ERROR,"EvtGen") << "EvtBtoXsgamma generator model "
38 << "EvtBtoXsgammaFixedMass expected "
39 << "either 1(default config) or two arguments but found: "<<nArg<<endl;
40 report(ERROR,"EvtGen") << "Will terminate execution!"<<endl;
51 double EvtBtoXsgammaFixedMass::GetMass( int /*Xscode*/ ){