G4DigiModel Class Reference

#include <G4DigiModel.hh>

Inheritance diagram for G4DigiModel:

G4VModel

Public Member Functions

 G4DigiModel ()
virtual ~G4DigiModel ()
virtual void DescribeYourselfTo (G4VGraphicsScene &)
const G4VDigiGetCurrentDigi () const

Detailed Description

Definition at line 47 of file G4DigiModel.hh.


Constructor & Destructor Documentation

G4DigiModel::G4DigiModel (  ) 

Definition at line 41 of file G4DigiModel.cc.

References G4VModel::fGlobalDescription, G4VModel::fGlobalTag, and G4VModel::fType.

00041                          :
00042   fpCurrentDigi(0)
00043 {
00044   fType = "G4DigiModel";
00045   fGlobalTag = "G4DigiModel for all digis.";
00046   fGlobalDescription = fGlobalTag;
00047 }

G4DigiModel::~G4DigiModel (  )  [virtual]

Definition at line 39 of file G4DigiModel.cc.

00039 {}


Member Function Documentation

void G4DigiModel::DescribeYourselfTo ( G4VGraphicsScene  )  [virtual]

Implements G4VModel.

Definition at line 49 of file G4DigiModel.cc.

References G4VGraphicsScene::AddCompound(), G4VModel::fpMP, and G4ModelingParameters::GetEvent().

00050 {
00051   const G4Event* event = fpMP->GetEvent();
00052   if (event) {
00053     G4DCofThisEvent* DCE = event -> GetDCofThisEvent ();
00054     if (DCE) {
00055       G4int nDC = DCE -> GetCapacity ();
00056       for (int iDC = 0; iDC < nDC; iDC++) {
00057         G4VDigiCollection* DC = DCE -> GetDC (iDC);
00058         if (DC) {
00059           for(size_t iDigi = 0; iDigi < DC->GetSize(); ++iDigi) {
00060             fpCurrentDigi = DC -> GetDigi (iDigi);
00061             if (fpCurrentDigi) sceneHandler.AddCompound (*fpCurrentDigi);
00062           }
00063         }
00064       }
00065     }
00066   }
00067 }

const G4VDigi* G4DigiModel::GetCurrentDigi (  )  const [inline]

Definition at line 58 of file G4DigiModel.hh.

00059   {return fpCurrentDigi;}


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:46 2013 for Geant4 by  doxygen 1.4.7