SimG4Core
Application
interface
DDDWorldObserver.h
Go to the documentation of this file.
1
#ifndef SimG4Core_DDDWorldObserver_H
2
#define SimG4Core_DDDWorldObserver_H
3
4
#include "
SimG4Core/Notification/interface/Observer.h
"
5
#include "
SimG4Core/Geometry/interface/DDDWorld.h
"
6
7
#include <iostream>
8
9
template
<
typename
Event>
10
class
DDDWorldObserver
:
public
Observer
<const Event*>
11
{
12
public
:
13
virtual
void
update
(
const
DDDWorld
*
w
)
14
{
15
std::cout
<<
" DDDWorldObserver: in update "
<< std::endl;
16
if
(
w
!=0)
17
std::cout
<<
" DDDWorldObserver: got DDDWorld! "
<< std::endl;
18
}
19
};
20
21
#endif
Observer
Definition:
Observer.h:23
DDDWorld
Definition:
DDDWorld.h:14
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
DDDWorldObserver
Definition:
DDDWorldObserver.h:10
Observer.h
DDDWorld.h
DDDWorldObserver::update
virtual void update(const DDDWorld *w)
Definition:
DDDWorldObserver.h:13
w
const double w
Definition:
UKUtility.cc:23
Generated for CMSSW Reference Manual by
1.8.16