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)
std::array< float, 3 > Hit3DPosition
float maxEnergyHitAtLayer_
float getMaxEnergy(unsigned int layerId) const
unsigned int getLayersNum() const
std::vector< std::pair< unsigned int, float > > hitIdsAndFractions_
Hit3DPosition centerOfGravityAtLayer_
const std::vector< std::pair< unsigned int, float > > & hitsIdsAndFractions() const
Hit3DPosition getMaxEnergyPosition(unsigned int layerId) const
void setCenterOfGravity(unsigned int layerId, const Hit3DPosition &position)
const map< TString, int > numberOfLayers(TString Year="2018")
std::vector< LayerInfo > layerInfo_
float getExclusiveEnergy() const
void setVisible(bool vis)
float getExclusiveEnergyFraction() 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
void setLayersNum(unsigned int numberOfLayers)
void modifyFractionForHitId(float fraction, unsigned int hitId)
void addHitAndFraction(unsigned int hit, float fraction)
Hit3DPosition maxHitPosAtLayer_