ATLAS Offline Software
ContainedVectorMultiAssociationFillerTool.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: ContainedVectorMultiAssociationFillerTool.cxx 618070 2014-09-22 19:05:34Z ssnyder $
16 
17 
18 namespace D3PD {
19 
20 
28  (const std::string& type,
29  const std::string& name,
30  const IInterface* parent)
31  : base_class (type, name, parent),
32  m_associator (this)
33 {
34  declareProperty ("Associator", m_associator,
35  "The IMultiAssociationTool instance.");
36 }
37 
38 
44 {
46  CHECK( m_associator.retrieve() );
47  return StatusCode::SUCCESS;
48 }
49 
50 
61  const std::type_info& ti)
62 {
63  CHECK( m_associator->configureD3PD (this, ti) );
65 
66  return StatusCode::SUCCESS;
67 }
68 
69 
76 {
77  CHECK( m_associator->book () );
79 
80  return StatusCode::SUCCESS;
81 }
82 
83 
112  bool /*again = false*/)
113 {
114  // Start the association.
115  CHECK( m_associator->resetUntyped (p) );
116 
117  CHECK( doFill (*m_associator, 0) );
118 
119  return StatusCode::SUCCESS;
120 }
121 
122 
123 
124 } // namespace D3PD
D3PD::IAddVariable
Common interface for adding a variable to a tuple.
Definition: IAddVariable.h:70
D3PD::VectorFillerToolBase::doBook
StatusCode doBook()
Declare tuple variables.
Definition: VectorFillerToolBase.cxx:112
tree
TChain * tree
Definition: tile_monitor.h:30
D3PD::ContainedVectorMultiAssociationFillerTool::fillUntyped
virtual StatusCode fillUntyped(const void *p, bool again=false)
Fill one block.
Definition: ContainedVectorMultiAssociationFillerTool.cxx:111
D3PD::ContainedVectorMultiAssociationFillerTool::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition: ContainedVectorMultiAssociationFillerTool.cxx:43
D3PD::VectorFillerToolBase::doConfigure
StatusCode doConfigure(IAddVariable *tree, IIteration &it)
Configure the tool.
Definition: VectorFillerToolBase.cxx:147
D3PD::ContainedVectorMultiAssociationFillerTool::m_associator
ToolHandle< IMultiAssociationTool > m_associator
Property: The association tool instance.
Definition: ContainedVectorMultiAssociationFillerTool.h:131
Monitored::detail::doFill
void doFill(H *hist, W weight, size_t i, const M &m1, const Ms &... m)
Perform (arbitrary dimension) histogram fill with weight.
Definition: HistogramFillerUtils.h:164
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::VectorFillerToolBase::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition: VectorFillerToolBase.cxx:88
D3PD::ContainedVectorMultiAssociationFillerTool::book
virtual StatusCode book()
Declare tuple variables.
Definition: ContainedVectorMultiAssociationFillerTool.cxx:75
test_pyathena.parent
parent
Definition: test_pyathena.py:15
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.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ContainedVectorMultiAssociationFillerTool.h
Represent a multiple association by containment inside vectors.
D3PD::ContainedVectorMultiAssociationFillerTool::configureD3PD
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti)
Configure during initialization: type-check.
Definition: ContainedVectorMultiAssociationFillerTool.cxx:60
D3PD::ContainedVectorMultiAssociationFillerTool::ContainedVectorMultiAssociationFillerTool
ContainedVectorMultiAssociationFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: ContainedVectorMultiAssociationFillerTool.cxx:28