#include <EMB1CellsFromCaloCells.h>
◆ EMB1CellsFromCaloCells()
| EMB1CellsFromCaloCells::EMB1CellsFromCaloCells |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~EMB1CellsFromCaloCells()
| virtual GlobalSim::EMB1CellsFromCaloCells::~EMB1CellsFromCaloCells |
( |
| ) |
|
|
inlinevirtual |
◆ cells()
| StatusCode EMB1CellsFromCaloCells::cells |
( |
std::vector< const CaloCell * > & | cells, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 21 of file Global/GlobalSimulation/src/FirstChain/EMB1CellsFromCaloCells.cxx.
22 {
23
24
25
26 SG::ReadHandle<CaloCellContainer> h_caloCells;
27
30
31 const auto& allCaloCells = *h_caloCells;
34 if(!allCaloCells.checkOrderedAndComplete()){
36 return StatusCode::FAILURE;
37 }
38 }
39
40
41
42 auto EMB1_sel = [](
const CaloCell*
cell) {
43 return cell->caloDDE()->getSampling() == CaloCell_Base_ID::EMB1;
44 };
45
46
49 std::back_inserter(
cells),
50 EMB1_sel);
51
52
53 return StatusCode::SUCCESS;
54 }
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode cells(std::vector< const CaloCell * > &, const EventContext &) const override
SG::ReadHandleKey< CaloCellContainer > m_caloCellsKey
Gaudi::Property< bool > m_makeCaloCellContainerChecks
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
◆ initialize()
| StatusCode EMB1CellsFromCaloCells::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_caloCellsKey
◆ m_makeCaloCellContainerChecks
| Gaudi::Property<bool> GlobalSim::EMB1CellsFromCaloCells::m_makeCaloCellContainerChecks |
|
private |
The documentation for this class was generated from the following files: