Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Peter Sherwood
athena
Commits
d9d5b59a
Commit
d9d5b59a
authored
6 years ago
by
Peter van Gemmeren
Browse files
Options
Downloads
Patches
Plain Diff
Manually switch on TTreeCache in case ROOT fails to do so by default.
Former-commit-id: 74f5adaa9764834181c913aea82bd54a76c0b6dc
parent
7ecf047e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Database/APR/RootStorageSvc/src/RootDatabase.cpp
+9
-2
9 additions, 2 deletions
Database/APR/RootStorageSvc/src/RootDatabase.cpp
Database/AthenaPOOL/AthenaPoolCnvSvc/python/ReadAthenaPool.py
+3
-0
3 additions, 0 deletions
...base/AthenaPOOL/AthenaPoolCnvSvc/python/ReadAthenaPool.py
with
12 additions
and
2 deletions
Database/APR/RootStorageSvc/src/RootDatabase.cpp
+
9
−
2
View file @
d9d5b59a
...
@@ -45,7 +45,7 @@ RootDatabase::RootDatabase() :
...
@@ -45,7 +45,7 @@ RootDatabase::RootDatabase() :
m_defBufferSize
(
16
*
1024
),
m_defBufferSize
(
16
*
1024
),
m_defWritePolicy
(
TObject
::
kOverwrite
),
// On write create new versions
m_defWritePolicy
(
TObject
::
kOverwrite
),
// On write create new versions
m_branchOffsetTabLen
(
0
),
m_branchOffsetTabLen
(
0
),
m_defTreeCacheLearnEvents
(
1
00
),
m_defTreeCacheLearnEvents
(
-
1
),
m_fileMgr
(
nullptr
)
m_fileMgr
(
nullptr
)
{
{
m_version
=
"1.1"
;
m_version
=
"1.1"
;
...
@@ -670,7 +670,14 @@ DbStatus RootDatabase::setOption(const DbOption& opt) {
...
@@ -670,7 +670,14 @@ DbStatus RootDatabase::setOption(const DbOption& opt) {
else
log
<<
DbPrintLvl
::
Debug
<<
"Got tree "
<<
tr
->
GetName
()
else
log
<<
DbPrintLvl
::
Debug
<<
"Got tree "
<<
tr
->
GetName
()
<<
" read entry "
<<
tr
->
GetReadEntry
()
<<
DbPrint
::
endmsg
;
<<
" read entry "
<<
tr
->
GetReadEntry
()
<<
DbPrint
::
endmsg
;
tr
->
SetCacheSize
(
cacheSize
);
tr
->
SetCacheSize
(
cacheSize
);
TTreeCache
::
SetLearnEntries
(
m_defTreeCacheLearnEvents
);
if
(
m_defTreeCacheLearnEvents
<
0
)
{
long
long
int
autoFlush
=
tr
->
GetAutoFlush
();
if
(
autoFlush
>
0
)
{
// Tree was written flushing on number of events
TTreeCache
::
SetLearnEntries
(
-
m_defTreeCacheLearnEvents
*
autoFlush
);
}
}
else
{
TTreeCache
::
SetLearnEntries
(
m_defTreeCacheLearnEvents
);
}
TTreeCache
*
cache
=
(
TTreeCache
*
)
m_file
->
GetCacheRead
();
TTreeCache
*
cache
=
(
TTreeCache
*
)
m_file
->
GetCacheRead
();
if
(
cache
)
{
if
(
cache
)
{
cache
->
SetEntryRange
(
0
,
tr
->
GetEntries
());
cache
->
SetEntryRange
(
0
,
tr
->
GetEntries
());
...
...
This diff is collapsed.
Click to expand it.
Database/AthenaPOOL/AthenaPoolCnvSvc/python/ReadAthenaPool.py
+
3
−
0
View file @
d9d5b59a
...
@@ -32,6 +32,9 @@ def _configureReadAthenaPool():
...
@@ -32,6 +32,9 @@ def _configureReadAthenaPool():
# Load the basic services
# Load the basic services
import
AthenaPoolCnvSvc.AthenaPool
import
AthenaPoolCnvSvc.AthenaPool
# Switch on TTreeCache for CollectionTree
svcMgr
.
AthenaPoolCnvSvc
.
InputPoolAttributes
+=
[
"
DatabaseName =
'
*
'
; ContainerName =
'
CollectionTree
'
; TREE_CACHE =
'
-1
'"
]
# Load ProxyProviderSvc
# Load ProxyProviderSvc
if
not
hasattr
(
svcMgr
,
'
ProxyProviderSvc
'
):
if
not
hasattr
(
svcMgr
,
'
ProxyProviderSvc
'
):
svcMgr
+=
CfgMgr
.
ProxyProviderSvc
()
svcMgr
+=
CfgMgr
.
ProxyProviderSvc
()
...
...
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