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
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EventProcessor Class Reference

Processor used to write event info. more details. More...

#include <EventProcessor.h>

Inheritance diagram for EventProcessor:
Processor

Public Member Functions

 EventProcessor (const std::string &name, Process &process)
 Class constructor.
 
 ~EventProcessor ()
 
virtual void configure (const ParameterSet &parameters)
 Callback for the Processor to configure itself from the given set of parameters.
 
virtual void initialize (TTree *tree)
 Callback for the Processor to take any necessary action when the processing of events starts.
 
virtual bool process (IEvent *ievent)
 Process the event and put new data products into it.
 
virtual void finalize ()
 Callback for the Processor to take any necessary action when the processing of events finishes.
 
- Public Member Functions inherited from Processor
 Processor (const std::string &name, Process &process)
 Class constructor.
 
virtual ~Processor ()
 
virtual void initialize (std::string inFilename, std::string outFilename)
 Callback for the Processor to take any necessary action when the processing of events starts, such as initializing files.
 
virtual void setFile (TFile *outFile)
 Set output TFile for AnaProcessors.
 
virtual bool process ()
 Process the histograms and generate analysis output.
 

Private Member Functions

void parseVTPData (EVENT::LCGenericObject *vtp_data_lcio)
 
void parseTSData (EVENT::LCGenericObject *ts_data_lcio)
 

Private Attributes

EventHeaderheader_ {nullptr}
 
std::string headCollRoot_ {"EventHeader"}
 description
 
std::string rfCollLcio_ {"RFHits"}
 description
 
std::string trigCollLcio_ {"TriggerBank"}
 description
 
VTPDatavtpData {nullptr}
 
std::string vtpCollLcio_ {""}
 description
 
std::string vtpCollRoot_ {""}
 description
 
TSDatatsData {nullptr}
 
std::string tsCollLcio_ {"TSBank"}
 description
 
std::string tsCollRoot_ {"TSBank"}
 description
 
std::string run_evt_list_ {""}
 
std::map< int, std::vector< int > > run_evts_map_
 description
 
int debug_ {0}
 Debug Level.
 
int year_ {2021}
 

Additional Inherited Members

- Static Public Member Functions inherited from Processor
static void declare (const std::string &classname, ProcessorMaker *)
 Internal function which is part of the ProcessorFactory machinery.
 
- Protected Attributes inherited from Processor
Processprocess_
 
TFile * outF_ {nullptr}
 
std::string name_
 

Detailed Description

Processor used to write event info. more details.

Definition at line 48 of file EventProcessor.h.

Constructor & Destructor Documentation

◆ EventProcessor()

EventProcessor ( const std::string &  name,
Process process 
)

Class constructor.

Parameters
nameName for this instance of the class.
processThe Process class associated with Processor, provided by the processing framework.

Definition at line 11 of file EventProcessor.cxx.

◆ ~EventProcessor()

Destructor

Definition at line 15 of file EventProcessor.cxx.

Member Function Documentation

◆ configure()

void configure ( const ParameterSet parameters)
virtual

Callback for the Processor to configure itself from the given set of parameters.

Parameters
parametersParameterSet for configuration.

Reimplemented from Processor.

Definition at line 18 of file EventProcessor.cxx.

◆ finalize()

void finalize ( )
virtual

Callback for the Processor to take any necessary action when the processing of events finishes.

Implements Processor.

Definition at line 428 of file EventProcessor.cxx.

◆ initialize()

void initialize ( TTree *  tree)
virtual

Callback for the Processor to take any necessary action when the processing of events starts.

Parameters
tree

Implements Processor.

Definition at line 42 of file EventProcessor.cxx.

◆ parseTSData()

void parseTSData ( EVENT::LCGenericObject *  ts_data_lcio)
private

Parsing method

Definition at line 370 of file EventProcessor.cxx.

◆ parseVTPData()

void parseVTPData ( EVENT::LCGenericObject *  vtp_data_lcio)
private

Parsing method

Definition at line 215 of file EventProcessor.cxx.

◆ process()

bool process ( IEvent ievent)
virtual

Process the event and put new data products into it.

Parameters
eventThe Event to process.

Implements Processor.

Definition at line 66 of file EventProcessor.cxx.

Member Data Documentation

◆ debug_

int debug_ {0}
private

Debug Level.

Definition at line 119 of file EventProcessor.h.

◆ headCollRoot_

std::string headCollRoot_ {"EventHeader"}
private

description

Definition at line 96 of file EventProcessor.h.

◆ header_

EventHeader* header_ {nullptr}
private

Containers for event header

Definition at line 95 of file EventProcessor.h.

◆ rfCollLcio_

std::string rfCollLcio_ {"RFHits"}
private

description

Definition at line 97 of file EventProcessor.h.

◆ run_evt_list_

std::string run_evt_list_ {""}
private

single events checks

Definition at line 116 of file EventProcessor.h.

◆ run_evts_map_

std::map<int,std::vector<int > > run_evts_map_
private

description

Definition at line 117 of file EventProcessor.h.

◆ trigCollLcio_

std::string trigCollLcio_ {"TriggerBank"}
private

description

Definition at line 98 of file EventProcessor.h.

◆ tsCollLcio_

std::string tsCollLcio_ {"TSBank"}
private

description

Definition at line 107 of file EventProcessor.h.

◆ tsCollRoot_

std::string tsCollRoot_ {"TSBank"}
private

description

Definition at line 108 of file EventProcessor.h.

◆ tsData

TSData* tsData {nullptr}
private

Containers for ts data

Definition at line 106 of file EventProcessor.h.

◆ vtpCollLcio_

std::string vtpCollLcio_ {""}
private

description

Definition at line 102 of file EventProcessor.h.

◆ vtpCollRoot_

std::string vtpCollRoot_ {""}
private

description

Definition at line 103 of file EventProcessor.h.

◆ vtpData

VTPData* vtpData {nullptr}
private

Containers for vtp data

Definition at line 101 of file EventProcessor.h.

◆ year_

int year_ {2021}
private

Definition at line 120 of file EventProcessor.h.


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