1 #ifndef StHbtTagReader_h
2 #define StHbtTagReader_h
6 #include "StIOMaker/StIOMaker.h"
18 #if !defined(ST_NO_NAMESPACES)
37 int GetEventIndex(
int runNumber,
int eventNumber);
47 int EventMatch(
int runNumber,
int eventNumber);
48 double tag(
char* name,
unsigned int i=0) {
49 if ( mTTree->GetLeaf(name) )
50 if ( (
unsigned int)mTTree->GetLeaf(name)->GetNdata() > i )
51 return (
double)mTTree->GetLeaf(name)->GetValue(i);
54 int intTag(
char* name,
unsigned int i=0) {
55 if ( mTTree->GetLeaf(name) && strcmp(mTTree->GetLeaf(name)->GetTypeName(),
"Int_t") )
56 if ( (
unsigned int)mTTree->GetLeaf(name)->GetNdata() > i )
57 return (
int)mTTree->GetLeaf(name)->GetValue(i);
60 float floatTag(
char* name,
unsigned int i=0) {
61 if ( mTTree->GetLeaf(name) && strcmp(mTTree->GetLeaf(name)->GetTypeName(),
"Float_t") )
62 if ( (
unsigned int)mTTree->GetLeaf(name)->GetNdata() > i )
63 return (
float)mTTree->GetLeaf(name)->GetValue(i);