ATLAS Offline Software
LArCalibInject_timeSh.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 
49  //
50  // >>>>>>>> public methods
51  //
52  public:
54  LArCalibInject_timeSh(const std::string& name, ISvcLocator* pSvcLocator);
55 
58  //
59  // ..... Gaudi algorithm hooks
60  //
66  StatusCode execute(const EventContext& context) const;
67 
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  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"};
95  this, "LArHitEMapOutKey", "LArHitEMapOut", "Output LArDigit container"};
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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
LArCalibInject_timeSh::m_calocell_id
const CaloCell_ID * m_calocell_id
Definition: LArCalibInject_timeSh.h:102
LArCalibInject_timeSh::LArCalibInject_timeSh
LArCalibInject_timeSh(const std::string &name, ISvcLocator *pSvcLocator)
constructor
Definition: LArCalibInject_timeSh.cxx:36
SG::ReadCondHandle::isValid
bool isValid()
Definition: ReadCondHandle.h:206
LArCalibInject_timeSh::m_hitMapOutKey
SG::WriteHandleKey< LArHitEMap > m_hitMapOutKey
output Lar Digits Cell container
Definition: LArCalibInject_timeSh.h:94
LArCalibInject_timeSh::m_seedLess
bool m_seedLess
Definition: LArCalibInject_timeSh.h:107
SG::ReadHandleKey< LArHitEMap >
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
LArCalibInject_timeSh::initialize
StatusCode initialize()
Read ascii files for auxiliary data (puslse shapes, noise, etc...)
Definition: LArCalibInject_timeSh.cxx:53
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LArCalibInject_timeSh::retrieve
const T * retrieve(const EventContext &context, SG::ReadCondHandleKey< T > handleKey) const
Definition: LArCalibInject_timeSh.h:76
LArCalibInject_timeSh::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArCalibInject_timeSh.h:103
LArOnOffIdMapping.h
LArHitEMap.h
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
SG::WriteHandleKey< LArHitEMap >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArCalibInject_timeSh::m_hitMapKey
SG::ReadHandleKey< LArHitEMap > m_hitMapKey
hit map
Definition: LArCalibInject_timeSh.h:91
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
ReadCondHandleKey.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
LArCalibInject_timeSh::execute
StatusCode execute(const EventContext &context) const
Create LAr object save in TES (2 containers: 1 EM, 1 hadronic)
Definition: LArCalibInject_timeSh.cxx:75
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArCalibInject_timeSh::finalize
StatusCode finalize()
Definition: LArCalibInject_timeSh.cxx:139
SG::ReadCondHandleKey< ILArfSampl >
LArCalibInject_timeSh::m_fracSKey
SG::ReadCondHandleKey< ILArfSampl > m_fracSKey
Property: Fraction of Energy Sampled (conditions input).
Definition: LArCalibInject_timeSh.h:72
CaloIdManager.h
LArCalibInject_timeSh::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
seedless option
Definition: LArCalibInject_timeSh.h:98
SG::ReadCondHandle::key
const std::string & key() const
Definition: ReadCondHandle.h:59
LArCalibInject_timeSh
The aim of this algorithm is the simulation of the LAr analogue Super-Cell sums.
Definition: LArCalibInject_timeSh.h:48
LArCalibInject_timeSh::~LArCalibInject_timeSh
~LArCalibInject_timeSh()
destructor
Definition: LArCalibInject_timeSh.cxx:47
ILArfSampl.h
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
SG::ReadCondHandle::cptr
const_pointer_type cptr()
Definition: ReadCondHandle.h:67