ATLAS Offline Software
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 
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  {
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 
44  {
45  if (printPerFileStats.value())
46  {
47  ANA_MSG_INFO ("file stats for: " << data.m_inputFileUrl);
48  data.m_inputTree->PrintCacheStats ();
49  }
50  return StatusCode::SUCCESS;
51  }
52  }
53 }
EL::Detail::TreeCacheModule::onCloseInputFile
virtual StatusCode onCloseInputFile(ModuleData &data) override
actions before closing an input file
Definition: TreeCacheModule.cxx:43
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
EL::Detail::ModuleData
the data the EventLoop core classes are sharing with the Module implementation
Definition: ModuleData.h:64
Job.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
TreeCacheModule.h
EL::Detail::TreeCacheModule::onNewInputFile
virtual StatusCode onNewInputFile(ModuleData &data) override
actions after opening a new input file
Definition: TreeCacheModule.cxx:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ANA_MSG_INFO
#define ANA_MSG_INFO(xmsg)
Macro printing info messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:290
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AsgComponentFactories.h:16
xAOD::DiTauJetParameters::Detail
Detail
Definition: DiTauDefs.h:38
ModuleData.h
EL::Detail::TreeCacheModule::cacheSize
Gaudi::Property< std::int64_t > cacheSize
Definition: TreeCacheModule.h:37