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
Classes | Macros | Typedefs
Processor.h File Reference

Base classes for all user event processing components to extend. More...

#include <map>
#include "ParameterSet.h"

Go to the source code of this file.

Classes

class  Processor
 Base class for all event processing components. More...
 

Macros

#define DECLARE_PROCESSOR(CLASS)   Processor* CLASS ## _make (const std::string& name, Process& process) { return new CLASS(name,process); } __attribute__((constructor(1000))) static void CLASS ## _declare() { Processor::declare(#CLASS, & CLASS ## _make ); }
 Macro which allows the framework to construct a producer given its name during configuration.
 

Typedefs

typedef ProcessorProcessorMaker(const std::string &name, Process &process)
 

Detailed Description

Base classes for all user event processing components to extend.

Author
Omar Moreno, SLAC National Accelerator Laboratory

Definition in file Processor.h.

Macro Definition Documentation

◆ DECLARE_PROCESSOR

#define DECLARE_PROCESSOR (   CLASS)    Processor* CLASS ## _make (const std::string& name, Process& process) { return new CLASS(name,process); } __attribute__((constructor(1000))) static void CLASS ## _declare() { Processor::declare(#CLASS, & CLASS ## _make ); }

Macro which allows the framework to construct a producer given its name during configuration.

Parameters
CLASSThe name of the class to register, which must not be in a namespace.
Attention
Every Producer class must call this macro in the associated implementation (.cxx) file.

Definition at line 139 of file Processor.h.

Typedef Documentation

◆ ProcessorMaker

typedef Processor * ProcessorMaker(const std::string &name, Process &process)

Typedef for ProcessorFactory use.

Definition at line 28 of file Processor.h.