ATLAS Offline Software
Loading...
Searching...
No Matches
FormulaSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef MULTI_DRAW_FORMULA_SVC_H
8#define MULTI_DRAW_FORMULA_SVC_H
9
12
13
14
15//protect
16#include <MultiDraw/Global.h>
17
18#include <EventLoop/Algorithm.h>
19
20class TTree;
21
22namespace MD
23{
27 std::string dbg (const FormulaSvc& obj, unsigned verbosity = 0);
28
29
33 void useFormulas (EL::Job& job);
34
35
41
42
43
45 {
46 //
47 // public interface
48 //
49
51 public:
52 static const std::string name;
53
54
57 public:
58 void testInvariant () const;
59
60
63 public:
65
66
69 public:
71
72
79 public:
80 const Formula *addForm (const std::string& formula);
81
82
83
84 //
85 // methods inherited from EL::Algorithm
86 //
87
90 private:
91 virtual const char *GetName () const;
92
93
99 private:
100 virtual EL::StatusCode changeInput (bool firstFile);
101
102
107 private:
109
110
111
112 //
113 // private interface
114 //
115
117 private:
118 TTree *m_tree;
119
121 private:
122 std::vector<Formula*> m_vars;
123
125 };
126}
127
128#endif
the interface for algorithms to access IWorker
Definition IWorker.h:40
Definition Job.h:42
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
std::vector< Formula * > m_vars
description: the list of variables used
Definition FormulaSvc.h:122
FormulaSvc()
effects: standard default constructor guarantee: no-fail
~FormulaSvc()
effects: standard destructor guarantee: no-fail
virtual EL::StatusCode changeInput(bool firstFile)
effects: do all changes to work with a new input file, e.g.
virtual const char * GetName() const
effects: return the name of this algorithm guarantee: no-fail
const Formula * addForm(const std::string &formula)
effects: add another formula returns: the formula guarantee: strong failures: out of memory II failur...
TTree * m_tree
description: the tree we are connected to
Definition FormulaSvc.h:118
virtual EL::StatusCode execute()
effects: process the next event guarantee: basic failures: algorithm dependent rationale: the virtual...
static const std::string name
description: the name of the service
Definition FormulaSvc.h:52
ClassDef(FormulaSvc, 1)
::StatusCode StatusCode
StatusCode definition for legacy code.
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition AlgCFlow.h:22
FormulaSvc * formulas(EL::IWorker *worker)
returns: the formula service for this worker guarantee: strong failures: formula service not configur...
void useFormulas(EL::Job &job)
effects: register the formula service for this job guarantee: strong failures: out of memory I