Diana Software
QEventInspector.hh
Go to the documentation of this file.
1 #ifndef _Q_EVENT_INSPECTOR_HH_
2 #define _Q_EVENT_INSPECTOR_HH_
3 
19 #include "QEvent.hh"
20 #include "QEventAssembler.hh"
21 
23 
25 {
26  public:
29 
30 
33  {
34  return fEventAssembler->GetEvent();
35  }
36 
38  const QEvent& GetEvent() const
39  {
40  return fEventAssembler->GetEvent();
41  }
42 
44  std::vector<QEventLabel> GetLabels() const
45  {
46  return fEventAssembler->GetLabels();
47  }
48 
50  std::vector<QEventLabel> GetWriteLabels() const
51  {
53  }
54 
56  QObject** Get(const char* owner, const char* name) const
57  {
58  return fEventAssembler->Get(owner,name);
59  }
60 
62  const QAliases& GetAliases() const { return fEventAssembler->GetAliases(); }
64  template<typename Q> bool Contains(const char *owner,const char *name) const
65  {
66  return fEventAssembler->Contains<Q>(owner,name);
67  }
69  template<typename Q> bool Contains(const char *label) const
70  {
71  return fEventAssembler->Contains<Q>(label);
72  }
73 
74 
75  private:
78 
79 
80 };
82 
83 #endif
#define Q_END_NAMESPACE
Definition: QDiana.hh:22
#define Q_BEGIN_NAMESPACE
Definition: QDiana.hh:20
Visitor class of QEvent that provides full handling of QEvent.
QEvent & GetEvent()
Get the QEvent.
std::vector< QEventLabel > GetLabels() const
Get the list of all QObject labels in the event.
void Get(const char *owner, WriteHandle< Q > &handle)
Get QObject from the event in write mode. This method has to be called in the event loop,...
const QAliases & GetAliases() const
get aliases (const version)
std::vector< QEventLabel > GetWriteLabels() const
Get the list of all writable QObject labels.
bool Contains(const char *owner, const char *name) const
Check to see if the event contains a particular object.
Visitor class to inspect the QEvent content.
QEvent & GetEvent()
Get the event.
std::vector< QEventLabel > GetWriteLabels() const
Get labels of QObjects to be written.
std::vector< QEventLabel > GetLabels() const
Get all QObject labels.
QObject ** Get(const char *owner, const char *name) const
Get reference of a QObject (can be used with TTree::SetBranchAddress).
const QEvent & GetEvent() const
Get the event (const version)
bool Contains(const char *owner, const char *name) const
Check to see if the event contains a particular object.
QEventInspector(QEventAssembler *eva)
constructor
QEventAssembler * fEventAssembler
the QEventAssembler object.
bool Contains(const char *label) const
Check to see if the event contains a particular object.
const QAliases & GetAliases() const
get aliases (const version)
diana event
Definition: QEvent.hh:46
base class for objects handled by QEvent and QGlobalDataManager.
Definition: QObject.hh:76