4 #include "marlin/Processor.h"
5 #include "marlin/EventModifier.h"
46 class Overlay :
public marlin::Processor,
public marlin::EventModifier {
50 virtual marlin::Processor* newProcessor() {
return new Overlay ; }
55 virtual const std::string & name()
const {
return Processor::name() ; }
57 virtual void modifyEvent( EVENT::LCEvent * evt ) ;
74 virtual void check( EVENT::LCEvent * evt ) ;
95 int _nSkipEventsRandom ;
98 std::map<std::string, std::string> _colMap;
100 IO::LCReader* _lcReader ;
101 EVENT::LCEvent* _overlayEvent ;
103 int _activeRunNumber;
virtual void init()
Called at the begin of the job before anything is read.
Definition: Overlay.cc:108
LCEvent * readNextEvent()
Helper method.
Definition: Overlay.cc:306
Overlay processor allows to overlay an event with background events from additional LCIO files based ...
Definition: Overlay.h:46
virtual void check(EVENT::LCEvent *evt)
Called for every event - the working horse.
Definition: Overlay.cc:288
virtual void end()
Called after data processing for clean up.
Definition: Overlay.cc:293
StringVec _fileNames
Input file names.
Definition: Overlay.h:91
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
Definition: Overlay.cc:176