#include <G4DigiModel.hh>
Inheritance diagram for G4DigiModel:
Public Member Functions | |
G4DigiModel () | |
virtual | ~G4DigiModel () |
virtual void | DescribeYourselfTo (G4VGraphicsScene &) |
const G4VDigi * | GetCurrentDigi () const |
Definition at line 47 of file G4DigiModel.hh.
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] |
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] |