![]() |
ATLAS Offline Software
|
#include <MinBiasScintillatorSDTool.h>
Public Member Functions | |
| MinBiasScintillatorSDTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| ~MinBiasScintillatorSDTool ()=default | |
| virtual StatusCode | initialize () override |
| virtual StatusCode | Gather () override final |
| End of an athena event. | |
| StatusCode | initializeSD () override |
| Setup an SD in the current thread. | |
| virtual StatusCode | SetupEvent () override |
| Beginning of an athena event. | |
| virtual StatusCode | SetupEvent (HitCollectionMap &) override |
| virtual StatusCode | Gather (HitCollectionMap &) override |
Protected Member Functions | |
| virtual G4VSensitiveDetector * | makeSD () const override final |
| StatusCode | assignSD (std::unique_ptr< G4VSensitiveDetector > sd, const std::vector< std::string > &volumes) const |
| Assign SD to a list of volumes. | |
| G4VSensitiveDetector * | getSD () |
| Retrieve the current SD. | |
| void | SetSensitiveDetector (G4LogicalVolume *, G4VSensitiveDetector *) const |
| Method stolen from G4VUserDetectorConstruction in G4 10.2. | |
Protected Attributes | |
| Gaudi::Property< std::vector< std::string > > | m_volumeNames {this, "LogicalVolumeNames", {}} |
| All the volumes to which this SD is assigned. | |
| Gaudi::Property< std::vector< std::string > > | m_outputCollectionNames {this, "OutputCollectionNames", {}} |
| Names of all output collections written out by this SD. | |
| Gaudi::Property< bool > | m_noVolumes {this, "NoVolumes", false} |
| This SensitiveDetector has no volumes associated with it. | |
Private Member Functions | |
| void | setSD (G4VSensitiveDetector *) |
| Set the current SD. | |
Static Private Member Functions | |
| static bool | matchStrings (const char *first, const char *second) |
| Match two strings with wildcard support. | |
Private Attributes | |
| MinBiasScintSDOptions | m_options |
| Gaudi::Property< std::vector< double > > | m_deltaTHit {this, "DeltaTHit", {0.5 , -75.25 , 75.25 , 5.}} |
| Gaudi::Property< double > | m_timeCut {this, "TimeCut", 350.5} |
| Gaudi::Property< bool > | m_tileTB {this, "TileTB", false} |
| Gaudi::Property< bool > | m_doBirk {this, "DoBirk", true} |
| Gaudi::Property< double > | m_birk1 {this, "Birk1", 0.0130 * CLHEP::g / (CLHEP::MeV * CLHEP::cm2)} |
| Gaudi::Property< double > | m_birk2 {this, "Birk2", 9.6e-6 * CLHEP::g / (CLHEP::MeV * CLHEP::cm2) * CLHEP::g / (CLHEP::MeV * CLHEP::cm2)} |
| Gaudi::Property< bool > | m_doTOFCorrection {this, "DoTOFCorrection", true} |
| G4VSensitiveDetector * | m_SD {} |
| The sensitive detector to which this thing corresponds. | |
Definition at line 20 of file MinBiasScintillatorSDTool.h.
| MinBiasScintillatorSDTool::MinBiasScintillatorSDTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
|
default |
|
protectedinherited |
Assign SD to a list of volumes.
This method supports wild card matching
Definition at line 64 of file SensitiveDetectorBase.cxx.
|
finaloverridevirtual |
End of an athena event.
Reimplemented from SensitiveDetectorBase.
|
inlineoverridevirtualinherited |
Reimplemented in BCMSensorSDTool, BLMSensorSDTool, CSCSensitiveDetectorCosmicsTool, CSCSensitiveDetectorTool, GenericMuonSensitiveDetectorTool, MDTSensitiveDetectorCosmicsTool, MDTSensitiveDetectorTool, MicromegasSensitiveDetectorTool, PixelSensorSDTool, RPCSensitiveDetectorCosmicsTool, RPCSensitiveDetectorTool, SctSensor_CTBTool, SctSensorSDTool, sTGCSensitiveDetectorTool, TGCSensitiveDetectorCosmicsTool, TGCSensitiveDetectorTool, TileGeoG4CalibSDTool, TileGeoG4SDTool, and TRTSensitiveDetectorTool.
Definition at line 79 of file SensitiveDetectorBase.h.
|
protectedinherited |
Retrieve the current SD.
In AthenaMT, this means the thread-local SD. Otherwise, it is simply the single SD.
Definition at line 122 of file SensitiveDetectorBase.cxx.
|
overridevirtual |
|
overrideinherited |
Setup an SD in the current thread.
Separate from the AthAlgTool initialize() method because it needs to be called once per worker thread in AthenaMT. Don't confuse this with the G4 SD method Initialize which is called at the beginning of every G4 event.
Definition at line 25 of file SensitiveDetectorBase.cxx.
|
finaloverrideprotectedvirtual |
|
staticprivateinherited |
Match two strings with wildcard support.
Compares two strings character by character with optional * wildcard in the first argument
Definition at line 149 of file SensitiveDetectorBase.cxx.
|
privateinherited |
Set the current SD.
In hive, this gets assigned as the thread-local SD.
Definition at line 136 of file SensitiveDetectorBase.cxx.
|
protectedinherited |
Method stolen from G4VUserDetectorConstruction in G4 10.2.
Definition at line 176 of file SensitiveDetectorBase.cxx.
|
inlineoverridevirtualinherited |
Beginning of an athena event.
This is where collection initialization should happen. If we are using a WriteHandle, then this could be empty.
Reimplemented in AFP_SensitiveDetectorTool, AFP_SiDSensitiveDetectorTool, AFP_TDSensitiveDetectorTool, ALFA_SensitiveDetectorTool, CaloCellContainerSDTool, and MuonWallSDTool.
Definition at line 70 of file SensitiveDetectorBase.h.
|
inlineoverridevirtualinherited |
Reimplemented in BCMSensorSDTool, BLMSensorSDTool, CSCSensitiveDetectorCosmicsTool, CSCSensitiveDetectorTool, GenericMuonSensitiveDetectorTool, MDTSensitiveDetectorCosmicsTool, MDTSensitiveDetectorTool, MicromegasSensitiveDetectorTool, PixelSensorSDTool, RPCSensitiveDetectorCosmicsTool, RPCSensitiveDetectorTool, SctSensor_CTBTool, SctSensorSDTool, sTGCSensitiveDetectorTool, TGCSensitiveDetectorCosmicsTool, TGCSensitiveDetectorTool, TileGeoG4CalibSDTool, TileGeoG4SDTool, and TRTSensitiveDetectorTool.
Definition at line 71 of file SensitiveDetectorBase.h.
|
private |
Definition at line 41 of file MinBiasScintillatorSDTool.h.
|
private |
Definition at line 42 of file MinBiasScintillatorSDTool.h.
|
private |
Definition at line 37 of file MinBiasScintillatorSDTool.h.
|
private |
Definition at line 40 of file MinBiasScintillatorSDTool.h.
|
private |
Definition at line 43 of file MinBiasScintillatorSDTool.h.
|
protectedinherited |
This SensitiveDetector has no volumes associated with it.
Definition at line 101 of file SensitiveDetectorBase.h.
|
private |
Definition at line 35 of file MinBiasScintillatorSDTool.h.
|
protectedinherited |
Names of all output collections written out by this SD.
Definition at line 98 of file SensitiveDetectorBase.h.
|
privateinherited |
The sensitive detector to which this thing corresponds.
Definition at line 125 of file SensitiveDetectorBase.h.
|
private |
Definition at line 39 of file MinBiasScintillatorSDTool.h.
|
private |
Definition at line 38 of file MinBiasScintillatorSDTool.h.
|
protectedinherited |
All the volumes to which this SD is assigned.
Definition at line 96 of file SensitiveDetectorBase.h.