Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HitsModel Class Reference

#include <G4HitsModel.hh>

Inheritance diagram for G4HitsModel:
Collaboration diagram for G4HitsModel:

Public Member Functions

 G4HitsModel ()
 
virtual ~G4HitsModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &)
 
const G4VHitGetCurrentHit () const
 
- Public Member Functions inherited from G4VModel
 G4VModel (const G4Transform3D &modelTransformation=G4Transform3D(), const G4ModelingParameters *=0)
 
virtual ~G4VModel ()
 
const G4ModelingParametersGetModelingParameters () const
 
const G4StringGetType () const
 
virtual G4String GetCurrentDescription () const
 
virtual G4String GetCurrentTag () const
 
const G4VisExtentGetExtent () 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 47 of file G4HitsModel.hh.

Constructor & Destructor Documentation

G4HitsModel::G4HitsModel ( )

Definition at line 41 of file G4HitsModel.cc.

41  :
42  fpCurrentHit(0)
43 {
44  fType = "G4HitsModel";
45  fGlobalTag = "G4HitsModel for all hits.";
47 }
G4String fType
Definition: G4VModel.hh:108
G4String fGlobalTag
Definition: G4VModel.hh:109
G4String fGlobalDescription
Definition: G4VModel.hh:110
G4HitsModel::~G4HitsModel ( )
virtual

Definition at line 39 of file G4HitsModel.cc.

39 {}

Member Function Documentation

void G4HitsModel::DescribeYourselfTo ( G4VGraphicsScene sceneHandler)
virtual

Implements G4VModel.

Definition at line 49 of file G4HitsModel.cc.

50 {
51  const G4Event* event = fpMP->GetEvent();
52  if (event) {
53  G4HCofThisEvent* HCE = event -> GetHCofThisEvent ();
54  if (HCE) {
55  G4int nHC = HCE -> GetCapacity ();
56  for (int iHC = 0; iHC < nHC; iHC++) {
57  G4VHitsCollection* HC = HCE -> GetHC (iHC);
58  if (HC) {
59  for(size_t iHit = 0; iHit < HC->GetSize(); ++iHit) {
60  fpCurrentHit = HC -> GetHit (iHit);
61  if (fpCurrentHit) sceneHandler.AddCompound (*fpCurrentHit);
62  }
63  }
64  }
65  }
66  }
67 }
virtual size_t GetSize() const
int G4int
Definition: G4Types.hh:78
const G4Event * GetEvent() const
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:113
virtual void AddCompound(const G4VTrajectory &)=0

Here is the call graph for this function:

const G4VHit* G4HitsModel::GetCurrentHit ( ) const
inline

Definition at line 58 of file G4HitsModel.hh.

59  {return fpCurrentHit;}

Here is the caller graph for this function:


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