Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
VHKASupport.cxx
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 
8 namespace VHKASupport {
9  namespace {
10  void insert ( const std::vector<SG::VarHandleKeyArray*>& src, std::vector<Gaudi::DataHandle*>& dest, Gaudi::DataHandle::Mode requiredMode ) {
11  for ( const SG::VarHandleKeyArray* vhka : src ) {
12  if ( not vhka->renounced() ) {
13  for ( SG::VarHandleKey* key: vhka->keys() ) {
14  if ( not ( key->mode() & requiredMode ) ) break;
15  dest.push_back( key );
16 
17  }
18  }
19  }
20  }
21  }
22 
23  void insertInput ( const std::vector<SG::VarHandleKeyArray*>& src, std::vector<Gaudi::DataHandle*>& dest ) {
25  }
26 
27  void insertOutput ( const std::vector<SG::VarHandleKeyArray*>& src, std::vector<Gaudi::DataHandle*>& dest ) {
29  }
30 }
VHKASupport
functions in this namespace are to reduce a boiler plate code from the Ath* base classes
Definition: VHKASupport.h:13
VHKASupport::insertInput
void insertInput(const std::vector< SG::VarHandleKeyArray * > &src, std::vector< Gaudi::DataHandle * > &dest)
Copies all VHKAs which are readers from the src to dest.
Definition: VHKASupport.cxx:23
VHKASupport.h
WriteCellNoiseToCool.src
src
Definition: WriteCellNoiseToCool.py:513
VHKASupport::insertOutput
void insertOutput(const std::vector< SG::VarHandleKeyArray * > &src, std::vector< Gaudi::DataHandle * > &dest)
Definition: VHKASupport.cxx:27
perfmonmt-printer.dest
dest
Definition: perfmonmt-printer.py:189
LHEF::Reader
Pythia8::Reader Reader
Definition: Prophecy4fMerger.cxx:11
EventContainers::Mode
Mode
Definition: IdentifiableContainerBase.h:13
SG::VarHandleKey
A property holding a SG store/key/clid from which a VarHandle is made.
Definition: StoreGate/StoreGate/VarHandleKey.h:62
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
SG::VarHandleKeyArray
Definition: StoreGate/StoreGate/VarHandleKeyArray.h:28
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37