Line data Source code
1 : //--------------------------------------------------------------------------
2 : //
3 : // Environment:
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.
7 : //
8 : // Module: EvtBtoXsgammaKagan.cc
9 : //
10 : // Description:
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
14 :
15 : // Modification history:
16 : //
17 : // Jim Libby October 11 2002
18 : //------------------------------------------------------------------------
19 : //
20 :
21 : #include "EvtGenBase/EvtPatches.hh"
22 : #include <stdlib.h>
23 : #include "EvtGenModels/EvtBtoXsgamma.hh"
24 : #include "EvtGenModels/EvtBtoXsgammaFixedMass.hh"
25 : #include "EvtGenBase/EvtReport.hh"
26 : #include <fstream>
27 : using std::endl;
28 : using std::fstream;
29 :
30 0 : EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass(){
31 0 : }
32 :
33 : void EvtBtoXsgammaFixedMass::init(int nArg, double* args){
34 :
35 0 : if ((nArg) > 2 || (nArg > 1 && nArg <2)){
36 :
37 0 : report(Severity::Error,"EvtGen") << "EvtBtoXsgamma generator model "
38 0 : << "EvtBtoXsgammaFixedMass expected "
39 0 : << "either 1(default config) or two arguments but found: "<<nArg<<endl;
40 0 : report(Severity::Error,"EvtGen") << "Will terminate execution!"<<endl;
41 0 : ::abort();
42 : }
43 :
44 0 : if(nArg == 1){
45 0 : _mH = 2.0;
46 0 : }else{
47 0 : _mH=args[1];
48 : }
49 0 : }
50 :
51 : double EvtBtoXsgammaFixedMass::GetMass( int /*Xscode*/ ){
52 0 : return _mH;
53 : }
54 :
|