|
ATLAS Offline Software
|
Go to the documentation of this file.
31 #include "Gaudi/Property.h"
32 #include "GaudiKernel/IService.h"
33 #include "GaudiKernel/MsgStream.h"
37 ISvcLocator* pSvcLocator)
58 ATH_MSG_INFO(
"***********************************************");
59 ATH_MSG_INFO(
"* Steering options for LArCalibInject_timeSh algorithm *");
60 ATH_MSG_INFO(
"***********************************************");
72 return StatusCode::SUCCESS;
94 *caloMgrHandle,
false);
108 const auto* hitmapPtr = hitmap.
cptr();
111 for (;
it != it_end; ++
it) {
113 const std::vector<std::pair<float, float> >& timeE = hitlist.
getData();
114 if (!timeE.empty()) {
116 for (
size_t i = 0;
i < timeE.size();
i++) {
117 std::pair<float, float> energy_time = timeE[
i];
118 hitEMapOut->AddEnergy(idhash, energy_time.first, energy_time.second);
126 std::default_random_engine
generator(seed);
127 std::uniform_real_distribution<double> distribution(-12.5, 12.5);
129 for (;
it != it_end;
it += 16) {
132 hitEMapOut->AddEnergy(idhash, 10500.0, time_inject);
136 return StatusCode::SUCCESS;
141 ATH_MSG_INFO(
" LArCalibInject_timeSh finalize completed successfully");
143 return StatusCode::SUCCESS;
const CaloCell_ID * m_calocell_id
const_pointer_type cptr()
Dereference the pointer.
LArCalibInject_timeSh(const std::string &name, ISvcLocator *pSvcLocator)
constructor
SG::WriteHandleKey< LArHitEMap > m_hitMapOutKey
output Lar Digits Cell container
bool empty() const
Test if the key is blank.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
StatusCode initialize()
Read ascii files for auxiliary data (puslse shapes, noise, etc...)
An algorithm that can be simultaneously executed in multiple threads.
const LARLIST & getData() const
const T * retrieve(const EventContext &context, SG::ReadCondHandleKey< T > handleKey) const
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< LArHitEMap > m_hitMapKey
hit map
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
StatusCode execute(const EventContext &context) const
Create LAr object save in TES (2 containers: 1 EM, 1 hadronic)
StatusCode initialize(bool used=true)
generator
Configure Herwig7 These are the commands corresponding to what would go into the regular Herwig infil...
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::ReadCondHandleKey< ILArfSampl > m_fracSKey
Property: Fraction of Energy Sampled (conditions input).
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
seedless option
int GetNbCells(void) const
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
~LArCalibInject_timeSh()
destructor