BOSS 8.0.0
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 "EvtBtoXsgamma.hh"
24#include <fstream>
25#include <stdlib.h>
26using std::endl;
27using std::fstream;
28
30
31void EvtBtoXsgammaFixedMass::init( int nArg, double* args ) {
32
33 if ( ( nArg ) > 2 || ( nArg > 1 && nArg < 2 ) )
34 {
35
36 report( ERROR, "EvtGen" ) << "EvtBtoXsgamma generator model "
37 << "EvtBtoXsgammaFixedMass expected "
38 << "either 1(default config) or two arguments but found: "
39 << nArg << endl;
40 report( ERROR, "EvtGen" ) << "Will terminate execution!" << endl;
41 ::abort();
42 }
43
44 if ( nArg == 1 ) { _mH = 2.0; }
45 else { _mH = args[1]; }
46}
47
48double EvtBtoXsgammaFixedMass::GetMass( int Xscode ) { return _mH; }
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:34
@ ERROR
Definition EvtReport.hh:49