Belle II Software development
ObjectInfo.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <string>
11
12class TObject;
13class TString;
14
15namespace Belle2 {
25 namespace ObjectInfo {
28 TString getName(const TObject* obj);
29
31 TString getIdentifier(const TObject* obj);
32
34 TString getInfo(const TObject* obj);
35
37 TString getTitle(const TObject* obj);
38
40 std::pair<std::string, int> getDataStorePosition(const TObject* obj);
41
42 }
44}
TString getName(const TObject *obj)
human-readable name (e.g.
Definition: ObjectInfo.cc:45
TString getIdentifier(const TObject *obj)
Where is this object in the datastore?
Definition: ObjectInfo.cc:105
std::pair< std::string, int > getDataStorePosition(const TObject *obj)
return entry name & index for arrays, with index = -1 for objects.
Definition: ObjectInfo.cc:78
TString getInfo(const TObject *obj)
Get object info HTML (e.g.
Definition: ObjectInfo.cc:55
TString getTitle(const TObject *obj)
Get plain text for TEve object titles (shown on mouse-over).
Definition: ObjectInfo.cc:68
Abstract base class for different kinds of events.