BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSLPole.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// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtSLPole.cc
12//
13// Description: Routine to implement semileptonic decays according
14// to light cone sum rules
15//
16// Modification history:
17//
18// DJL April 23, 1998 Module created
19//
20//------------------------------------------------------------------------
21//
22#include "EvtSLPole.hh"
31#include "EvtSLPoleFF.hh"
32#include <stdlib.h>
33#include <string>
34
36
37void EvtSLPole::getName( std::string& model_name ) { model_name = "SLPOLE"; }
38
40
42
44
45 calcamp->CalcAmp( p, _amp2, SLPoleffmodel );
46 return;
47}
48
50
51 EvtId parnum, mesnum, lnum, nunum;
52
53 parnum = getParentId();
54 mesnum = getDaug( 0 );
55 lnum = getDaug( 1 );
56 nunum = getDaug( 2 );
57
58 double mymaxprob = calcamp->CalcMaxProb( parnum, mesnum, lnum, nunum, SLPoleffmodel );
59
60 setProbMax( mymaxprob );
61}
62
64
65 checkNDaug( 3 );
66
67 // We expect the parent to be a scalar
68 // and the daughters to be X lepton neutrino
69
73
75
76 SLPoleffmodel = new EvtSLPoleFF( getNArg(), getArgs() );
77
78 if ( mesontype == EvtSpinType::SCALAR ) { calcamp = new EvtSemiLeptonicScalarAmp; }
79 if ( mesontype == EvtSpinType::VECTOR ) { calcamp = new EvtSemiLeptonicVectorAmp; }
80 if ( mesontype == EvtSpinType::TENSOR ) { calcamp = new EvtSemiLeptonicTensorAmp; }
81}
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void setProbMax(double prbmx)
EvtId getParentId()
double * getArgs()
void checkNDaug(int d1, int d2=-1)
EvtId * getDaugs()
EvtId getDaug(int i)
Definition EvtId.hh:27
static EvtSpinType::spintype getSpinType(EvtId i)
Definition EvtPDL.hh:66
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
virtual ~EvtSLPole()
Definition EvtSLPole.cc:35
void initProbMax()
Definition EvtSLPole.cc:49
void init()
Definition EvtSLPole.cc:63
EvtDecayBase * clone()
Definition EvtSLPole.cc:39
void decay(EvtParticle *p)
Definition EvtSLPole.cc:41
void getName(std::string &name)
Definition EvtSLPole.cc:37