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
119#pragma GCC diagnostic push
120#pragma GCC diagnostic ignored "-Wpragmas"
121#pragma GCC diagnostic ignored "-Wunknown-pragmas"
122#pragma GCC diagnostic ignored "-Winconsistent-missing-override"
124#pragma GCC diagnostic pop
125 };
126}
127
128
129#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
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
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.