00001
00002
00003 #include "VisSimulation/VisSimBase/interface/VisSimProcessor.h"
00004 #include "VisFramework/VisFrameworkBase/interface/debug.h"
00005 #include "SimG4Core/Geometry/interface/DDDWorld.h"
00006 #include "SimG4Core/Notification/interface/EndOfEvent.h"
00007
00008
00009
00010
00011
00012
00013
00014
00015 IG_DEFINE_STATE_ELEMENT (VisSimProcessor, "Services/Simulation/Sim Processor");
00016
00017
00018
00019
00020
00021 VisSimProcessor::VisSimProcessor (IgState *state)
00022 : VisQueueProcessor (state)
00023 {
00024
00025
00026 }
00027
00028 void
00029 VisSimProcessor::update (const DDDWorld *item)
00030 {
00031 LOG (0, trace, LFfwvis, "VisSimProcessor: geometry " << item << '\n');
00032 if (item) process ();
00033 LOG (0, trace, LFfwvis, "VisSimProcessor: done " << item << '\n');
00034 }
00035
00036 void
00037 VisSimProcessor::update (const EndOfEvent *item)
00038 {
00039 LOG (0, trace, LFfwvis, "VisSimProcessor: event " << item << '\n');
00040 if (item) process ();
00041 LOG (0, trace, LFfwvis, "VisSimProcessor: done " << item << '\n');
00042 }