Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE05TrackerSD Class Reference

#include <RE05TrackerSD.hh>

Inheritance diagram for RE05TrackerSD:
Collaboration diagram for RE05TrackerSD:

Public Member Functions

 RE05TrackerSD (G4String name)
 
virtual ~RE05TrackerSD ()
 
virtual void Initialize (G4HCofThisEvent *HCE)
 
virtual G4bool ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist)
 
virtual void EndOfEvent (G4HCofThisEvent *HCE)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 
- Public Member Functions inherited from G4VSensitiveDetector
 G4VSensitiveDetector (G4String name)
 
 G4VSensitiveDetector (const G4VSensitiveDetector &right)
 
virtual ~G4VSensitiveDetector ()
 
G4VSensitiveDetectoroperator= (const G4VSensitiveDetector &right)
 
G4int operator== (const G4VSensitiveDetector &right) const
 
G4int operator!= (const G4VSensitiveDetector &right) const
 
G4bool Hit (G4Step *aStep)
 
void SetROgeometry (G4VReadOutGeometry *value)
 
void SetFilter (G4VSDFilter *value)
 
G4int GetNumberOfCollections () const
 
G4String GetCollectionName (G4int id) const
 
void SetVerboseLevel (G4int vl)
 
void Activate (G4bool activeFlag)
 
G4bool isActive () const
 
G4String GetName () const
 
G4String GetPathName () const
 
G4String GetFullPathName () const
 
G4VReadOutGeometryGetROgeometry () const
 
G4VSDFilterGetFilter () const
 
virtual G4VSensitiveDetectorClone () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VSensitiveDetector
virtual G4int GetCollectionID (G4int i)
 
- Protected Attributes inherited from G4VSensitiveDetector
G4CollectionNameVector collectionName
 
G4String SensitiveDetectorName
 
G4String thePathName
 
G4String fullPathName
 
G4int verboseLevel
 
G4bool active
 
G4VReadOutGeometryROgeometry
 
G4VSDFilterfilter
 

Detailed Description

Definition at line 41 of file RE05TrackerSD.hh.

Constructor & Destructor Documentation

RE05TrackerSD::RE05TrackerSD ( G4String  name)

Definition at line 41 of file RE05TrackerSD.cc.

42 : G4VSensitiveDetector(name),
43  fTrackerCollection(0)
44 {
45  G4String HCname;
46  collectionName.insert(HCname="trackerCollection");
47 }
G4VSensitiveDetector(G4String name)
G4CollectionNameVector collectionName

Here is the call graph for this function:

RE05TrackerSD::~RE05TrackerSD ( )
virtual

Definition at line 51 of file RE05TrackerSD.cc.

52 {}

Member Function Documentation

void RE05TrackerSD::clear ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 88 of file RE05TrackerSD.cc.

89 {}
void RE05TrackerSD::DrawAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 93 of file RE05TrackerSD.cc.

94 {}
void RE05TrackerSD::EndOfEvent ( G4HCofThisEvent HCE)
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 83 of file RE05TrackerSD.cc.

84 {}
void RE05TrackerSD::Initialize ( G4HCofThisEvent HCE)
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 56 of file RE05TrackerSD.cc.

57 {
58  static int HCID = -1;
59  fTrackerCollection = new RE05TrackerHitsCollection
61  if(HCID<0)
62  { HCID = GetCollectionID(0); }
63  HCE->AddHitsCollection(HCID,fTrackerCollection);
64 }
virtual G4int GetCollectionID(G4int i)
G4THitsCollection< RE05TrackerHit > RE05TrackerHitsCollection
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4CollectionNameVector collectionName

Here is the call graph for this function:

void RE05TrackerSD::PrintAll ( void  )
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 98 of file RE05TrackerSD.cc.

99 {}
G4bool RE05TrackerSD::ProcessHits ( G4Step aStep,
G4TouchableHistory ROhist 
)
virtual

Implements G4VSensitiveDetector.

Definition at line 68 of file RE05TrackerSD.cc.

69 {
70  G4double edep = aStep->GetTotalEnergyDeposit();
71  if(edep==0.) return false;
72 
73  RE05TrackerHit* newHit = new RE05TrackerHit();
74  newHit->SetEdep( edep );
75  newHit->SetPos( aStep->GetPreStepPoint()->GetPosition() );
76  fTrackerCollection->insert( newHit );
77 
78  return true;
79 }
void SetEdep(G4double de)
G4int insert(T *aHit)
void SetPos(G4ThreeVector xyz)
G4StepPoint * GetPreStepPoint() const
const G4ThreeVector & GetPosition() const
G4double GetTotalEnergyDeposit() const
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:


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