|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef CALORINGERTOOLS_CALORINGERREADERUTILS_H
6 #define CALORINGERTOOLS_CALORINGERREADERUTILS_H
14 #include "GaudiKernel/ToolHandle.h"
15 #include "GaudiKernel/IDataHandleHolder.h"
49 ToolHandle<ICaloRingsBuilder> &
builder,
51 const std::string&
name):
106 template<
typename container_t >
150 const std::string &decoContName,
151 ToolHandle<ICaloRingsBuilder> &
builder,
153 IDataHandleHolder* owningAlg)
187 #endif // CALORINGERTOOLS_CALORINGERREADERUTILS_H
189 #ifndef INCLUDE_HEADER_ONLY // Use to avoid circular includes:
191 #endif // INCLUDE_HEADER_ONLY
ToolHandle< ICaloRingsBuilder > & m_builder
Protected Properties.
decor_t * m_decor
Write decorator handle.
SG::WriteDecorHandleKey< container_t > m_decorKey
Decorator key.
void operator()(const particle_t *part)
Methods.
void checkRelease()
Release the handles when finished looping.
container_t::base_value_type particle_t
Particle type that the functor will decorate the CaloRingsLinks.
BuildCaloRingsFctorBase base_t
StatusCode prepareToLoopFor(std::size_t nParticles)
Methods.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
SG::WriteHandle< xAOD::CaloRingsContainer > * m_crContH
Private Properties.
StatusCode prepareToLoopFor(std::size_t nParticles)
Prepare to loop for nParticles.
std::string caloRingsLinksDecorKey()
StatusCode initialize()
Initialize the decorator keys.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
msgSvc
Provide convenience handles for various services.
SG::WriteDecorHandle< container_t, xAOD::CaloRingsLinks > decor_t
CaloRings links decorator handle type.
BuildCaloRingsFctorBase(ToolHandle< ICaloRingsBuilder > &builder, IMessageSvc *msgSvc, const std::string &name)
Main ctor Initialize values.
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
size_t m_part_counter
Hold number of particles already procesed for this event:
Handle class for adding a decoration to an object.
Class to provide easy MsgStream access and capabilities.
Interface for CaloRings builder functor.
void checkRelease()
Release the handles when finished looping.
SG::WriteHandle< xAOD::RingSetContainer > * m_rsContH
Keep RingSetContainer handle in scope until finished looping.
void displayLoopingMessage() const
Shows current looping status.
Container class for CaloCell.
template to get particle_t name and if it has cluster access.
static constexpr bool m_particle_has_cluster
Holds if particle has cluster access:
An STL vector of pointers that by default owns its pointed-to elements.
void incrementCounter()
Increment particle looping counter.
static constexpr const char * m_particle_name
Holds particle name:
size_t m_part_size
Hold number of particles to be processed:
BuildCaloRingsFctor(const std::string &decoContName, ToolHandle< ICaloRingsBuilder > &builder, IMessageSvc *msgSvc, IDataHandleHolder *owningAlg)
Main ctor, repass information for interface.
virtual ~BuildCaloRingsFctorBase()
Namespace dedicated for Ringer utilities.