1 #ifndef __RecoParticleFlow_PFClusterProducer_RealisticCluster_H__ 2 #define __RecoParticleFlow_PFClusterProducer_RealisticCluster_H__ 48 if (newEnergy >
layerInfo_[layerId].maxEnergyHitAtLayer_) {
49 layerInfo_[layerId].maxEnergyHitAtLayer_ = newEnergy;
69 [&hitId](
const std::pair<unsigned int, float>& element) {
return element.first == hitId; });
void increaseExclusiveEnergy(float value)
constexpr uint32_t numberOfLayers
unsigned int getLayersNum() const
std::array< float, 3 > Hit3DPosition
float maxEnergyHitAtLayer_
const std::vector< std::pair< unsigned int, float > > & hitsIdsAndFractions() const
Hit3DPosition getMaxEnergyPosition(unsigned int layerId) const
float getExclusiveEnergy() const
std::vector< std::pair< unsigned int, float > > hitIdsAndFractions_
Hit3DPosition centerOfGravityAtLayer_
void setCenterOfGravity(unsigned int layerId, const Hit3DPosition &position)
std::vector< LayerInfo > layerInfo_
void setVisible(bool vis)
float getMaxEnergy(unsigned int layerId) const
void modifyFractionByIndex(float fraction, unsigned int index)
bool setMaxEnergyHit(unsigned int layerId, float newEnergy, const Hit3DPosition position)
void increaseEnergy(float value)
static int position[264][3]
Hit3DPosition getCenterOfGravity(unsigned int layerId) const
float getExclusiveEnergyFraction() const
void setLayersNum(unsigned int numberOfLayers)
void modifyFractionForHitId(float fraction, unsigned int hitId)
void addHitAndFraction(unsigned int hit, float fraction)
Hit3DPosition maxHitPosAtLayer_