|
ATLAS Offline Software
|
#include <TEvent.h>
|
| TEvent (const std::string &name="StoreGateSvc") |
|
| TEvent (EReadMode mode, const std::string &name="StoreGateSvc") |
|
| ~TEvent () |
|
ServiceHandle< IEventSeek > & | evtLoop () |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
|
ServiceHandle< StoreGateSvc > & | inputMetaStore () |
|
template<typename T > |
void | setEvtSelProperty (const char *name, const T &val) |
|
template<typename T > |
StatusCode | retrieve (const T *&obj) |
|
template<typename T > |
StatusCode | retrieve (T *&obj) |
|
template<typename T > |
StatusCode | retrieve (const T *&obj, const std::string &key) |
|
template<typename T > |
StatusCode | retrieve (T *&obj, const std::string &key) |
|
template<typename T > |
StatusCode | retrieveMetaInput (const T *&obj, const std::string &key) |
|
int | getEntry (long entry) |
|
long | getEntries () |
|
StatusCode | readFrom (TFile *file) |
|
StatusCode | readFrom (const char *file) |
|
StatusCode | readFrom (TChain *files) |
|
void | setActive () |
| ensure we are the active store, for the purpose of element links etc More...
|
|
PyObject * | retrieve (PyObject *tp, PyObject *pykey) |
| retrieve and record method for python More...
|
|
PyObject * | get_item (PyObject *pykey) |
|
PyObject * | contains (PyObject *tp, PyObject *pykey) |
|
PyObject * | retrieveMetaInput (PyObject *tp, PyObject *pykey) |
|
PyObject * | record (PyObject *obj, PyObject *pykey, bool allowMods=true, bool resetOnly=true, bool noHist=false) |
|
|
static IAppMgrUI * | Init (const char *options="POOLRootAccess/basic.opts") |
|
◆ EReadMode
◆ TEvent() [1/2]
POOL::TEvent::TEvent |
( |
const std::string & |
name = "StoreGateSvc" | ) |
|
◆ TEvent() [2/2]
POOL::TEvent::TEvent |
( |
EReadMode |
mode, |
|
|
const std::string & |
name = "StoreGateSvc" |
|
) |
| |
◆ ~TEvent()
POOL::TEvent::~TEvent |
( |
| ) |
|
◆ contains()
◆ evtLoop()
◆ evtStore()
◆ get_item()
◆ getEntries()
long POOL::TEvent::getEntries |
( |
| ) |
|
◆ getEntry()
int POOL::TEvent::getEntry |
( |
long |
entry | ) |
|
◆ Init()
static IAppMgrUI* POOL::TEvent::Init |
( |
const char * |
options = "POOLRootAccess/basic.opts" | ) |
|
|
inlinestatic |
◆ inputMetaStore()
◆ readFrom() [1/3]
StatusCode POOL::TEvent::readFrom |
( |
const char * |
file | ) |
|
Definition at line 138 of file PhysicsAnalysis/POOLRootAccess/src/TEvent.cxx.
140 std::cout <<
"Unable to change file after already reading" << std::endl;
141 return StatusCode::FAILURE;
143 std::vector<std::string> myFiles;
146 TString sFileIn(
file);
147 std::unique_ptr<TObjArray> sFiles(sFileIn.Tokenize(
","));
148 std::unique_ptr<TIterator> itr(sFiles->MakeIterator());
150 while( (
obj = itr->Next()) ) {
151 TString sFile(
static_cast<TObjString*
>(
obj)->String());
152 if(sFile.Contains(
'*')) {
153 std::unique_ptr<TObjArray> theFiles(gSystem->GetFromPipe((
"ls " + std::string(
file)).c_str()).Tokenize(
"\n"));
154 for(
int i=0;
i<theFiles->GetEntries();
i++) {
156 if (TObjString* objstr =
dynamic_cast<TObjString*
>(theFiles->At(
i))) {
157 myFiles.push_back(gSystem->ExpandPathName(objstr->String().Data()));
161 myFiles.push_back( gSystem->ExpandPathName(sFile.Data()) );
◆ readFrom() [2/3]
StatusCode POOL::TEvent::readFrom |
( |
TChain * |
files | ) |
|
◆ readFrom() [3/3]
StatusCode POOL::TEvent::readFrom |
( |
TFile * |
file | ) |
|
◆ record()
PyObject * POOL::TEvent::record |
( |
PyObject * |
obj, |
|
|
PyObject * |
pykey, |
|
|
bool |
allowMods = true , |
|
|
bool |
resetOnly = true , |
|
|
bool |
noHist = false |
|
) |
| |
◆ retrieve() [1/5]
template<typename T >
StatusCode POOL::TEvent::retrieve |
( |
const T *& |
obj | ) |
|
|
inline |
◆ retrieve() [2/5]
template<typename T >
StatusCode POOL::TEvent::retrieve |
( |
const T *& |
obj, |
|
|
const std::string & |
key |
|
) |
| |
|
inline |
◆ retrieve() [3/5]
◆ retrieve() [4/5]
template<typename T >
StatusCode POOL::TEvent::retrieve |
( |
T *& |
obj | ) |
|
|
inline |
◆ retrieve() [5/5]
template<typename T >
StatusCode POOL::TEvent::retrieve |
( |
T *& |
obj, |
|
|
const std::string & |
key |
|
) |
| |
|
inline |
◆ retrieveMetaInput() [1/2]
template<typename T >
StatusCode POOL::TEvent::retrieveMetaInput |
( |
const T *& |
obj, |
|
|
const std::string & |
key |
|
) |
| |
|
inline |
◆ retrieveMetaInput() [2/2]
◆ setActive()
void POOL::TEvent::setActive |
( |
| ) |
|
◆ setEvtSelProperty()
template<typename T >
void POOL::TEvent::setEvtSelProperty |
( |
const char * |
name, |
|
|
const T & |
val |
|
) |
| |
|
inline |
◆ m_curEntry
long POOL::TEvent::m_curEntry = -1 |
|
private |
◆ m_evtLoop
◆ m_evtProcessor
IEventProcessor* POOL::TEvent::m_evtProcessor |
|
private |
◆ m_evtSelect
◆ m_evtStore
◆ m_incSvc
◆ m_inputMetaStore
◆ m_joSvc
ServiceHandle<Gaudi::Interfaces::IOptionsSvc> POOL::TEvent::m_joSvc |
|
private |
◆ m_size
long POOL::TEvent::m_size = -1 |
|
private |
The documentation for this class was generated from the following files:
ServiceHandle< Gaudi::Interfaces::IOptionsSvc > m_joSvc
ServiceHandle< StoreGateSvc > m_inputMetaStore
StatusCode parse(std::tuple< Tup... > &tup, const Gaudi::Parsers::InputData &input)
static StatusCode setProperty(const std::string &name, const std::string &property, const W &value, bool override=true)
void setActive()
ensure we are the active store, for the purpose of element links etc
IAppMgrUI * Init(const char *options="POOLRootAccess/basic.opts")
Bootstraps (creates and configures) the Gaudi Application with the provided options file.
PyObject * py_sg_contains(PyObject *storeGateSvc, PyObject *tp, PyObject *key)
StatusCode readFrom(TFile *file)
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
::StatusCode StatusCode
StatusCode definition for legacy code.
ServiceHandle< IEvtSelectorSeek > m_evtSelect
Abstract interface for finding the size of an event collection.
PyObject * py_sg_getitem(PyObject *storeGateSvc, PyObject *key)
ServiceHandle< IIncidentSvc > m_incSvc
IEventProcessor * m_evtProcessor
ServiceHandle< StoreGateSvc > & evtStore()
void setEvtSelProperty(const char *name, const T &val)
ServiceHandle< IEventSeek > m_evtLoop
ServiceHandle< StoreGateSvc > & inputMetaStore()
ServiceHandle< StoreGateSvc > m_evtStore
PyObject * retrieveObjectFromStore(PyObject *storeGateSvc, PyObject *tp, PyObject *key)
TEvent(const std::string &name="StoreGateSvc")
PyObject * recordObjectToStore(StoreGateSvc *, PyObject *, PyObject *, bool, bool, bool)
record object to storegate