Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pawian
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PWA
Pawian
Commits
9dc12e2f
Commit
9dc12e2f
authored
12 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
added Flatte parametrization in JpsiToPhiPhiGam
parent
e76662df
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Examples/JpsiToPhiPhiGam/XToPhiPhiDecAmps.cc
+38
-6
38 additions, 6 deletions
Examples/JpsiToPhiPhiGam/XToPhiPhiDecAmps.cc
Examples/JpsiToPhiPhiGam/XToPhiPhiDecAmps.hh
+8
-0
8 additions, 0 deletions
Examples/JpsiToPhiPhiGam/XToPhiPhiDecAmps.hh
with
46 additions
and
6 deletions
Examples/JpsiToPhiPhiGam/XToPhiPhiDecAmps.cc
+
38
−
6
View file @
9dc12e2f
...
...
@@ -12,7 +12,14 @@ XToPhiPhiDecAmps::XToPhiPhiDecAmps(const std::string& name, const std::vector<st
AbsXdecAmp
(
name
,
hypVec
,
spinX
,
parity
)
,
_phiPhiKey
(
name
+
"ToPhiPhi"
)
,
_xBWKey
(
name
+
"BreitWigner"
)
,
_xFlatteKey
(
name
+
"Flatte"
)
,
_massIndependent
(
true
)
,
_bwMassFit
(
false
)
,
_flatteMassFit
(
false
)
,
_phiMass
(
1.019455
)
,
_omegaMass
(
0.78265
)
,
_phiPhiPair
(
make_pair
(
_phiMass
,
_phiMass
))
,
_omegaPhiPair
(
make_pair
(
_omegaMass
,
_phiMass
))
,
_theStatesPtr
(
theStates
)
{
initialize
();
...
...
@@ -30,9 +37,19 @@ complex<double> XToPhiPhiDecAmps::XdecAmp(Spin lamX, EvtDataNew* theData, fitPar
complex
<
double
>
dynModel
(
1.
,
0.
);
if
(
!
_massIndependent
){
double
xMass
=
theParamVal
.
Masses
[
_name
];
double
xWidth
=
theParamVal
.
Widths
[
_name
];
Vector4
<
double
>
p4PhiPhi
=
theData
->
FourVecsDec
[
enumJpsiGamX4V
::
V4_KsKlKpKm_HeliPsi
];
dynModel
=
BreitWigner
(
p4PhiPhi
,
xMass
,
xWidth
);
if
(
_bwMassFit
){
double
xWidth
=
theParamVal
.
Widths
[
_name
];
dynModel
=
BreitWigner
(
p4PhiPhi
,
xMass
,
xWidth
);
}
else
if
(
_flatteMassFit
){
std
::
string
phiPhiGFactorKey
=
"gFactorPhiPhi_"
+
_name
;
std
::
string
omegaPhiFactorKey
=
"gFactorOmegaPhi_"
+
_name
;
double
gFactorPhiPhi
=
theParamVal
.
gFactors
[
phiPhiGFactorKey
];
double
gFactorOmegaPhi
=
theParamVal
.
gFactors
[
omegaPhiFactorKey
];
dynModel
=
Flatte
(
p4PhiPhi
,
_phiPhiPair
,
_omegaPhiPair
,
xMass
,
gFactorPhiPhi
,
gFactorOmegaPhi
);
}
}
result
*=
dynModel
;
...
...
@@ -119,8 +136,19 @@ void XToPhiPhiDecAmps::getDefaultParams(fitParamsNew& fitVal, fitParamsNew& fit
fitVal
.
Masses
[
_name
]
=
MassGeV
;
fitErr
.
Masses
[
_name
]
=
0.01
;
fitVal
.
Widths
[
_name
]
=
0.2
;
fitErr
.
Widths
[
_name
]
=
0.02
;
if
(
_bwMassFit
){
fitVal
.
Widths
[
_name
]
=
0.2
;
fitErr
.
Widths
[
_name
]
=
0.02
;
}
else
if
(
_flatteMassFit
){
std
::
string
phiPhiGFactorKey
=
"gFactorPhiPhi_"
+
_name
;
std
::
string
omegaPhiGFactorKey
=
"gFactorOmegaPhi_"
+
_name
;
fitVal
.
gFactors
[
phiPhiGFactorKey
]
=
0.3
;
fitVal
.
gFactors
[
omegaPhiGFactorKey
]
=
0.3
;
fitErr
.
gFactors
[
phiPhiGFactorKey
]
=
0.2
;
fitErr
.
gFactors
[
omegaPhiGFactorKey
]
=
0.2
;
}
}
}
...
...
@@ -132,11 +160,15 @@ void XToPhiPhiDecAmps::initialize(){
std
::
vector
<
std
::
string
>::
const_iterator
it
;
for
(
it
=
_hypVec
.
begin
();
it
!=
_hypVec
.
end
();
++
it
){
if
(
it
->
compare
(
0
,
_xBWKey
.
size
(),
_xBWKey
)
==
0
){
_bwMassFit
=
true
;
_massIndependent
=
false
;
}
else
if
(
it
->
compare
(
0
,
_xFlatteKey
.
size
(),
_xFlatteKey
)
==
0
){
_flatteMassFit
=
true
;
_massIndependent
=
false
;
}
}
}
This diff is collapsed.
Click to expand it.
Examples/JpsiToPhiPhiGam/XToPhiPhiDecAmps.hh
+
8
−
0
View file @
9dc12e2f
...
...
@@ -36,8 +36,16 @@ public:
protected:
const
std
::
string
_phiPhiKey
;
const
std
::
string
_xBWKey
;
const
std
::
string
_xFlatteKey
;
bool
_massIndependent
;
bool
_bwMassFit
;
bool
_flatteMassFit
;
const
double
_phiMass
;
const
double
_omegaMass
;
pair
<
const
double
,
const
double
>
_phiPhiPair
;
pair
<
const
double
,
const
double
>
_omegaPhiPair
;
boost
::
shared_ptr
<
JpsiToPhiPhiGamStates
>
_theStatesPtr
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment