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
8ef866f7
Commit
8ef866f7
authored
12 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
minor changes in D0ToKsPipPim
parent
c96016e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Examples/D0ToKsPipPim/D0ToKPiSPiDec.cc
+18
-18
18 additions, 18 deletions
Examples/D0ToKsPipPim/D0ToKPiSPiDec.cc
PwaUtils/AbsLhNew.cc
+4
-2
4 additions, 2 deletions
PwaUtils/AbsLhNew.cc
PwaUtils/AbsLhNew.hh
+1
-0
1 addition, 0 deletions
PwaUtils/AbsLhNew.hh
with
23 additions
and
20 deletions
Examples/D0ToKsPipPim/D0ToKPiSPiDec.cc
+
18
−
18
View file @
8ef866f7
...
...
@@ -102,22 +102,22 @@ void D0ToKPiSPiDec::print(std::ostream& os) const{
void
D0ToKPiSPiDec
::
initialize
(){
_currentaProdMap
[
_name
+
"a_Kpi"
]
=
1.
;
_currentaProdMap
[
_name
+
"a_Kpi
PosNeg
"
]
=
1.
;
_currentbProdMap
[
_name
+
"b_Kpi"
]
=
1.
;
_currentbProdMap
[
_name
+
"b_Kpi
PosNeg
"
]
=
1.
;
_currentcProdMap
[
_name
+
"c_Kpi"
]
=
1.
;
_currentcProdMap
[
_name
+
"c_Kpi
PosNeg
"
]
=
1.
;
_currentphaseProdMap
[
_name
+
"
phi
_KpiP
osNeg
"
]
=
0.
;
_currentphaseProdMap
[
_name
+
"_KpiP
hi
"
]
=
0.
;
if
(
_name
==
_iso1Key
){
_iso1Hyp
=
true
;
_currentbFactorMap
[
_name
+
"b_pole1Mag"
]
=
1.
;
_currentbFactorMap
[
_name
+
"b_pole1Phi
PosNeg
"
]
=
0.
;
_currentaProdMap
[
_name
+
"a_Ketap
"
]
=
0.5
;
_currentbProdMap
[
_name
+
"b_Ketap"
]
=
0.5
;
_currentcProdMap
[
_name
+
"c_Ketap"
]
=
0.5
;
_currentphaseProdMap
[
_name
+
"
phi
_KetapP
osNeg
"
]
=
0.
;
_currentbFactorMap
[
_name
+
"b_pole1Phi"
]
=
0.
;
_currentaProdMap
[
_name
+
"a_Ketap
PosNeg"
]
=
1.
;
_currentbProdMap
[
_name
+
"b_Ketap
PosNeg
"
]
=
0.5
;
_currentcProdMap
[
_name
+
"c_Ketap
PosNeg
"
]
=
0.5
;
_currentphaseProdMap
[
_name
+
"_KetapP
hi
"
]
=
0.
;
_kMatr
=
boost
::
shared_ptr
<
KMatrixKPiSFocus
>
(
new
KMatrixKPiSFocus
(
1
));
}
else
if
(
_name
==
_iso3Key
){
...
...
@@ -198,7 +198,7 @@ void D0ToKPiSPiDec::updateFitParams(fitParamsNew& theParamVal){
}
complex
<
double
>
b_pole1
=
_currentbFactorMap
[
_name
+
"b_pole1Mag"
]
*
complex
<
double
>
(
cos
(
_currentbFactorMap
[
_name
+
"b_pole1Phi
PosNeg
"
]),
sin
(
_currentbFactorMap
[
_name
+
"b_pole1Phi
PosNeg
"
]));
complex
<
double
>
b_pole1
=
_currentbFactorMap
[
_name
+
"b_pole1Mag"
]
*
complex
<
double
>
(
cos
(
_currentbFactorMap
[
_name
+
"b_pole1Phi"
]),
sin
(
_currentbFactorMap
[
_name
+
"b_pole1Phi"
]));
_pVec
->
updateBeta
(
0
,
b_pole1
);
}
...
...
@@ -222,15 +222,15 @@ void D0ToKPiSPiDec::updateFitParams(fitParamsNew& theParamVal){
it
->
second
=
currentphaseFactor
;
}
_pVec
->
updateAprod
(
0
,
_currentaProdMap
[
_name
+
"a_Kpi"
]);
_pVec
->
updateBprod
(
0
,
_currentbProdMap
[
_name
+
"b_Kpi"
]);
_pVec
->
updateCprod
(
0
,
_currentcProdMap
[
_name
+
"c_Kpi"
]);
_pVec
->
updatePhaseprod
(
0
,
_currentphaseProdMap
[
_name
+
"
phi
_KpiP
osNeg
"
]);
_pVec
->
updateAprod
(
0
,
_currentaProdMap
[
_name
+
"a_Kpi
PosNeg
"
]);
_pVec
->
updateBprod
(
0
,
_currentbProdMap
[
_name
+
"b_Kpi
PosNeg
"
]);
_pVec
->
updateCprod
(
0
,
_currentcProdMap
[
_name
+
"c_Kpi
PosNeg
"
]);
_pVec
->
updatePhaseprod
(
0
,
_currentphaseProdMap
[
_name
+
"_KpiP
hi
"
]);
if
(
_iso1Hyp
){
_pVec
->
updateAprod
(
1
,
_currentaProdMap
[
_name
+
"a_Ketap"
]);
_pVec
->
updateBprod
(
1
,
_currentbProdMap
[
_name
+
"b_Ketap"
]);
_pVec
->
updateCprod
(
1
,
_currentcProdMap
[
_name
+
"c_Ketap"
]);
_pVec
->
updatePhaseprod
(
1
,
_currentphaseProdMap
[
_name
+
"
phi
_KetapP
osNeg
"
]);
_pVec
->
updateAprod
(
1
,
_currentaProdMap
[
_name
+
"a_Ketap
PosNeg
"
]);
_pVec
->
updateBprod
(
1
,
_currentbProdMap
[
_name
+
"b_Ketap
PosNeg
"
]);
_pVec
->
updateCprod
(
1
,
_currentcProdMap
[
_name
+
"c_Ketap
PosNeg
"
]);
_pVec
->
updatePhaseprod
(
1
,
_currentphaseProdMap
[
_name
+
"_KetapP
hi
"
]);
}
}
This diff is collapsed.
Click to expand it.
PwaUtils/AbsLhNew.cc
+
4
−
2
View file @
8ef866f7
...
...
@@ -13,6 +13,7 @@
AbsLhNew
::
AbsLhNew
(
boost
::
shared_ptr
<
const
EvtDataBaseListNew
>
theEvtList
)
:
_evtListPtr
(
theEvtList
)
,
_cacheAmps
(
false
)
,
_calcCounter
(
0
)
{
_evtDataVec
=
_evtListPtr
->
getDataVecs
();
_evtMCVec
=
_evtListPtr
->
getMcVecs
();
...
...
@@ -21,6 +22,7 @@ AbsLhNew::AbsLhNew(boost::shared_ptr<const EvtDataBaseListNew> theEvtList) :
AbsLhNew
::
AbsLhNew
(
boost
::
shared_ptr
<
AbsLhNew
>
theAbsLhPtr
)
:
_evtListPtr
(
theAbsLhPtr
->
getEventList
())
,
_cacheAmps
(
false
)
,
_calcCounter
(
0
)
{
_evtDataVec
=
_evtListPtr
->
getDataVecs
();
_evtMCVec
=
_evtListPtr
->
getMcVecs
();
...
...
@@ -31,8 +33,8 @@ AbsLhNew::~AbsLhNew()
}
double
AbsLhNew
::
calcLogLh
(
fitParamsNew
&
theParamVal
){
if
(
_cacheAmps
)
checkParamVariation
(
theParamVal
);
_calcCounter
++
;
if
(
_cacheAmps
&&
_calcCounter
>
1
)
checkParamVariation
(
theParamVal
);
updateFitParams
(
theParamVal
);
double
logLH
=
0.
;
...
...
This diff is collapsed.
Click to expand it.
PwaUtils/AbsLhNew.hh
+
1
−
0
View file @
8ef866f7
...
...
@@ -35,6 +35,7 @@ protected:
std
::
vector
<
EvtDataNew
*>
_evtMCVec
;
std
::
map
<
const
std
::
string
,
bool
>
_hypMap
;
bool
_cacheAmps
;
unsigned
int
_calcCounter
;
std
::
map
<
std
::
string
,
boost
::
shared_ptr
<
AbsXdecAmp
>
>
_allDecAmpMap
;
...
...
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