5#ifndef CALORINGERTOOLS_CALORINGSBUILDER_H
6#define CALORINGERTOOLS_CALORINGSBUILDER_H
53 const std::string &name,
54 const IInterface *parent);
86 virtual StatusCode
finalize()
override;
146 "CaloRingsContainerName",
148 "Name of the CaloRings container"};
155 "RingSetContainerName",
157 "Name of the RingSets container"};
164 "CellsContainerName",
166 "Key to obtain the cell container"};
175 "Each RingSet ring eta width."};
183 "Each RingSet ring phi width."};
189 "CellMaxDEtaDist", 0,
190 "Maximum cell distance to the seed in eta."};
196 "CellMaxDPhiDist", 0,
197 "Maximum cell distance to the seed in phi."};
201 Gaudi::Property<std::vector<unsigned int>>
m_nRings{
205 "Each RingSet number of rings."};
211 "MinPartEnergy", std::numeric_limits<float>::lowest(),
212 "Minimum particle/cluster energy to build rings (GeV)."};
221 Gaudi::Property<std::vector<
int >>
226 "Concatenated list of layers which will be used "
227 "to build the RingSets"};
235 "Each RingSet number of layers from the Layers "
236 "configurable property to use."};
245 "useShowerShapeBarycenter",
false,
246 "Switch to use shower barycenter for each layer, "
247 "instead of the cluster center."};
254 "doTransverseEnergy",
false,
255 "Switch to use raw cell energy, "
256 "instead of cells ET."};
298 template <
typename T>
Definition of CaloDetDescrManager.
CaloPhiRange class declaration.
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.
Container class for CaloCell.
This class defines the phi convention for Calorimeters.
ElementLink implementation for ROOT usage.
virtual StatusCode buildRingSet(const xAOD::RingSetConf::RawConf &rawConf, const AtlasGeoPoint &seed, xAOD::RingSet *rs)
Tool protected methods:
CaloRingsBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
const SG::WriteHandleKey< xAOD::RingSetContainer > & rsContName() const override
~CaloRingsBuilder()
Destructor.
SG::WriteHandleKey< xAOD::RingSetContainer > m_rsContName
Name of RingSetContainer on Event StoreGate.
const xAOD::RingSetConf::RawConfCollection & rawConf() override
Extra methods:
xAOD::RingSetConf::RawConfCollection m_rsRawConfCol
holds each RingSet configuration (filled at initialize)
virtual StatusCode execute(const xAOD::IParticle &particle, ElementLink< xAOD::CaloRingsContainer > &clRingsLink) override
build CaloRings for IParticle
StatusCode getRingSetSeed(const xAOD::RingSetConf::RawConf &conf, const xAOD::CaloCluster &cluster, AtlasGeoPoint &seed)
Fill RingSet seed for CaloCluster.
std::size_t nRingSets() const override
SG::WriteHandleKey< xAOD::CaloRingsContainer > m_crContName
Tool props (python configurables):
Gaudi::Property< float > m_minEnergy
Minimum particle energy to build rings (GeV)
size_t m_nRingSets
hold the number of RingSets we are building for each CaloRings
Gaudi::Property< std::vector< float > > m_etaWidth
Width of the ring in eta.
static const CaloPhiRange m_phiHelper
used for phi wrap-around
Gaudi::Property< bool > m_doTransverseEnergy
Switch to use raw cell energy instead ET.
StatusCode executeTemp(const T &input, ElementLink< xAOD::CaloRingsContainer > &crEL)
Tool private methods:
Gaudi::Property< std::vector< unsigned int > > m_nLayers
Number of calorimeter layers in each ringset.
Gaudi::Property< float > m_cellMaxDEtaDist
Maximum cell distance in eta to seed.
const SG::WriteHandleKey< xAOD::CaloRingsContainer > & crContName() const override
xAOD::RingSetContainer * m_rsCont
Tool props (non configurables):
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode preExecute(xAOD::CaloRingsContainer *crCont, xAOD::RingSetContainer *rsCont, const std::size_t nReserve=0) override
method for working on containers
Gaudi::Property< std::vector< float > > m_phiWidth
Width of the ring in phi.
xAOD::CaloRingsContainer * m_crCont
Create and hold CaloRingsContainer for each event.
bool useShowerShapeBarycenter() override
Retrieve whether it was set used shower shape barycenter.
SG::ReadHandleKey< CaloCellContainer > m_cellsContName
Name of CaloCellContainer.
AtlasGeoPoint m_lastValidSeed
last valid RingSet seed
Gaudi::Property< std::vector< unsigned int > > m_nRings
Number of rings in a ringset.
Gaudi::Property< bool > m_useShowShapeBarycenter
Switch to use shower barycenter seed for each RingSets.
Gaudi::Property< std::vector< int > > m_layers
Calorimeter layers in each ringset.
virtual StatusCode finalize() override
finalize method
virtual StatusCode initialize() override
Tool main methods:
Gaudi::Property< float > m_cellMaxDPhiDist
Maximum cell distance in phi to seed.
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.
Class providing the definition of the 4-vector interface.
std::vector< RawConf > RawConfCollection
typedef The raw configuration structure data holder
Namespace dedicated for Ringer utilities.
RingSet_v1 RingSet
Definition of the current "RingSet version".
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
RingSetContainer_v1 RingSetContainer
Definition of the current "RingSet container version".
CaloRingsContainer_v1 CaloRingsContainer
Definition of the current "CaloRings container version".