ATLAS Offline Software
EventErrorStateFillerTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id$
15 #include "EventFlagNames.h"
18 #include <string>
19 #include <cassert>
20 
21 using xAOD::EventInfo;
22 
23 namespace D3PD {
24 
25 
33  (const std::string& type,
34  const std::string& name,
35  const IInterface* parent)
37 {
38 }
39 
40 
45 {
46  m_errs.resize (EventInfo::nDets);
47  for (size_t i = 0; i < nEventFlagNames; i++) {
48  unsigned int flag = eventFlagNames[i].m_flag;
49  assert (flag < m_errs.size());
50  std::string name = eventFlagNames[i].m_name;
51  name += "Error";
53  }
54  return StatusCode::SUCCESS;
55 }
56 
57 
59 {
60  for (size_t i = 0; i < m_errs.size(); i++) {
61  if (m_errs[i])
62  *m_errs[i] = p.errorState(static_cast<EventInfo::EventFlagSubDet>(i));
63  }
64  return StatusCode::SUCCESS;
65 }
66 
67 
68 } // namespace D3PD
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition: IEventInfoCnvTool.h:17
D3PD::EventErrorStateFillerTool::m_errs
std::vector< unsigned int * > m_errs
Definition: EventErrorStateFillerTool.h:62
D3PD::AddVariable::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.
Definition: AddVariable.cxx:85
D3PD::EventErrorStateFillerTool::fill
virtual StatusCode fill(const xAOD::EventInfo &p)
Fill one block — type-safe version.
Definition: EventErrorStateFillerTool.cxx:58
EventInfo::nDets
@ nDets
Definition: EventInfo/EventInfo/EventInfo.h:61
D3PD::EventErrorStateFillerTool::book
virtual StatusCode book()
Book variables for this block.
Definition: EventErrorStateFillerTool.cxx:44
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition: lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
master.flag
bool flag
Definition: master.py:29
D3PD::EventErrorStateFillerTool::EventErrorStateFillerTool
EventErrorStateFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: EventErrorStateFillerTool.cxx:33
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
errorcheck.h
Helpers for checking error return status codes and reporting errors.
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:43
EventInfo.h
EventErrorStateFillerTool.h
Block filler tool for event error state from EventInfo.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
EventFlagNames.h
Assign names to subdet symbols used in EventID.
EventInfo::EventFlagSubDet
EventFlagSubDet
Definition: EventInfo/EventInfo/EventInfo.h:60