hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HpsEvent.h
Go to the documentation of this file.
1#ifndef __HPS_EVENT_H_
2#define __HPS_EVENT_H_
3
4#include "IEvent.h"
5#include "TClonesArray.h"
6#include "TTree.h"
7
8
9class HpsEvent : public IEvent {
10
11 public:
12 HpsEvent();
13 virtual void add(const std::string name, TObject* object){};
14 void addCollection(const std::string name, TClonesArray* collection);
15 void setTree(TTree* tree);
16 virtual TTree* getTree(){return tree_;}
17
18 private:
19 TTree* tree_;
20};
21
22#endif
TTree * tree_
Definition HpsEvent.h:19
virtual TTree * getTree()
Definition HpsEvent.h:16
virtual void add(const std::string name, TObject *object)
Definition HpsEvent.h:13
void setTree(TTree *tree)
Definition HpsEvent.cxx:6
void addCollection(const std::string name, TClonesArray *collection)
Definition HpsEvent.cxx:5
Definition IEvent.h:7