5#ifndef MCTruthBase_RECORDINGENVELOPE_H
6#define MCTruthBase_RECORDINGENVELOPE_H
16class G4VPhysicalVolume;
28 RecordingEnvelope(
const std::string& envelopeVolumeName,
const std::string& trackRecordCollectionName);
64 bool checkDaughters(
const G4LogicalVolume *possibleParent,
const G4VPhysicalVolume *thePhysicalVolume,
int& level)
const;
AtlasHitsVector< TrackRecord > TrackRecordCollection
G4LogicalVolume * m_logicalVolume
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.
const std::string & GetTrackRecordCollectionName() const
Returns the name of the TrackRecordCollection to which tracks crossing this recording envelope should...
const std::string m_envelopeVolumeName
Name of the G4LogicalVolume used by this recording envelope.
const std::string & GetVolumeName() const
Returns the name of the recording envelope volume.
TrackRecordCollection * m_trackRecordCollection
TrackRecordCollection used by this envelope.
std::string m_trackRecordCollectionName
const G4LogicalVolume * GetLogicalVolume() const
Returns the pointer to the G4LogicalVolume used by this recording envelope.
void AddTrackRecord(const G4Step *aStep)
Add a TrackRecord to the TrackRecordCollection owned by this recording envelope based on the informat...
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(const std::string &envelopeVolumeName, const std::string &trackRecordCollectionName)
Constructor.
int GetLevel() const
Returns the number of levels beneath the world volume that the G4LogicalVolume associated with this r...
bool Initialize()
Finds the pointer to the G4LogicalVolume called m_envelopeVolumeName and the number of levels beneath...
~RecordingEnvelope()
Destructor.
void BeginOfEvent(TrackRecordCollection *)
Called at the start of each G4 event.