BOSS
7.1.1
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 <stdlib.h>
23
#include "
EvtGenModels/EvtBtoXsgamma.hh
"
24
#include "
EvtGenModels/EvtBtoXsgammaFixedMass.hh
"
25
#include <fstream>
26
using
std::endl;
27
using
std::fstream;
28
29
EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass
(){
30
}
31
32
void
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
50
double
EvtBtoXsgammaFixedMass::GetMass
(
int
Xscode ){
51
return
_mH;
52
}
53
EvtBtoXsgammaFixedMass.hh
EvtBtoXsgamma.hh
EvtPatches.hh
report
ostream & report(Severity severity, const char *facility)
Definition
EvtReport.cc:36
ERROR
@ ERROR
Definition
EvtReport.hh:49
EvtBtoXsgammaFixedMass::GetMass
double GetMass(int code)
Definition
EvtBtoXsgammaFixedMass.cc:50
EvtBtoXsgammaFixedMass::~EvtBtoXsgammaFixedMass
virtual ~EvtBtoXsgammaFixedMass()
Definition
EvtBtoXsgammaFixedMass.cc:29
EvtBtoXsgammaFixedMass::init
void init(int, double *)
Definition
EvtBtoXsgammaFixedMass.cc:32
7.1.1
Generator
BesEvtGen
BesEvtGen-00-04-28
src
EvtGen
EvtGenModels
EvtBtoXsgammaFixedMass.cc
Generated by
1.12.0