ATLAS Offline Software
Loading...
Searching...
No Matches
SkimDecisionFillerTool.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
15
16
17#ifndef EVENTCOMMOND3PDMAKER_SKIMDECISIONFILLERTOOL_H
18#define EVENTCOMMOND3PDMAKER_SKIMDECISIONFILLERTOOL_H
19
20
23#include <string>
24#include <vector>
25
26
27namespace D3PD {
28
29
35 : public BlockFillerTool<SkimDecisionCollection>
36{
37public:
44 SkimDecisionFillerTool (const std::string& type,
45 const std::string& name,
46 const IInterface* parent);
47
48
50 StatusCode book();
51
52
61 StatusCode fill (const SkimDecisionCollection& p);
62
63
64private:
66 std::vector<std::string> m_flags;
67
70 std::string m_anyPassedName;
71
73 struct Var
74 {
75 std::string key;
76 bool* val;
77 };
78
80 std::vector<Var> m_vars;
81
83 bool* m_passed;
84};
85
86
87} // namespace D3PD
88
89
90#endif // EVENTCOMMOND3PDMAKER_SKIMDECISIONFILLERTOOL_H
91
Type-safe wrapper for block filler tools.
Type-safe wrapper for block filler tools.
SkimDecisionFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
std::vector< std::string > m_flags
Property: List of decision flags to write.
bool * m_passed
Variable: Set to true if any of the specified flags passed.
std::string m_anyPassedName
Property: Name of a variable to set to true if any of the specified decision flags are true.
StatusCode fill(const SkimDecisionCollection &p)
Fill one block — type-safe version.
std::vector< Var > m_vars
List of variables being written.
StatusCode book()
Book variables for this block.
Block filler tool for noisy FEB information.
Description of each variable being written.