ATLAS Offline Software
TPyStore.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 //
3 // Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 //
5 #ifndef XAODROOTACCESS_TPYSTORE_H
6 #define XAODROOTACCESS_TPYSTORE_H
7 
8 // System include(s):
9 #include <string>
10 
11 // ROOT include(s):
12 #include <Rtypes.h>
13 
14 // Local include(s):
15 #include "xAODRootAccess/TStore.h"
16 
17 namespace xAOD {
18 
30  class TPyStore : public TStore {
31 
32  public:
34  using TStore::TStore;
35 
37  ::Bool_t contains( const std::string& key,
38  const std::string& type ) const;
40  ::Bool_t isConst( const std::string& key, const std::string& type ) const;
41 
43  StatusCode record( void* obj, const std::string& key,
44  const std::string& type );
45 
47  void dump() const;
48 
49  }; // class TPyStore
50 
51 } // namespace xAOD
52 
53 #endif // XAODROOTACCESS_TPYSTORE_H
xAOD::TPyStore::dump
void dump() const
Print the contents of the store using a Python friendly function.
Definition: TPyStore.cxx:121
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TPyStore::isConst
::Bool_t isConst(const std::string &key, const std::string &type) const
Function checking if an object with a given key and type is constant.
Definition: TPyStore.cxx:63
xAOD::TPyStore::contains
::Bool_t contains(const std::string &key, const std::string &type) const
Function checking if an object with a given key and type is available.
Definition: TPyStore.cxx:27
xAOD::TPyStore
Python interface to xAOD::TStore.
Definition: TPyStore.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TStore
A relatively simple transient store for objects created in analysis.
Definition: TStore.h:44
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::TPyStore::record
StatusCode record(void *obj, const std::string &key, const std::string &type)
Record an object into the store in a typeless way.
Definition: TPyStore.cxx:104
python.PyAthena.obj
obj
Definition: PyAthena.py:135
xAOD::TStore::TStore
TStore()
Default constructor.
Definition: TStore.cxx:24
TStore.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37