CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtBtoXsgammaFixedMass.cc
Go to the documentation of this file.
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
15
16// Modification history:
17//
18// Jim Libby October 11 2002
19//------------------------------------------------------------------------
20//
21
22#include <stdlib.h>
25#include <fstream>
26using std::endl;
27using std::fstream;
28
31
32void EvtBtoXsgammaFixedMass::init(int nArg, double* args){
33
34 if ((nArg) > 2 || (nArg > 1 && nArg <2)){
35
36 report(ERROR,"EvtGen") << "EvtBtoXsgamma generator model "
37 << "EvtBtoXsgammaFixedMass expected "
38 << "either 1(default config) or two arguments but found: "<<nArg<<endl;
39 report(ERROR,"EvtGen") << "Will terminate execution!"<<endl;
40 ::abort();
41 }
42
43 if(nArg == 1){
44 _mH = 2.0;
45 }else{
46 _mH=args[1];
47 }
48}
49
51 return _mH;
52}
53
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:36
@ ERROR
Definition EvtReport.hh:49