81 virtual void initialize(std::string inFilename, std::string outFilename) {};
139#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 ); }
Class which contains parameters passed to a Processor.
Processor * ProcessorMaker(const std::string &name, Process &process)
Base class for all event processing components.
virtual bool process(IEvent *ievent)=0
Process the event and put new data products into it.
static void declare(const std::string &classname, ProcessorMaker *)
Internal function which is part of the ProcessorFactory machinery.
virtual void finalize()=0
Callback for the Processor to take any necessary action when the processing of events finishes,...
virtual void configure(const ParameterSet ¶meters)
Callback for the Processor to configure itself from the given set of parameters.
virtual bool process()
Process the histograms and generate analysis output.
virtual void initialize(TTree *tree)=0
Callback for the Processor to take any necessary action when the processing of events starts,...
virtual void initialize(std::string inFilename, std::string outFilename)
Callback for the Processor to take any necessary action when the processing of events starts,...
virtual void setFile(TFile *outFile)
Set output TFile for AnaProcessors.