#ifndef TriggerSim_h #define TriggerSim_h 1 #include "marlin/Processor.h" #include "lcio.h" #include #include "EVENT/SimCalorimeterHit.h" using namespace lcio ; using namespace marlin ; /** Based on example processor for marlin. */ class TriggerSim : public Processor { public: virtual Processor* newProcessor() { return new TriggerSim ; } TriggerSim() ; /** Called at the begin of the job before anything is read. * Use to initialize the processor, e.g. book histograms. */ virtual void init() ; /** Called for every run. */ virtual void processRunHeader( LCRunHeader* run ) ; /** Called for every event - the working horse. */ virtual void processEvent( LCEvent * evt ) ; /** Called after data processing for clean up. */ virtual void end() ; private: protected: /** Input collection name. */ int _nRun ; int _nEvt ; int _nSc1_10x10; int _nSc2_10x10; int _nSc1_3x3; int _nSc2_3x3; int _nSc1_100x100; int _nSc2_100x100; int _nVetoTrigger; int _nVeto_20x20; int _nBeamTrigger; std::string _DetectorName ; } ; #endif