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
HpsEventFile.h
Go to the documentation of this file.
1#ifndef __HPSEVENT_FILE_H
2#define __HPSEVENT_FILE_H
3
4#include "IEventFile.h"
5#include "HpsEvent.h"
6#include "TTreeReader.h"
7#include "TFile.h"
8#include "TTree.h"
9
14class HpsEventFile : public IEventFile {
15
16 public:
23 HpsEventFile(const std::string ifilename, const std::string& ofilename);
24
26 virtual ~HpsEventFile();
27
34 virtual bool nextEvent();
35
41 void setupEvent(IEvent* ievent);
42
47 void resetOutputFileDir() { ofile_->cd();}
48
54 TFile* getOutputFile() { return ofile_;}
55
60 void close();
61
62
63 private:
64 HpsEvent* event_{nullptr};
65 int entry_{0};
66 int maxEntries_{0};
67 TFile* ofile_{nullptr};
68 TFile* rootfile_{nullptr};
69 TTree* intree_{nullptr};
70
71 //TTreeReader* ttree_reader;
72};
73
74
75#endif
description
int entry_
description
TTree * intree_
description
HpsEvent * event_
description
TFile * rootfile_
description
virtual ~HpsEventFile()
void close()
description
int maxEntries_
description
TFile * ofile_
description
virtual bool nextEvent()
description
void resetOutputFileDir()
description
void setupEvent(IEvent *ievent)
description
TFile * getOutputFile()
Get the output file.
description
Definition IEventFile.h:10
Definition IEvent.h:7