Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DigiModel Class Reference

#include <G4DigiModel.hh>

+ Inheritance diagram for G4DigiModel:

Public Member Functions

 G4DigiModel ()
 
virtual ~G4DigiModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &)
 
const G4VDigiGetCurrentDigi () const
 
- Public Member Functions inherited from G4VModel
 G4VModel (const G4Transform3D &modelTransformation=G4Transform3D(), const G4ModelingParameters *=0)
 
virtual ~G4VModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &)=0
 
const G4ModelingParametersGetModelingParameters () const
 
const G4StringGetType () const
 
virtual G4String GetCurrentDescription () const
 
virtual G4String GetCurrentTag () const
 
const G4VisExtentGetExtent () const
 
const G4VisExtentGetTransformedExtent () const
 
const G4StringGetGlobalDescription () const
 
const G4StringGetGlobalTag () const
 
const G4Transform3DGetTransformation () const
 
void SetModelingParameters (const G4ModelingParameters *)
 
void SetExtent (const G4VisExtent &)
 
void SetType (const G4String &)
 
void SetGlobalDescription (const G4String &)
 
void SetGlobalTag (const G4String &)
 
void SetTransformation (const G4Transform3D &)
 
virtual G4bool Validate (G4bool warn=true)
 

Additional Inherited Members

- Protected Attributes inherited from G4VModel
G4String fType
 
G4String fGlobalTag
 
G4String fGlobalDescription
 
G4VisExtent fExtent
 
G4Transform3D fTransform
 
const G4ModelingParametersfpMP
 

Detailed Description

Definition at line 46 of file G4DigiModel.hh.

Constructor & Destructor Documentation

◆ G4DigiModel()

G4DigiModel::G4DigiModel ( )

Definition at line 40 of file G4DigiModel.cc.

40 :
41 fpCurrentDigi(0)
42{
43 fType = "G4DigiModel";
44 fGlobalTag = "G4DigiModel for all digis.";
46}
G4String fGlobalDescription
Definition: G4VModel.hh:112
G4String fType
Definition: G4VModel.hh:110
G4String fGlobalTag
Definition: G4VModel.hh:111

◆ ~G4DigiModel()

G4DigiModel::~G4DigiModel ( )
virtual

Definition at line 38 of file G4DigiModel.cc.

38{}

Member Function Documentation

◆ DescribeYourselfTo()

void G4DigiModel::DescribeYourselfTo ( G4VGraphicsScene sceneHandler)
virtual

Implements G4VModel.

Definition at line 48 of file G4DigiModel.cc.

49{
50 const G4Event* event = fpMP->GetEvent();
51 if (event) {
52 G4DCofThisEvent* DCE = event -> GetDCofThisEvent ();
53 if (DCE) {
54 G4int nDC = DCE -> GetCapacity ();
55 for (int iDC = 0; iDC < nDC; iDC++) {
56 G4VDigiCollection* DC = DCE -> GetDC (iDC);
57 if (DC) {
58 for(size_t iDigi = 0; iDigi < DC->GetSize(); ++iDigi) {
59 fpCurrentDigi = DC -> GetDigi (iDigi);
60 if (fpCurrentDigi) sceneHandler.AddCompound (*fpCurrentDigi);
61 }
62 }
63 }
64 }
65 }
66}
int G4int
Definition: G4Types.hh:85
const G4Event * GetEvent() const
virtual size_t GetSize() const
virtual void AddCompound(const G4VTrajectory &)=0
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:115

◆ GetCurrentDigi()

const G4VDigi * G4DigiModel::GetCurrentDigi ( ) const
inline

Definition at line 57 of file G4DigiModel.hh.

58 {return fpCurrentDigi;}

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