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
853ca358
Commit
853ca358
authored
8 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
minor bug fix for performing qa with efficiency correction
parent
e809e087
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
ConfigParser/ParserBase.cc
+3
-0
3 additions, 0 deletions
ConfigParser/ParserBase.cc
ConfigParser/ParserBase.hh
+2
-0
2 additions, 0 deletions
ConfigParser/ParserBase.hh
PwaApps/singleChannelApp.cc
+1
-1
1 addition, 1 deletion
PwaApps/singleChannelApp.cc
with
6 additions
and
1 deletion
ConfigParser/ParserBase.cc
+
3
−
0
View file @
853ca358
...
...
@@ -64,6 +64,7 @@ ParserBase::ParserBase(int argc,char **argv)
,
_config
(
new
po
::
options_description
(
"Configuration file options"
))
,
_useDataEvtWeight
(
false
)
,
_useMCEvtWeight
(
false
)
,
_useTruthEvtWeight
(
false
)
,
_usePhaseSpaceHyp
(
false
)
,
_doScaling
(
false
)
,
_pdgTableFile
(
"/Particle/pdtNew.table"
)
...
...
@@ -122,6 +123,7 @@ ParserBase::ParserBase(int argc,char **argv)
(
"saveContributionHistos"
,
po
::
value
<
bool
>
(
&
_saveContributionHistos
),
"creates a histogram root-file for each contribution of Option: calcContribution"
)
(
"useDataEventWeight"
,
po
::
value
<
bool
>
(
&
_useDataEvtWeight
),
"enable/disable input for data event weight"
)
(
"useMCEventWeight"
,
po
::
value
<
bool
>
(
&
_useMCEvtWeight
),
"enable/disable input for Monte Carlo event weight"
)
(
"useTruthEventWeight"
,
po
::
value
<
bool
>
(
&
_useTruthEvtWeight
),
"enable/disable input for truth event weight"
)
(
"usePhaseSpaceHyp"
,
po
::
value
<
bool
>
(
&
_usePhaseSpaceHyp
),
"use hypothesis for phase space"
)
(
"doScaling"
,
po
::
value
<
bool
>
(
&
_doScaling
),
"enable/disable prefit with free scaling factor"
)
(
"name"
,
po
::
value
<
string
>
(
&
_outputFileNameSuffix
),
"name that is attached to all otuput file names"
)
...
...
@@ -247,6 +249,7 @@ bool ParserBase::parseCommandLine(int argc, char **argv)
<<
"cache amplitudes: "
<<
_cacheAmps
<<
"
\n\n
"
<<
"use data event weight: "
<<
_useDataEvtWeight
<<
"
\n\n
"
<<
"use Monte Carlo event weight: "
<<
_useMCEvtWeight
<<
"
\n\n
"
<<
"use truth event weight: "
<<
_useTruthEvtWeight
<<
"
\n\n
"
<<
"use phase space hyp: "
<<
_usePhaseSpaceHyp
<<
"
\n\n
"
<<
"prefit with free scaling factor: "
<<
_doScaling
<<
"
\n\n
"
<<
"pdg table: "
<<
_pdgTableFile
<<
"
\n\n
"
...
...
This diff is collapsed.
Click to expand it.
ConfigParser/ParserBase.hh
+
2
−
0
View file @
853ca358
...
...
@@ -82,6 +82,7 @@ public:
const
bool
saveContributionHistos
()
const
{
return
_saveContributionHistos
;}
const
bool
useDataEvtWeight
()
const
{
return
_useDataEvtWeight
;
}
const
bool
useMCEvtWeight
()
const
{
return
_useMCEvtWeight
;
}
const
bool
useTruthEvtWeight
()
const
{
return
_useTruthEvtWeight
;
}
const
bool
usePhaseSpaceHyp
()
const
{
return
_usePhaseSpaceHyp
;
}
const
bool
doScaling
()
const
{
return
_doScaling
;}
const
std
::
string
pdgTableFile
()
const
{
return
_pdgTableFile
;}
...
...
@@ -150,6 +151,7 @@ protected:
po
::
options_description
*
_config
;
bool
_useDataEvtWeight
;
bool
_useMCEvtWeight
;
bool
_useTruthEvtWeight
;
bool
_usePhaseSpaceHyp
;
bool
_doScaling
;
std
::
string
_pdgTableFile
;
...
...
This diff is collapsed.
Click to expand it.
PwaApps/singleChannelApp.cc
+
1
−
1
View file @
853ca358
...
...
@@ -249,7 +249,7 @@ int main(int __argc,char *__argv[]){
std
::
vector
<
std
::
string
>
truthFileNames
;
truthFileNames
.
push_back
(
truthFile
);
EventList
truthData
;
theAppBase
.
readEvents
(
truthData
,
truthFileNames
,
0
,
GlobalEnv
::
instance
()
->
Channel
()
->
use
MC
EvtWeight
(),
0
,
maxTruthEvts
-
1
);
theAppBase
.
readEvents
(
truthData
,
truthFileNames
,
0
,
GlobalEnv
::
instance
()
->
parser
()
->
use
Truth
EvtWeight
(),
0
,
maxTruthEvts
-
1
);
theAppBase
.
qaModeEffCorrection
(
eventsData
,
mcData
,
truthData
,
startPawianParams
);
return
1
;
}
...
...
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