Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
RootProcessor.hpp
Go to the documentation of this file.
1 
7 #ifndef useroot
8 #error USEROOT must be defined to use RootProcessor
9 #endif
10 
11 #ifndef __ROOTPROCESSOR_HPP_
12 #define __ROOTPROCESSOR_HPP_
13 
14 #include <vector>
15 
16 #include "EventProcessor.hpp"
17 
18 #ifdef useroot
19 #include <TFile.h>
20 #endif
21 
22 using std::vector;
23 
25 class RootProcessor : public EventProcessor {
26  private:
27  TFile *file;
28  TTree *tree;
29 
31  vector<EventProcessor *> vecProcess;
32  public:
36  RootProcessor(const char *fileName, const char *treeName);
40  virtual bool Init(RawEvent& rawev);
44  virtual bool Process(RawEvent &event);
46  virtual ~RootProcessor();
47 };
48 #endif // __ROOTPROCESSOR_HPP_
A Class to handle outputting things into ROOT.
Definition: RootProcessor.hpp:25
Generic event processor.
virtual ~RootProcessor()
virtual bool Init(RawEvent &rawev)
TFile * file
File where tree is stored.
Definition: RootProcessor.hpp:27
TTree * tree
ROOT tree where event branches are filled.
Definition: RootProcessor.hpp:28
virtual bool Process(RawEvent &event)
RootProcessor(const char *fileName, const char *treeName)
vector< EventProcessor * > vecProcess
All processors with AddBranch() information.
Definition: RootProcessor.hpp:31
Class to handle event processing.
Definition: EventProcessor.hpp:25
The all important raw event.
Definition: RawEvent.hpp:46