ATLAS Offline Software
Loading...
Searching...
No Matches
MetricsSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef EVENT_LOOP_METRICS_SVC_H
6#define EVENT_LOOP_METRICS_SVC_H
7
10
11#include <EventLoop/Algorithm.h>
12
13class TBenchmark;
14class TTree;
15
16namespace EL
17{
19 {
20 //
21 // public interface
22 //
23
25 public:
26 static const std::string name;
27
28
31 public:
32 void testInvariant () const;
33
34
37 public:
38 MetricsSvc ();
39
42 public:
43 ~MetricsSvc ();
44
45
46
47 //
48 // interface inherited from Algorithm
49 //
50
53 public:
54 virtual const char *GetName () const override;
55
56
59 private:
60 virtual StatusCode fileExecute () override;
61
62
67 private:
68 virtual StatusCode endOfFile () override;
69
70
75 private:
76 virtual StatusCode histInitialize () override;
77
78
81 private:
82 virtual StatusCode execute () override;
83
84
89 private:
90 virtual StatusCode histFinalize () override;
91
92
93
94 //
95 // private interface
96 //
97
99 private:
101
103 private:
105
107 private:
109
111 private:
113
116 private:
117 TBenchmark *m_benchmark;
118
124 private:
125 Int_t m_nBranches = 0;
126 Int_t m_nLearn = 0;
127 Double_t m_cacheEfficiency = 0;
128 Double_t m_cacheEfficiencyRel = 0;
129 Long64_t m_bytesRead = 0;
130 Int_t m_readCalls = 0;
131 Long64_t m_noCacheBytesRead = 0;
133 Int_t m_readaheadSize = 0;
134 Long64_t m_bytesReadExtra = 0;
135
136#pragma GCC diagnostic push
137#pragma GCC diagnostic ignored "-Wpragmas"
138#pragma GCC diagnostic ignored "-Wunknown-pragmas"
139#pragma GCC diagnostic ignored "-Winconsistent-missing-override"
141#pragma GCC diagnostic pop
142 };
143}
144
145
146#endif
Int_t m_filesRead
description: the number of files processed
Definition MetricsSvc.h:108
ClassDef(MetricsSvc, 1)
virtual StatusCode fileExecute() override
effects: do all the processing that needs to be done once per file guarantee: no-fail
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
virtual StatusCode histFinalize() override
effects: do the job post-processing guarantee: basic failures: out of memory failures: in/out trees o...
virtual StatusCode execute() override
effects: process the next event guarantee: no-fail
virtual StatusCode endOfFile() override
effects: do the post-processing for each input file guarantee: basic failures: out of memory failures...
Int_t m_eventsRead
description: the number of events processed
Definition MetricsSvc.h:112
Int_t m_noCacheReadCalls
Definition MetricsSvc.h:132
virtual StatusCode histInitialize() override
effects: create the output TTrees guarantee: basic failures: out of memory failures: output already e...
~MetricsSvc()
effects: standard destructor.
virtual const char * GetName() const override
effects: return the name of this algorithm guarantee: no-fail
TTree * m_fileMetrics
description: the file cache metrics
Definition MetricsSvc.h:100
TTree * m_jobMetrics
description: the job metrics
Definition MetricsSvc.h:104
Long64_t m_noCacheBytesRead
Definition MetricsSvc.h:131
Double_t m_cacheEfficiency
Definition MetricsSvc.h:127
Long64_t m_bytesRead
Definition MetricsSvc.h:129
Int_t m_nBranches
buffers for the per-file cache-stats branches
Definition MetricsSvc.h:125
Int_t m_readaheadSize
Definition MetricsSvc.h:133
Long64_t m_bytesReadExtra
Definition MetricsSvc.h:134
Double_t m_cacheEfficiencyRel
Definition MetricsSvc.h:128
TBenchmark * m_benchmark
description: the benchmark object used rationale: this is a pointer to avoid including the header in ...
Definition MetricsSvc.h:117
MetricsSvc()
effects: standard constructor.
static const std::string name
description: the name of the service
Definition MetricsSvc.h:26
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.