ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalibInject_timeSh.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARL1SIM_LARCALIBINJECT_TIMESH_H
6#define LARL1SIM_LARCALIBINJECT_TIMESH_H
7// +======================================================================+
8// + +
9// + Author ........: Denis O. Damazio +
10// + Institut ......: BNL +
11// + Creation date .: 18/11/2013 +
12// + +
13// +======================================================================+
14//
15// ....... include
16//
17
19#include "Gaudi/Property.h"
20#include "GaudiKernel/ServiceHandle.h"
21//
29//
31
47
49 //
50 // >>>>>>>> public methods
51 //
52 public:
54 LArCalibInject_timeSh(const std::string& name, ISvcLocator* pSvcLocator);
55
58 //
59 // ..... Gaudi algorithm hooks
60 //
62 StatusCode initialize();
66 StatusCode execute(const EventContext& context) const;
67
68 StatusCode finalize();
69
70 private:
73 this, "FracSKey", "LArfSampl", "SG Key of fSamplS conditions object"};
74
75 template <class T>
76 const T* retrieve(const EventContext& context,
77 const SG::ReadCondHandleKey<T>& handleKey) const {
78 SG::ReadCondHandle<T> handle(handleKey, context);
79 if (not handle.isValid()) {
80 ATH_MSG_ERROR("could not retrieve : " << handle.key());
81 return nullptr;
82 } else
83 return handle.cptr();
84 }
85
86 //
87 // >>>>>>>> private algorithm parts
88 //
89
91 SG::ReadHandleKey<LArHitEMap> m_hitMapKey{this, "LArHitEMapKey", "LArHitEMap",
92 "Input HitMap from cell hits"};
93
95 this, "LArHitEMapOutKey", "LArHitEMapOut", "Output LArDigit container"};
96
97
99 this, "CablingKey", "LArOnOffIdMap",
100 "SG Key of LArOnOffIdMapping object"};
101
104 this, "CaloDetDescrManager", "CaloDetDescrManager",
105 "SG Key for CaloDetDescrManager in the Condition Store"};
106
108};
109
110#endif
#define ATH_MSG_ERROR(x)
Definition of CaloDetDescrManager.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
SG::ReadCondHandleKey< ILArfSampl > m_fracSKey
Property: Fraction of Energy Sampled (conditions input).
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
seedless option
LArCalibInject_timeSh(const std::string &name, ISvcLocator *pSvcLocator)
constructor
SG::WriteHandleKey< LArHitEMap > m_hitMapOutKey
output Lar Digits Cell container
StatusCode execute(const EventContext &context) const
Create LAr object save in TES (2 containers: 1 EM, 1 hadronic)
StatusCode initialize()
Read ascii files for auxiliary data (puslse shapes, noise, etc...)
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
const T * retrieve(const EventContext &context, const SG::ReadCondHandleKey< T > &handleKey) const
const CaloCell_ID * m_calocell_id
SG::ReadHandleKey< LArHitEMap > m_hitMapKey
hit map
const std::string & key() const
const_pointer_type cptr()
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.