#include <SimTestToolBase.h>
Inherits SimTestHisto, and extends< AthAlgTool, ISimTestTool >.
Inherited by ALFA_SimHitsTestTool, CaloCalibrationHitsTestTool, LArHitsTestTool, LayerTestTool, LucidHitsTestTool, MuonHitTestToolBase, SiHitsTestTool, TileHitsTestTool, TrtHitsTestTool, TruthTestTool, and ZDCHitsTestTool.
Definition at line 20 of file SimTestToolBase.h.
◆ SimTestToolBase()
| SimTestToolBase::SimTestToolBase |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 11 of file SimTestToolBase.cxx.
13 :
14 base_class(type, name, parent)
15{
16 declareProperty(
"HistPath",
m_path=
"/truth/");
17 declareProperty(
"McEventKey",
m_key=
"TruthEvent");
18}
◆ getPrimary()
Definition at line 20 of file SimTestToolBase.cxx.
21{
25 for (e=mcCollection->
begin();e!=mcCollection->
end(); ++e) {
26 for (auto p : (**e)) {
29 }
30 }
31 }
32 }
33 return 0;
34}
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
retrieve(aClass, aKey=None)
◆ initialize()
| virtual StatusCode SimTestToolBase::initialize |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in ALFA_SimHitsTestTool, CaloCalibrationHitsTestTool, CSCHitsTestTool, EMBHitsTestTool, EMECHitsTestTool, FCALHitsTestTool, HECHitsTestTool, LArHitsTestTool, LayerTestTool, LucidHitsTestTool, MDTHitsTestTool, MMHitsTestTool, MuonHitTestToolBase, RPCHitsTestTool, SiHitsTestTool, sTGCHitsTestTool, TGCHitsTestTool, TileHitsTestTool, TrtHitsTestTool, TruthTestTool, and ZDCHitsTestTool.
Definition at line 25 of file SimTestToolBase.h.
25 {
26 return StatusCode::SUCCESS;
27 }
◆ m_histSvc
| ServiceHandle<ITHistSvc> SimTestHisto::m_histSvc {"THistSvc", "SimTestHisto"} |
|
protectedinherited |
◆ m_key
| std::string SimTestToolBase::m_key |
|
protected |
◆ m_path
| std::string SimTestHisto::m_path {"/truth/"} |
|
protectedinherited |
The documentation for this class was generated from the following files: