Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
RootProcessor Class Reference

A Class to handle outputting things into ROOT. More...

#include <RootProcessor.hpp>

Inheritance diagram for RootProcessor:
Collaboration diagram for RootProcessor:

Public Member Functions

 RootProcessor (const char *fileName, const char *treeName)
 
virtual bool Init (RawEvent &rawev)
 
virtual bool Process (RawEvent &event)
 
virtual ~RootProcessor ()
 
- Public Member Functions inherited from EventProcessor
 EventProcessor ()
 
 EventProcessor (int offset, int range, std::string name)
 
virtual ~EventProcessor ()
 
virtual void DeclarePlots (void)
 
virtual const std::set< std::string > & GetTypes (void) const
 
virtual bool DidProcess (void) const
 
virtual bool HasEvent (void) const
 
virtual bool PreProcess (RawEvent &event)
 
void EndProcess (void)
 
std::string GetName (void) const
 

Private Attributes

TFile * file
 File where tree is stored.
 
TTree * tree
 ROOT tree where event branches are filled.
 
vector< EventProcessor * > vecProcess
 All processors with AddBranch() information.
 

Additional Inherited Members

- Protected Member Functions inherited from EventProcessor
virtual void plot (int dammId, double val1, double val2=-1, double val3=-1, const char *name="h")
 Implementation of the plot command to interface with the DAMM routines. More...
 
virtual void DeclareHistogram1D (int dammId, int xSize, const char *title)
 Declares a 1D histogram calls the C++ wrapper for DAMM. More...
 
virtual void DeclareHistogram2D (int dammId, int xSize, int ySize, const char *title)
 Declares a 2D histogram calls the C++ wrapper for DAMM. More...
 
- Protected Attributes inherited from EventProcessor
std::string name
 Name of the Processor.
 
std::set< std::string > associatedTypes
 Set of associated types for Processor.
 
bool initDone
 True if the initialization has finished.
 
bool didProcess
 True if the process finished.
 
std::map< std::string, const DetectorSummary * > sumMap
 Map of associated detector summary.
 
Plots histo
 

Detailed Description

A Class to handle outputting things into ROOT.

Constructor & Destructor Documentation

RootProcessor::RootProcessor ( const char *  fileName,
const char *  treeName 
)

Constructor taking arguments for file and tree creation

Parameters
[in]fileName: the file name for the root file
[in]treeName: the name of the tree to save to the root file
virtual RootProcessor::~RootProcessor ( )
virtual

Default Destructor

Member Function Documentation

virtual bool RootProcessor::Init ( RawEvent rawev)
virtual

Initializes the processor

Parameters
[in]rawev: the raw event to analyze
Returns
true if the initialization was successful

Reimplemented from EventProcessor.

virtual bool RootProcessor::Process ( RawEvent event)
virtual

Performs the main processsing, which may depend on other processors

Parameters
[in]event: the event to process
Returns
true if processing was successful

Reimplemented from EventProcessor.


The documentation for this class was generated from the following file: