#include <LArCollisionTimeDecorator.h>
Definition at line 30 of file LArCollisionTimeDecorator.h.
◆ EFloatDecor
◆ EIntDecor
◆ LArCollisionTimeDecorator()
DerivationFramework::LArCollisionTimeDecorator::LArCollisionTimeDecorator |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ addBranches()
StatusCode DerivationFramework::LArCollisionTimeDecorator::addBranches |
( |
| ) |
const |
|
virtual |
Definition at line 67 of file LArCollisionTimeDecorator.cxx.
70 const EventContext& ctx = Gaudi::Hive::currentContext();
72 CHECK(
eventInfo.isValid() ? StatusCode::SUCCESS : StatusCode::FAILURE);
76 std::vector<SG::WriteDecorHandle<xAOD::EventInfo,int> > int_decor_handles(createDecorators<xAOD::EventInfo,int>(
m_intDecorKeys,ctx));
77 std::vector<SG::WriteDecorHandle<xAOD::EventInfo,float> > float_decor_handles(createDecorators<xAOD::EventInfo,float>(
m_floatDecorKeys,ctx));
78 assert( int_decor_handles.size() ==
kNIntDecor);
81 int_decor_handles[
kncellA](*eventInfo) = tps->ncellA();
82 int_decor_handles[
kncellC](*eventInfo) = tps->ncellC();
83 float_decor_handles[
kenergyA](*eventInfo) = tps->energyA();
84 float_decor_handles[
kenergyC](*eventInfo) = tps->energyC();
85 float_decor_handles[
ktimeA](*eventInfo) = tps->timeA();
86 float_decor_handles[
ktimeC](*eventInfo) = tps->timeC();
87 float LArECtimeDiff = tps->timeA()-tps->timeC();
88 ATH_MSG_DEBUG(
"Decorating LAr time info, LArECTimeDiff = " << LArECtimeDiff);
94 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::LArCollisionTimeDecorator::finalize |
( |
| ) |
|
◆ initialize()
StatusCode DerivationFramework::LArCollisionTimeDecorator::initialize |
( |
| ) |
|
Definition at line 28 of file LArCollisionTimeDecorator.cxx.
32 ATH_MSG_WARNING(
"No decoration prefix name provided for the output of LArCollisionTimeDecorator!");
36 ATH_MSG_ERROR(
"No EventInfo collection provided for LArCollisionTimeDecorator!");
37 return StatusCode::FAILURE;
42 std::vector<std::string>
names;
50 std::vector<std::string>
names;
59 return StatusCode::SUCCESS;
◆ m_eventInfoKey
◆ m_floatDecorKeys
◆ m_intDecorKeys
◆ m_larCollisionTimeKey
◆ m_sgName
Gaudi::Property<std::string> DerivationFramework::LArCollisionTimeDecorator::m_sgName { this, "DecorationPrefix", "", ""} |
|
private |
The documentation for this class was generated from the following files:
void createDecoratorKeys(T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< SG::WriteDecorHandleKey< T_Cont > > &decor_out)