CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/SimG4Core/Application/interface/DDDWorldObserver.h

Go to the documentation of this file.
00001 #ifndef SimG4Core_DDDWorldObserver_H
00002 #define SimG4Core_DDDWorldObserver_H
00003 
00004 #include "SimG4Core/Notification/interface/Observer.h"
00005 #include "SimG4Core/Geometry/interface/DDDWorld.h"
00006 
00007 #include <iostream>
00008 
00009 template<typename Event>
00010 class DDDWorldObserver : public Observer<const Event*>
00011 {
00012 public:
00013     virtual void update(const DDDWorld * w)
00014     {
00015         std::cout << " DDDWorldObserver: in update " << std::endl;
00016         if (w!=0)
00017         std::cout << " DDDWorldObserver: got DDDWorld! " << std::endl;  
00018     }
00019 };
00020 
00021 #endif