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
5d1339b0
Commit
5d1339b0
authored
13 years ago
by
Marc Pelizaeus
Browse files
Options
Downloads
Patches
Plain Diff
Modify MJpsiGamKlKsKKApp
parent
486ce18d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/JpsiGamKsKlKK/MJpsiGamKlKsKKApp.cc
+29
-26
29 additions, 26 deletions
Examples/JpsiGamKsKlKK/MJpsiGamKlKsKKApp.cc
with
29 additions
and
26 deletions
Examples/JpsiGamKsKlKK/MJpsiGamKlKsKKApp.cc
+
29
−
26
View file @
5d1339b0
...
@@ -222,6 +222,35 @@ int main(int __argc,char *__argv[]){
...
@@ -222,6 +222,35 @@ int main(int __argc,char *__argv[]){
JpsiGamKsKlKKHist
theHist
(
theLhPtr
,
theStartparams
);
JpsiGamKsKlKKHist
theHist
(
theLhPtr
,
theStartparams
);
if
(
theAppParams
.
massIndependentFit
()){
//calculate intensity contributions
JpsiGamKsKlKKProdLh
*
contrLh
=
new
JpsiGamKsKlKKProdLh
(
theJpsiGamKsKlKKEventListPtr
,
hypMap
);
contrLh
->
massIndependentFit
(
theAppParams
.
massIndependentFit
()
);
contrLh
->
useCommonProductionPhase
(
theAppParams
.
useCommonProductionPhases
()
);
boost
::
shared_ptr
<
const
EvtDataBaseList
>
theEvtList
=
contrLh
->
getEventList
();
const
std
::
vector
<
EvtData
*>
mcList
=
theEvtList
->
getMcVecs
();
const
std
::
vector
<
EvtData
*>
dataList
=
theEvtList
->
getDataVecs
();
std
::
map
<
const
std
::
string
,
bool
>::
const_iterator
hypo
=
hypMap
.
begin
();
while
(
hypo
!=
hypMap
.
end
()){
if
(
hypo
->
second
){
std
::
vector
<
EvtData
*>::
const_iterator
it
=
mcList
.
begin
();
double
integral
=
0.0
;
while
(
it
!=
mcList
.
end
()){
integral
+=
contrLh
->
calcComponentIntensity
(
*
it
,
theStartparams
,
hypo
->
first
);
it
++
;
}
double
scale
=
(
1.
*
dataList
.
size
())
/
(
1.
*
mcList
.
size
())
;
Info
<<
"Scale factor: "
<<
scale
<<
endmsg
;
integral
*=
scale
;
Info
<<
"Events for component "
<<
hypo
->
first
<<
": "
<<
integral
<<
endmsg
;
}
hypo
++
;
}
}
end
=
clock
();
end
=
clock
();
double
cpuTime
=
(
end
-
start
)
/
(
CLOCKS_PER_SEC
);
double
cpuTime
=
(
end
-
start
)
/
(
CLOCKS_PER_SEC
);
Info
<<
"cpuTime:
\t
"
<<
cpuTime
<<
"
\t
sec"
<<
endmsg
;
Info
<<
"cpuTime:
\t
"
<<
cpuTime
<<
"
\t
sec"
<<
endmsg
;
...
@@ -262,32 +291,6 @@ int main(int __argc,char *__argv[]){
...
@@ -262,32 +291,6 @@ int main(int __argc,char *__argv[]){
const
std
::
vector
<
double
>
finalParamVec
=
finalUsrParameters
.
Params
();
const
std
::
vector
<
double
>
finalParamVec
=
finalUsrParameters
.
Params
();
fitParams
finalFitParams
=
theFitParamBase
->
getFitParamVal
(
finalParamVec
);
fitParams
finalFitParams
=
theFitParamBase
->
getFitParamVal
(
finalParamVec
);
//calculate intensity contributions
JpsiGamKsKlKKProdLh
*
contrLh
=
new
JpsiGamKsKlKKProdLh
(
theJpsiGamKsKlKKEventListPtr
,
hypMap
);
contrLh
->
massIndependentFit
(
theAppParams
.
massIndependentFit
()
);
contrLh
->
useCommonProductionPhase
(
theAppParams
.
useCommonProductionPhases
()
);
boost
::
shared_ptr
<
const
EvtDataBaseList
>
theEvtList
=
contrLh
->
getEventList
();
const
std
::
vector
<
EvtData
*>
mcList
=
theEvtList
->
getDataVecs
();
std
::
map
<
const
std
::
string
,
bool
>::
const_iterator
hypo
=
hypMap
.
begin
();
while
(
hypo
!=
hypMap
.
end
()){
if
(
hypo
->
second
){
std
::
vector
<
EvtData
*>::
const_iterator
it
=
mcList
.
begin
();
double
integral
=
0.0
;
while
(
it
!=
mcList
.
end
()){
integral
+=
contrLh
->
calcComponentIntensity
(
*
it
,
finalFitParams
,
hypo
->
first
);
//integral+= theLhPtr->calcComponentIntensity( *it, finalFitParams, "etacHyp" );
it
++
;
}
Info
<<
"Events for component "
<<
hypo
->
first
<<
": "
<<
integral
<<
endmsg
;
}
hypo
++
;
}
JpsiGamKsKlKKHist
theHist
(
theLhPtr
,
finalFitParams
);
JpsiGamKsKlKKHist
theHist
(
theLhPtr
,
finalFitParams
);
...
...
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