ATLAS Offline Software
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$
17 #ifndef EVENTCOMMOND3PDMAKER_SKIMDECISIONFILLERTOOL_H
18 #define EVENTCOMMOND3PDMAKER_SKIMDECISIONFILLERTOOL_H
19 
20 
23 #include <string>
24 #include <vector>
25 
26 
27 namespace D3PD {
28 
29 
35  : public BlockFillerTool<SkimDecisionCollection>
36 {
37 public:
44  SkimDecisionFillerTool (const std::string& type,
45  const std::string& name,
46  const IInterface* parent);
47 
48 
50  StatusCode book();
51 
52 
62 
63 
64 private:
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 
D3PD::SkimDecisionFillerTool::m_anyPassedName
std::string m_anyPassedName
Property: Name of a variable to set to true if any of the specified decision flags are true.
Definition: SkimDecisionFillerTool.h:70
SkimDecisionCollection.h
D3PD::SkimDecisionFillerTool::book
StatusCode book()
Book variables for this block.
Definition: SkimDecisionFillerTool.cxx:52
SkimDecisionCollection
Definition: SkimDecisionCollection.h:21
D3PD::SkimDecisionFillerTool::m_vars
std::vector< Var > m_vars
List of variables being written.
Definition: SkimDecisionFillerTool.h:80
BlockFillerTool.h
Type-safe wrapper for block filler tools.
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
D3PD::SkimDecisionFillerTool::fill
StatusCode fill(const SkimDecisionCollection &p)
Fill one block — type-safe version.
Definition: SkimDecisionFillerTool.cxx:95
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:65
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
D3PD::SkimDecisionFillerTool::Var
Description of each variable being written.
Definition: SkimDecisionFillerTool.h:74
D3PD::SkimDecisionFillerTool::Var::val
bool * val
Definition: SkimDecisionFillerTool.h:76
D3PD::SkimDecisionFillerTool
Block filler tool for SkimDecisions.
Definition: SkimDecisionFillerTool.h:36
D3PD::SkimDecisionFillerTool::Var::key
std::string key
Definition: SkimDecisionFillerTool.h:75
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::SkimDecisionFillerTool::SkimDecisionFillerTool
SkimDecisionFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: SkimDecisionFillerTool.cxx:29
D3PD::SkimDecisionFillerTool::m_passed
bool * m_passed
Variable: Set to true if any of the specified flags passed.
Definition: SkimDecisionFillerTool.h:83
D3PD::SkimDecisionFillerTool::m_flags
std::vector< std::string > m_flags
Property: List of decision flags to write.
Definition: SkimDecisionFillerTool.h:66