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
14
#include "
../EvtGenBase/EvtPatches.hh
"
15
16
// Modification history:
17
//
18
// Jim Libby October 11 2002
19
//------------------------------------------------------------------------
20
//
21
22
#include "
EvtBtoXsgamma.hh
"
23
#include "
EvtBtoXsgammaFixedMass.hh
"
24
#include <fstream>
25
#include <stdlib.h>
26
using
std::endl;
27
using
std::fstream;
28
29
EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass
() {}
30
31
void
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
48
double
EvtBtoXsgammaFixedMass::GetMass
(
int
Xscode ) {
return
_mH; }
EvtBtoXsgammaFixedMass.hh
EvtBtoXsgamma.hh
EvtPatches.hh
report
ostream & report(Severity severity, const char *facility)
Definition
EvtReport.cc:34
ERROR
@ ERROR
Definition
EvtReport.hh:49
EvtBtoXsgammaFixedMass::GetMass
double GetMass(int code)
Definition
EvtBtoXsgammaFixedMass.cc:48
EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass
virtual ~EvtBtoXsgammaFixedMass()
Definition
EvtBtoXsgammaFixedMass.cc:29
EvtBtoXsgammaFixedMass::init
void init(int, double *)
Definition
EvtBtoXsgammaFixedMass.cc:31
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenModels
EvtBtoXsgammaFixedMass.cc
Generated by
1.16.1