ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
EventLoop
Root
TreeCacheModule.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
9
//
10
// includes
11
//
12
13
#include <
EventLoop/TreeCacheModule.h
>
14
15
#include <
EventLoop/Job.h
>
16
#include <
EventLoop/ModuleData.h
>
17
#include <TTree.h>
18
19
//
20
// method implementations
21
//
22
23
namespace
EL
24
{
25
namespace
Detail
26
{
27
StatusCode
TreeCacheModule ::
28
onNewInputFile (
ModuleData
& data)
29
{
30
if
(data.m_inputTree)
31
{
32
if
(
cacheSize
.value() > 0)
33
data.m_inputTree->SetCacheSize (
cacheSize
.value());
34
if
(
cacheLearnEntries
.value() > 0)
35
data.m_inputTree->SetCacheLearnEntries (
cacheLearnEntries
.value());
36
}
37
return
StatusCode::SUCCESS;
38
}
39
40
41
42
StatusCode
TreeCacheModule ::
43
onCloseInputFile (
ModuleData
& data)
44
{
45
if
(
printPerFileStats
.value() && data.m_inputTree)
46
{
47
ANA_MSG_INFO
(
"file stats for: "
<< data.m_inputFileUrl);
48
data.m_inputTree->PrintCacheStats ();
49
}
50
return
StatusCode::SUCCESS;
51
}
52
}
53
}
ANA_MSG_INFO
#define ANA_MSG_INFO(xmsg,...)
Macro printing info messages.
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:291
Job.h
ModuleData.h
TreeCacheModule.h
EL::Detail::TreeCacheModule::cacheLearnEntries
Gaudi::Property< std::int64_t > cacheLearnEntries
Definition
TreeCacheModule.h:38
EL::Detail::TreeCacheModule::printPerFileStats
Gaudi::Property< bool > printPerFileStats
Definition
TreeCacheModule.h:39
EL::Detail::TreeCacheModule::cacheSize
Gaudi::Property< std::int64_t > cacheSize
Definition
TreeCacheModule.h:37
EL::Detail
Definition
AsgComponentFactories.h:20
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition
AsgComponentFactories.h:16
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::Detail::ModuleData
the data the EventLoop core classes are sharing with the Module implementation
Definition
ModuleData.h:64
Generated on
for ATLAS Offline Software by
1.17.0