|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MCTruthBase_RECORDINGENVELOPE_H
6 #define MCTruthBase_RECORDINGENVELOPE_H
15 class G4LogicalVolume;
17 class G4VPhysicalVolume;
29 RecordingEnvelope(
const std::string& envelopeVolumeName,
const std::string& trackRecordCollectionName);
65 bool checkDaughters(
const G4LogicalVolume *possibleParent,
const G4VPhysicalVolume *thePhysicalVolume,
int&
level)
const;
103 #endif //MCTruthBase_RECORDINGENVELOPE_H
const G4LogicalVolume * GetLogicalVolume() const
Returns the pointer to the G4LogicalVolume used by this recording envelope.
int m_level
The number of levels beneath the world that the G4LogicalVolume called m_envelopeVolumeName lies.
void BeginOfEvent()
Called at the start of each G4 event.
SG::WriteHandle< TrackRecordCollection > m_trackRecordCollection
WriteHandle to the TrackRecordCollection used by this envelope.
Handle class for recording to StoreGate.
bool checkDaughters(const G4LogicalVolume *possibleParent, const G4VPhysicalVolume *thePhysicalVolume, int &level) const
Recursively called method used to hunt for the G4LogicalVolume associated with this recording envelop...
~RecordingEnvelope()
Destructor.
G4LogicalVolume * m_logicalVolume
Pointer to the G4LogicalVolume used by this recording envelope.
RecordingEnvelope(const std::string &envelopeVolumeName, const std::string &trackRecordCollectionName)
Constructor.
const std::string m_envelopeVolumeName
Name of the G4LogicalVolume used by this recording envelope.
bool Initialize()
Finds the pointer to the G4LogicalVolume called m_envelopeVolumeName and the number of levels beneath...
std::string GetTrackRecordCollectionName() const
Returns the name of the TrackRecordCollection to which tracks crossing this recording envelope should...
Responsible for finding the G4LogicalVolume pointer for each recording envelope and for creating and ...
const std::string & GetVolumeName() const
Returns the name of the recording envelope volume.
void AddTrackRecord(const G4Step *aStep)
Add a TrackRecord to the TrackRecordCollection owned by this recording envelope based on the informat...
int GetLevel() const
Returns the number of levels beneath the world volume that the G4LogicalVolume associated with this r...