Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

PisaDetector Class Reference

Special case of a PisaDevice which describe a sensitive device, i.e. More...

#include <PisaDetector.h>

Inheritance diagram for PisaDetector:

Inheritance graph
[legend]
Collaboration diagram for PisaDetector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PisaDetector ()
virtual ~PisaDetector ()
virtual void beginEvent (PHCompositeNode *topNode)=0
 Called at the beginning of each event.

virtual void createGeometry (PHCompositeNode *topNode)=0
 Build the geometry of the device topNode can be used e.g.

virtual void createMaterials (PHCompositeNode *topNode)=0
 Define the materials and tracking media used by this device.

virtual void enable (bool status)
virtual void finishEvent (PHCompositeNode *topNode)=0
 Called at the end of each event.

virtual bool isSensitive () const
 Whether this device is a sensitive one.

virtual const char * name () const =0
 Name of the device.

virtual void stepManager ()=0
 Called at each step of each track.

virtual const char * subsystem () const =0
 Subsystem this device is related to.


Detailed Description

Special case of a PisaDevice which describe a sensitive device, i.e.

a detector. It has a stepManager which will record hits. Note that the stepManager might be disabled if needed, thus making this detector a "inactive" device (might be usefull if you want the material of this detector to be present in the simulation, but do not want any record of what happens within it).

Definition at line 14 of file PisaDetector.h.


Constructor & Destructor Documentation

PisaDetector::PisaDetector  ) 
 

Definition at line 4 of file PisaDetector.C.

PisaDetector::~PisaDetector  )  [virtual]
 

Definition at line 10 of file PisaDetector.C.


Member Function Documentation

virtual void PisaDetector::beginEvent PHCompositeNode *  topNode  )  [pure virtual]
 

Called at the beginning of each event.

Reimplemented from PisaDevice.

Implemented in PisaBBC.

virtual void PisaDetector::createGeometry PHCompositeNode *  topNode  )  [pure virtual]
 

Build the geometry of the device topNode can be used e.g.

to fetch the PhnxPar object, containing all subsystem parameters read from phnx.par file

Implements PisaDevice.

Implemented in PisaBBC.

virtual void PisaDetector::createMaterials PHCompositeNode *  topNode  )  [pure virtual]
 

Define the materials and tracking media used by this device.

topNode can be used e.g. to fetch the PhnxPar object, containing all subsystem parameters read from phnx.par file

Implements PisaDevice.

Implemented in PisaBBC.

virtual void PisaDetector::enable bool  status  )  [inline, virtual]
 

Definition at line 28 of file PisaDetector.h.

Referenced by PisaBBC::PisaBBC().

virtual void PisaDetector::finishEvent PHCompositeNode *  topNode  )  [pure virtual]
 

Called at the end of each event.

Reimplemented from PisaDevice.

Implemented in PisaBBC.

virtual bool PisaDetector::isSensitive  )  const [inline, virtual]
 

Whether this device is a sensitive one.

A sensitive device is typically a detector, whereas a non-sensitive one is some structural material (e.g. magnet). If true, must implement stepManager(). Note that a detector might return false here, in case one does not want to use its stepManager.

Reimplemented from PisaDevice.

Definition at line 32 of file PisaDetector.h.

virtual const char* PisaDetector::name  )  const [pure virtual]
 

Name of the device.

Implements PisaDevice.

Implemented in PisaBBC.

virtual void PisaDetector::stepManager  )  [pure virtual]
 

Called at each step of each track.

Reimplemented from PisaDevice.

Implemented in PisaBBC.

virtual const char* PisaDetector::subsystem  )  const [pure virtual]
 

Subsystem this device is related to.

Implements PisaDevice.

Implemented in PisaBBC.


The documentation for this class was generated from the following files: