ATLAS Offline Software
Loading...
Searching...
No Matches
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>
17#include <TTree.h>
18
19//
20// method implementations
21//
22
23namespace 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())
46 {
47 ANA_MSG_INFO ("file stats for: " << data.m_inputFileUrl);
48 data.m_inputTree->PrintCacheStats ();
49 }
50 return StatusCode::SUCCESS;
51 }
52 }
53}
#define ANA_MSG_INFO(xmsg)
Macro printing info messages.
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
Gaudi::Property< std::int64_t > cacheLearnEntries
Gaudi::Property< bool > printPerFileStats
Gaudi::Property< std::int64_t > cacheSize
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
the data the EventLoop core classes are sharing with the Module implementation
Definition ModuleData.h:64