CEDRIC  Revision_backup-2009-02
Public Types | Public Slots | Signals | Public Member Functions | List of all members
PhastScene Class Reference

Scenegraph holding static and dynamic Phast geometry. More...

#include <PhastScene.h>

Inheritance diagram for PhastScene:

Public Types

enum  Flags { SETUP =1, EVENT =2 }
 

Public Slots

void update (int flags=SETUP|EVENT)
 

Signals

void changed (int flags)
 

Public Member Functions

 PhastScene ()
 
void clearSetup ()
 
PhastNode * eventNode ()
 
PhastNode * setupNode ()
 
void setSetupNode (PhastNode *setup)
 
void setEventNode (PhastNode *event)
 
void registerDetector (std::string name, PhastNode *node)
 
PhastNode * getDetector (std::string name)
 
PhastNode * getTrack (int id)
 
void createTracks (const PaEvent &event)
 
osg::BoundingBox getBoundingBox () const
 

Detailed Description

Scenegraph holding static and dynamic Phast geometry.

This is a osg::Group node with two PhastNode's as children. The "setup" node holds the static, per-run geometry, i.e. the detectors, calorimeters, rich, magnets and target. The "event" node holds the dynamic, event-dependend geometry like tracks and hits.

Author
Max Hermann <mhermann[at]mail.cern.ch>

Member Enumeration Documentation

Enumerator
SETUP 
EVENT 

Constructor & Destructor Documentation

PhastScene::PhastScene ( )

Member Function Documentation

void PhastScene::changed ( int  flags)
signal
void PhastScene::clearSetup ( )
inline
void PhastScene::createTracks ( const PaEvent &  event)
PhastNode* PhastScene::eventNode ( )
inline

Referenced by VisCaloCluster::filter().

osg::BoundingBox PhastScene::getBoundingBox ( ) const
inline
PhastNode * PhastScene::getDetector ( std::string  name)
PhastNode * PhastScene::getTrack ( int  id)
void PhastScene::registerDetector ( std::string  name,
PhastNode *  node 
)
void PhastScene::setEventNode ( PhastNode *  event)
void PhastScene::setSetupNode ( PhastNode *  setup)
PhastNode* PhastScene::setupNode ( )
inline
void PhastScene::update ( int  flags = SETUP|EVENT)
slot