Commit 5d660a25 authored by Mark Hodgkinson's avatar Mark Hodgkinson
Browse files

Remove FE toggle for adding shower subtracted clusters, because we always need...

Remove FE toggle for adding shower subtracted clusters, because we always need to add this to neutral FE due to the shallow copy model for the LC scale (the scale is taken from that cluster link's 4-vector). Enable FELCNeutralCreatorAlgorithm, if creating FlowElements.
parent 085762bf
......@@ -40,9 +40,6 @@ private:
/** Toggle usage of calibration hit truth - false by default */
Gaudi::Property<bool> m_useCalibHitTruth{this,"UseCalibHitTruth",false,"Toggle usage of calibration hit truth - false by default"};
/** Toggle addition of charged shower subtracted CaloCluster links to neutral FE - false by default */
Gaudi::Property<bool> m_addShowerSubtractedClusters{this,"AddShowerSubtractedClusters",false,"Toggle addition of charged shower subtracted CaloCluster links to neutral PFO - false by default"};
/** ReadHandleKey for eflowCaloObjectContainer */
SG::ReadHandleKey<eflowCaloObjectContainer> m_eflowCaloObjectContainerReadHandleKey{this,"eflowCaloObjectContainerName","eflowCaloObjects","ReadHandleKey for eflowCaloObjectContainer"};
......
......@@ -260,3 +260,6 @@ if jobproperties.eflowRecFlags.useFlowElements:
PFNeutralFlowElementCreatorAlgorithm = PFNeutralFlowElementCreatorAlgorithm("PFNeutralFlowElementCreatorAlgorithm")
topSequence += PFNeutralFlowElementCreatorAlgorithm
from eflowRec.eflowRecConf import PFLCNeutralFlowElementCreatorAlgorithm
PFLCNeutralFlowElementCreatorAlgorithm = PFLCNeutralFlowElementCreatorAlgorithm("PFLCNeutralFlowElementCreatorAlgorithm")
topSequence += PFLCNeutralFlowElementCreatorAlgorithm
......@@ -84,10 +84,8 @@ StatusCode PFNeutralFlowElementCreatorAlgorithm::createNeutralFlowElement(const
theClusters.push_back(theIParticleTrackLink);
thisFE->setOtherObjectLinks(theClusters);
if (true == m_addShowerSubtractedClusters){
const SG::AuxElement::Accessor<ElementLink<xAOD::CaloClusterContainer> > accShowerSubtractedClusterLink("FEShowerSubtractedClusterLink");
accShowerSubtractedClusterLink(*thisFE) = thisEfRecCluster->getClusElementLink();
}
const SG::AuxElement::Accessor<ElementLink<xAOD::CaloClusterContainer> > accShowerSubtractedClusterLink("FEShowerSubtractedClusterLink");
accShowerSubtractedClusterLink(*thisFE) = thisEfRecCluster->getClusElementLink();
ATH_MSG_VERBOSE(" Sucessfully set cluster link");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment