Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251111
EvtSLBKPole.cpp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
EvtSLBKPole.cpp
View Options
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* *
* EvtGen is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* EvtGen is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
***********************************************************************/
#include
"EvtGenModels/EvtSLBKPole.hh" //modified
#include
"EvtGenBase/EvtGenKine.hh"
#include
"EvtGenBase/EvtPDL.hh"
#include
"EvtGenBase/EvtParticle.hh"
#include
"EvtGenBase/EvtReport.hh"
#include
"EvtGenBase/EvtSemiLeptonicScalarAmp.hh"
#include
"EvtGenBase/EvtSemiLeptonicTensorAmp.hh"
#include
"EvtGenBase/EvtSemiLeptonicVectorAmp.hh"
#include
"EvtGenModels/EvtSLBKPoleFF.hh" //modified
#include
<stdlib.h>
#include
<string>
std
::
string
EvtSLBKPole
::
getName
()
{
return
"SLBKPOLE"
;
//modified
}
EvtDecayBase
*
EvtSLBKPole
::
clone
()
{
//modified
return
new
EvtSLBKPole
;
}
void
EvtSLBKPole
::
decay
(
EvtParticle
*
p
)
{
//modified
p
->
initializePhaseSpace
(
getNDaug
(),
getDaugs
()
);
calcamp
->
CalcAmp
(
p
,
_amp2
,
SLBKPoleffmodel
.
get
()
);
//modified
return
;
}
void
EvtSLBKPole
::
initProbMax
()
{
EvtId
parnum
,
mesnum
,
lnum
,
nunum
;
parnum
=
getParentId
();
mesnum
=
getDaug
(
0
);
lnum
=
getDaug
(
1
);
nunum
=
getDaug
(
2
);
double
mymaxprob
=
calcamp
->
CalcMaxProb
(
parnum
,
mesnum
,
lnum
,
nunum
,
SLBKPoleffmodel
.
get
()
);
//modified
setProbMax
(
mymaxprob
);
}
void
EvtSLBKPole
::
init
()
{
//modified
checkNDaug
(
3
);
//We expect the parent to be a scalar
//and the daughters to be X lepton neutrino
checkSpinParent
(
EvtSpinType
::
SCALAR
);
checkSpinDaughter
(
1
,
EvtSpinType
::
DIRAC
);
checkSpinDaughter
(
2
,
EvtSpinType
::
NEUTRINO
);
EvtSpinType
::
spintype
mesontype
=
EvtPDL
::
getSpinType
(
getDaug
(
0
)
);
SLBKPoleffmodel
=
std
::
make_unique
<
EvtSLBKPoleFF
>
(
getNArg
(),
getArgs
()
);
//modified
switch
(
mesontype
)
{
case
EvtSpinType
::
SCALAR
:
calcamp
=
std
::
make_unique
<
EvtSemiLeptonicScalarAmp
>
();
break
;
case
EvtSpinType
::
VECTOR
:
calcamp
=
std
::
make_unique
<
EvtSemiLeptonicVectorAmp
>
();
break
;
case
EvtSpinType
::
TENSOR
:
calcamp
=
std
::
make_unique
<
EvtSemiLeptonicTensorAmp
>
();
break
;
default
:
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 5:47 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6566367
Default Alt Text
EvtSLBKPole.cpp (3 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment