Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CAFCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
atlas-caf
CAFCore
Commits
e2e61768
Commit
e2e61768
authored
4 years ago
by
Benedict Winter
Browse files
Options
Downloads
Patches
Plain Diff
Add 'componentFilter' for TransferSystematics to transfer OverallSys or Histosys only
parent
f3688ece
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!664
analysis developments
,
!611
WIP: Histogram processing harmonization
Pipeline
#1914208
passed
4 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SFramework/Root/ActionTransferSystematics.cxx
+5
-0
5 additions, 0 deletions
SFramework/Root/ActionTransferSystematics.cxx
with
5 additions
and
0 deletions
SFramework/Root/ActionTransferSystematics.cxx
+
5
−
0
View file @
e2e61768
...
...
@@ -42,6 +42,7 @@ namespace TSBaseActions {
bool
performTransfer
(
TQFolder
*
config
,
TQFolder
*
model
)
const
{
TString
mode
=
config
->
getTagStringDefault
(
"mode"
,
"sample"
);
TString
componentFilter
=
config
->
getTagStringDefault
(
"componentFilter"
,
"OverallSysHistoSys"
);
TQFolder
*
histograms
=
model
->
getFolder
(
".Histograms"
);
bool
verbose
=
config
->
getTagBoolDefault
(
"~verbose"
,
false
);
...
...
@@ -101,6 +102,8 @@ namespace TSBaseActions {
if
(
verbose
)
manager
->
info
(
TString
::
Format
(
"
\t
for sample '%s'"
,
sample
->
GetName
()));
sample
->
deleteObject
(
".Dropped!"
);
for
(
const
auto
&
systType
:
{
TString
(
"OverallSys."
),
TString
(
"HistoSys."
)})
{
if
(
componentFilter
==
"OverallSys"
and
systType
==
"HistoSys."
)
continue
;
if
(
componentFilter
==
"HistoSys"
and
systType
==
"OverallSys."
)
continue
;
std
::
vector
<
TQFolder
*>
remove
;
{
TQFolderIterator
oldsystematics
(
sample
->
getListOfFolders
(
systType
+
"*"
),
true
);
...
...
@@ -190,6 +193,8 @@ namespace TSBaseActions {
if
(
verbose
)
manager
->
info
(
TString
::
Format
(
"
\t
for sample '%s'"
,
sample
->
GetName
()));
sample
->
deleteObject
(
".Dropped!"
);
for
(
const
auto
&
systType
:
{
TString
(
"OverallSys."
),
TString
(
"HistoSys."
)})
{
if
(
componentFilter
==
"OverallSys"
and
systType
==
"HistoSys."
)
continue
;
if
(
componentFilter
==
"HistoSys"
and
systType
==
"OverallSys."
)
continue
;
std
::
vector
<
TQFolder
*>
remove
;
{
TQFolderIterator
oldsystematics
(
sample
->
getListOfFolders
(
systType
+
"*"
),
true
);
...
...
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