#include <EMBE1CellsFromCaloCells.h>
Definition at line 15 of file EMBE1CellsFromCaloCells.h.
◆ EMBE1CellsFromCaloCells()
| GlobalSim::EMBE1CellsFromCaloCells::EMBE1CellsFromCaloCells |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~EMBE1CellsFromCaloCells()
| virtual GlobalSim::EMBE1CellsFromCaloCells::~EMBE1CellsFromCaloCells |
( |
| ) |
|
|
inlinevirtual |
◆ cells()
| StatusCode GlobalSim::EMBE1CellsFromCaloCells::cells |
( |
std::vector< const CaloCell * > & | cells, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 21 of file EMBE1CellsFromCaloCells.cxx.
22 {
23
24
25 SG::ReadHandle<CaloCellContainer> h_caloCells;
26
29
30 const auto& allCaloCells = *h_caloCells;
33 if(!allCaloCells.checkOrderedAndComplete()){
35 return StatusCode::FAILURE;
36 }
37 }
38
39
40
41 auto EMBE1_sel = [](
const CaloCell*
cell) {
42 if (
cell->caloDDE()->getSampling() == CaloCell_Base_ID::EMB1 ||
cell->caloDDE()->getSampling() == CaloCell_Base_ID::EME1){
43 return true;
44 } else {
45 return false;
46 }
47 };
48
49
52 std::back_inserter(
cells),
53 EMBE1_sel);
54
55
56 return StatusCode::SUCCESS;
57 }
#define CHECK(...)
Evaluate an expression and check for errors.
SG::ReadHandleKey< CaloCellContainer > m_caloCellsKey
virtual StatusCode cells(std::vector< const CaloCell * > &, const EventContext &) const override
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 GlobalSim::EMBE1CellsFromCaloCells::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_caloCellsKey
Initial value:{
this, "caloCells", "SeedLessFS", "key to read in a CaloCell container"}
Definition at line 33 of file EMBE1CellsFromCaloCells.h.
33 {
34 this, "caloCells", "SeedLessFS", "key to read in a CaloCell container"};
◆ m_makeCaloCellContainerChecks
| Gaudi::Property<bool> GlobalSim::EMBE1CellsFromCaloCells::m_makeCaloCellContainerChecks |
|
private |
Initial value:{
this,
"makeCaloCellContainerChecks",
true,
"flag to run checks on read-in CaloCellContainer"}
Definition at line 36 of file EMBE1CellsFromCaloCells.h.
36 {
37 this,
38 "makeCaloCellContainerChecks",
39 true,
40 "flag to run checks on read-in CaloCellContainer"};
The documentation for this class was generated from the following files: