Main Page
Namespaces
Classes
Package Documentation
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
DDDWorld.h
w
const double w
Definition:
UKUtility.cc:23
Observer.h
DDDWorldObserver::update
virtual void update(const DDDWorld *w)
Definition:
DDDWorldObserver.h:13
DDDWorldObserver
Definition:
DDDWorldObserver.h:10
DDDWorld
Definition:
DDDWorld.h:10
Observer
Definition:
Observer.h:24
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
Generated for CMSSW Reference Manual by
1.8.11