ATLAS Offline Software
Loading...
Searching...
No Matches
AlgCFlow.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_ALG_CFLOW_H
8#define MULTI_DRAW_ALG_CFLOW_H
9
11
12
13
14//protect
15#include <MultiDraw/Global.h>
16
17#include <EventLoop/Algorithm.h>
18
19class TH1;
20
21namespace MD
22{
23 class AlgCFlow : public EL::Algorithm
24 {
25 //
26 // public interface
27 //
28
31 public:
32 void testInvariant () const;
33
34
38 public:
40
41
48 public:
49 AlgCFlow (TH1 *val_hist_swallow);
50
51
52
53 //
54 // interface inherited from EL::Algorithm
55 //
56
65 private:
67
68
79 private:
81
82
87 private:
89
90
91
92 //
93 // private interface
94 //
95
97 private:
98 TH1 *m_hist;
99
101 private:
102 std::vector<std::string> m_formulas;
103
105 private:
106 std::vector<Double_t> m_values;
107
109 private:
110 std::vector<const Formula*> m_index;
111
113 private:
114 std::vector<std::size_t> m_back;
115
117 private:
118 std::vector<Double_t> m_axis;
119
121 private:
122 TH1 *m_hist2;
123
125 private:
127
129 };
130}
131
132#endif
Definition Job.h:42
FormulaSvc * m_formSvc
description: the formula service we are using
Definition AlgCFlow.h:126
std::vector< std::string > m_formulas
description: the list of formulas used
Definition AlgCFlow.h:102
TH1 * m_hist
description: the histogram we use as a template
Definition AlgCFlow.h:98
virtual EL::StatusCode execute()
effects: process the next event guarantee: basic failures: algorithm dependent rationale: the virtual...
ClassDef(AlgCFlow, 1)
AlgCFlow()
effects: default constructor guarantee: no-fail rationale: this should only be called by serializatio...
std::vector< Double_t > m_axis
description: the axis values of the bins
Definition AlgCFlow.h:118
AlgCFlow(TH1 *val_hist_swallow)
effects: constructor for the given histogram spec, value, and weight guarantee: strong failures: out ...
TH1 * m_hist2
description: the histogram we are filling
Definition AlgCFlow.h:122
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
virtual EL::StatusCode setupJob(EL::Job &job)
effects: give the algorithm a chance to intialize the job with anything this algorithm needs.
std::vector< const Formula * > m_index
description: the indices to the formulas
Definition AlgCFlow.h:110
std::vector< Double_t > m_values
description: the value of the formulas
Definition AlgCFlow.h:106
std::vector< std::size_t > m_back
description: the back-indices to the formulas
Definition AlgCFlow.h:114
virtual EL::StatusCode initialize()
effects: do everything that needs to be done before running the algorithm, e.g.
::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