|
HIPO
4.3.0
High Performance Output data format for experimental physics
|
Single HIPO file data source with named bank access. More...
#include <fusion.h>
Public Member Functions | |
| inputSource () | |
| inputSource (const char *filename) | |
| Open a HIPO file as input source. More... | |
| inputSource (const char *filename, int tag) | |
| Open a HIPO file with a tag filter. More... | |
| ~inputSource () | |
| void | open (const char *filename) |
| Open a HIPO file and read its dictionary. More... | |
| void | open (const char *filename, int tag) |
| Open a HIPO file with a tag filter. More... | |
| void | define (const char *bank) |
| Register a bank name for reading from events. More... | |
| void | describe (const char *bank) |
| Print the schema description for a bank. More... | |
| bool | next () |
| Advance to the next event and read all defined banks. More... | |
| std::string | schema (const char *bank) |
| hipo::bank & | get (const char *bank) |
| int | getSize (const char *bank) |
| int | getInt (const char *bank, const char *entry, int row) |
| int64_t | getLong (const char *bank, const char *entry, int row) |
| float | getFloat (const char *bank, const char *entry, int row) |
| double | getDouble (const char *bank, const char *entry, int row) |
| void | getByteArray (const char *bank, int entry, int8_t *ptr, int length) |
| Copy a byte column into an array. More... | |
| void | getShortArray (const char *bank, int entry, int16_t *ptr, int length) |
| Copy a short column into an array. More... | |
| void | getIntArray (const char *bank, int entry, int32_t *ptr, int length) |
| Copy an integer column into an array. More... | |
| void | getFloatArray (const char *bank, int entry, float *ptr, int length) |
| Copy a float column into an array. More... | |
| int64_t | getEntries () |
Single HIPO file data source with named bank access.
Opens a HIPO file and provides methods to define, describe, and read banks by name. Used internally by the fusion class for multi-file management.
|
inline |
|
inline |
| void hipo::inputSource::define | ( | const char * | bank | ) |
Register a bank name for reading from events.
| bank | Bank name (e.g., "REC::Particle") |
Definition at line 32 of file fusion.cpp.
| void hipo::inputSource::describe | ( | const char * | bank | ) |
Print the schema description for a bank.
| bank | Bank name |
Definition at line 36 of file fusion.cpp.
|
inline |
| void hipo::inputSource::getByteArray | ( | const char * | bank, |
| int | entry, | ||
| int8_t * | ptr, | ||
| int | length | ||
| ) |
Copy a byte column into an array.
| bank | Bank name |
| entry | Column index |
| ptr | Output array |
| length | Number of elements to copy |
Definition at line 75 of file fusion.cpp.
| double hipo::inputSource::getDouble | ( | const char * | bank, |
| const char * | entry, | ||
| int | row | ||
| ) |
Definition at line 71 of file fusion.cpp.
|
inline |
| float hipo::inputSource::getFloat | ( | const char * | bank, |
| const char * | entry, | ||
| int | row | ||
| ) |
Definition at line 67 of file fusion.cpp.
| void hipo::inputSource::getFloatArray | ( | const char * | bank, |
| int | entry, | ||
| float * | ptr, | ||
| int | length | ||
| ) |
Copy a float column into an array.
Definition at line 88 of file fusion.cpp.
| int hipo::inputSource::getInt | ( | const char * | bank, |
| const char * | entry, | ||
| int | row | ||
| ) |
Definition at line 59 of file fusion.cpp.
| void hipo::inputSource::getIntArray | ( | const char * | bank, |
| int | entry, | ||
| int32_t * | ptr, | ||
| int | length | ||
| ) |
Copy an integer column into an array.
Definition at line 83 of file fusion.cpp.
| int64_t hipo::inputSource::getLong | ( | const char * | bank, |
| const char * | entry, | ||
| int | row | ||
| ) |
Definition at line 63 of file fusion.cpp.
| void hipo::inputSource::getShortArray | ( | const char * | bank, |
| int | entry, | ||
| int16_t * | ptr, | ||
| int | length | ||
| ) |
Copy a short column into an array.
Definition at line 79 of file fusion.cpp.
| int hipo::inputSource::getSize | ( | const char * | bank | ) |
Definition at line 54 of file fusion.cpp.
| bool hipo::inputSource::next | ( | ) |
Advance to the next event and read all defined banks.
Definition at line 40 of file fusion.cpp.
| void hipo::inputSource::open | ( | const char * | filename | ) |
Open a HIPO file and read its dictionary.
| filename | Path to the HIPO file |
Definition at line 17 of file fusion.cpp.
| void hipo::inputSource::open | ( | const char * | filename, |
| int | tag | ||
| ) |
Open a HIPO file with a tag filter.
| filename | Path to the HIPO file |
| tag | Event tag to filter |
Definition at line 22 of file fusion.cpp.
| std::string hipo::inputSource::schema | ( | const char * | bank | ) |
Definition at line 28 of file fusion.cpp.