Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
CexmcTrackPointsFilter Class Reference

#include <CexmcTrackPointsFilter.hh>

Inheritance diagram for CexmcTrackPointsFilter:
G4VSDFilter

Public Member Functions

 CexmcTrackPointsFilter (const G4String &name)
 
G4bool Accept (const G4Step *step) const
 
- Public Member Functions inherited from G4VSDFilter
 G4VSDFilter (G4String name)
 
virtual ~G4VSDFilter ()
 
G4String GetName () const
 

Additional Inherited Members

- Protected Attributes inherited from G4VSDFilter
G4String filterName
 

Detailed Description

Definition at line 53 of file CexmcTrackPointsFilter.hh.

Constructor & Destructor Documentation

CexmcTrackPointsFilter::CexmcTrackPointsFilter ( const G4String name)
explicit

Definition at line 53 of file CexmcTrackPointsFilter.cc.

53  :
54  G4VSDFilter( name )
55 {
56 }
G4VSDFilter(G4String name)
Definition: G4VSDFilter.cc:32

Member Function Documentation

G4bool CexmcTrackPointsFilter::Accept ( const G4Step step) const
virtual

Implements G4VSDFilter.

Definition at line 59 of file CexmcTrackPointsFilter.cc.

References CexmcInsipidTrack, and G4Step::GetTrack().

60 {
61  G4Track * track( step->GetTrack() );
62  CexmcTrackInfo * trackInfo( static_cast< CexmcTrackInfo * >(
63  track->GetUserInformation() ) );
64 
65  if ( ! trackInfo )
66  return false;
67 
68  return trackInfo->GetTrackType() != CexmcInsipidTrack;
69 }
G4Track * GetTrack() const

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