Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251488
EvtVPHOtoV.cpp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
EvtVPHOtoV.cpp
View Options
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Information: See EvtGen/COPYRIGHT
// Copyright (C) 2004 Cornell
//
// Module: EvtVPHOtoV.cc
//
// Description: Routine to decay vpho -> vector
//
// Modification history:
//
// Ryd March 9, 2004 Module created
//
//------------------------------------------------------------------------
//
#include
<stdlib.h>
#include
"EvtGenBase/EvtParticle.hh"
#include
"EvtGenBase/EvtGenKine.hh"
#include
"EvtGenBase/EvtPDL.hh"
#include
"EvtGenBase/EvtVector4C.hh"
#include
"EvtGenBase/EvtVector4R.hh"
#include
"EvtGenBase/EvtReport.hh"
#include
"EvtGenModels/EvtVPHOtoV.hh"
#include
<string>
EvtVPHOtoV
::~
EvtVPHOtoV
()
{}
std
::
string
EvtVPHOtoV
::
getName
(){
return
"VPHOTOV"
;
}
EvtDecayBase
*
EvtVPHOtoV
::
clone
(){
return
new
EvtVPHOtoV
;
}
void
EvtVPHOtoV
::
init
(){
// check that there are 0 arguments
checkNArg
(
0
);
// check that there are 1 daughters
checkNDaug
(
1
);
// check the parent and daughter spins
checkSpinParent
(
EvtSpinType
::
VECTOR
);
checkSpinDaughter
(
0
,
EvtSpinType
::
VECTOR
);
}
void
EvtVPHOtoV
::
initProbMax
()
{
setProbMax
(
1.0
);
}
void
EvtVPHOtoV
::
decay
(
EvtParticle
*
p
){
p
->
initializePhaseSpace
(
getNDaug
(),
getDaugs
());
EvtParticle
*
d
=
p
->
getDaug
(
0
);
d
->
setP4
(
p
->
getP4Restframe
());
vertex
(
0
,
0
,
p
->
eps
(
0
)
*
p
->
epsParent
(
0
).
conj
());
vertex
(
1
,
0
,
p
->
eps
(
1
)
*
p
->
epsParent
(
0
).
conj
());
vertex
(
2
,
0
,
p
->
eps
(
2
)
*
p
->
epsParent
(
0
).
conj
());
vertex
(
0
,
1
,
p
->
eps
(
0
)
*
p
->
epsParent
(
1
).
conj
());
vertex
(
1
,
1
,
p
->
eps
(
1
)
*
p
->
epsParent
(
1
).
conj
());
vertex
(
2
,
1
,
p
->
eps
(
2
)
*
p
->
epsParent
(
1
).
conj
());
vertex
(
0
,
2
,
p
->
eps
(
0
)
*
p
->
epsParent
(
2
).
conj
());
vertex
(
1
,
2
,
p
->
eps
(
1
)
*
p
->
epsParent
(
2
).
conj
());
vertex
(
2
,
2
,
p
->
eps
(
2
)
*
p
->
epsParent
(
2
).
conj
());
return
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 5:56 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6549419
Default Alt Text
EvtVPHOtoV.cpp (1 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment