![]() |
ATLAS Offline Software
|
Responsible for finding the G4LogicalVolume pointer for each recording envelope and for creating and filling the corresponding TrackRecordCollection. More...
#include <RecordingEnvelope.h>
Public Member Functions | |
| RecordingEnvelope (const std::string &envelopeVolumeName, const std::string &trackRecordCollectionName) | |
| Constructor. More... | |
| ~RecordingEnvelope () | |
| Destructor. More... | |
| bool | Initialize () |
| Finds the pointer to the G4LogicalVolume called m_envelopeVolumeName and the number of levels beneath the world volume that it lies. More... | |
| void | BeginOfEvent () |
| Called at the start of each G4 event. More... | |
| int | GetLevel () const |
| Returns the number of levels beneath the world volume that the G4LogicalVolume associated with this recording envelope lies. More... | |
| const std::string & | GetVolumeName () const |
| Returns the name of the recording envelope volume. More... | |
| const G4LogicalVolume * | GetLogicalVolume () const |
| Returns the pointer to the G4LogicalVolume used by this recording envelope. More... | |
| std::string | GetTrackRecordCollectionName () const |
| Returns the name of the TrackRecordCollection to which tracks crossing this recording envelope should be written. More... | |
| void | AddTrackRecord (const G4Step *aStep) |
| Add a TrackRecord to the TrackRecordCollection owned by this recording envelope based on the information in aStep. More... | |
Private Member Functions | |
| bool | checkDaughters (const G4LogicalVolume *possibleParent, const G4VPhysicalVolume *thePhysicalVolume, int &level) const |
| Recursively called method used to hunt for the G4LogicalVolume associated with this recording envelope by the Initialize method. More... | |
Private Attributes | |
| int | m_level |
| The number of levels beneath the world that the G4LogicalVolume called m_envelopeVolumeName lies. More... | |
| G4LogicalVolume * | m_logicalVolume |
| Pointer to the G4LogicalVolume used by this recording envelope. More... | |
| const std::string | m_envelopeVolumeName |
| Name of the G4LogicalVolume used by this recording envelope. More... | |
| SG::WriteHandle< TrackRecordCollection > | m_trackRecordCollection |
| WriteHandle to the TrackRecordCollection used by this envelope. More... | |
Responsible for finding the G4LogicalVolume pointer for each recording envelope and for creating and filling the corresponding TrackRecordCollection.
Definition at line 24 of file RecordingEnvelope.h.
| RecordingEnvelope::RecordingEnvelope | ( | const std::string & | envelopeVolumeName, |
| const std::string & | trackRecordCollectionName | ||
| ) |
| RecordingEnvelope::~RecordingEnvelope | ( | ) |
| void RecordingEnvelope::AddTrackRecord | ( | const G4Step * | aStep | ) |
Add a TrackRecord to the TrackRecordCollection owned by this recording envelope based on the information in aStep.
Definition at line 68 of file RecordingEnvelope.cxx.
| void RecordingEnvelope::BeginOfEvent | ( | ) |
Called at the start of each G4 event.
Recreates the TrackRecordCollection if necessary.
Definition at line 63 of file RecordingEnvelope.cxx.
|
private |
Recursively called method used to hunt for the G4LogicalVolume associated with this recording envelope by the Initialize method.
Definition at line 33 of file RecordingEnvelope.cxx.
|
inline |
Returns the number of levels beneath the world volume that the G4LogicalVolume associated with this recording envelope lies.
Definition at line 98 of file RecordingEnvelope.h.
|
inline |
Returns the pointer to the G4LogicalVolume used by this recording envelope.
Definition at line 88 of file RecordingEnvelope.h.
|
inline |
Returns the name of the TrackRecordCollection to which tracks crossing this recording envelope should be written.
Definition at line 93 of file RecordingEnvelope.h.
|
inline |
Returns the name of the recording envelope volume.
Definition at line 83 of file RecordingEnvelope.h.
| bool RecordingEnvelope::Initialize | ( | ) |
Finds the pointer to the G4LogicalVolume called m_envelopeVolumeName and the number of levels beneath the world volume that it lies.
Definition at line 54 of file RecordingEnvelope.cxx.
|
private |
Name of the G4LogicalVolume used by this recording envelope.
Definition at line 77 of file RecordingEnvelope.h.
|
private |
The number of levels beneath the world that the G4LogicalVolume called m_envelopeVolumeName lies.
Definition at line 69 of file RecordingEnvelope.h.
|
private |
Pointer to the G4LogicalVolume used by this recording envelope.
Definition at line 74 of file RecordingEnvelope.h.
|
private |
WriteHandle to the TrackRecordCollection used by this envelope.
Definition at line 80 of file RecordingEnvelope.h.
1.8.18