ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCalibHitDecoratorCfg Namespace Reference

Functions

 CaloCalibHitDecoratorCfg (flags, name="CaloCalibClusterDecoratorAlgorithm", **kwargs)
 CaloCalibHitDecoratorFullEnergyCfg (flags, name="CaloCalibCLusterDecoratorAlgorithm_Full", **kwargs)

Function Documentation

◆ CaloCalibHitDecoratorCfg()

CaloCalibHitDecoratorCfg.CaloCalibHitDecoratorCfg ( flags,
name = "CaloCalibClusterDecoratorAlgorithm",
** kwargs )

Definition at line 6 of file CaloCalibHitDecoratorCfg.py.

6def CaloCalibHitDecoratorCfg(flags, name = "CaloCalibClusterDecoratorAlgorithm", **kwargs):
7 result=ComponentAccumulator()
8
9 result.addEventAlgo(CompFactory.CaloCalibClusterTruthMapMakerAlgorithm())
10
11 kwargs.setdefault("CaloClusterWriteDecorHandleKey_NLeadingTruthParticles", "CaloCalTopoClusters."+flags.Calo.TopoCluster.CalibrationHitDecorationName)
12
13 #We use the cell links from topoclusters, so we also need to specify that the algorithm depends on the calorimeter cell container
14 CaloCalibClusterDecoratorAlgorithm = CompFactory.CaloCalibClusterDecoratorAlgorithm(name,**kwargs,ExtraInputs = {('CaloCellContainer','StoreGateSvc+AllCalo')})
15 CaloCalibClusterDecoratorAlgorithm.TruthAttributerTool = CompFactory.CaloCalibClusterTruthAttributerTool()
16 result.addEventAlgo(CaloCalibClusterDecoratorAlgorithm)
17
18 return result
19
20#This configures a version of the tool that stores the full, rather than only the visible, calibration hit truth energy in the cluster

◆ CaloCalibHitDecoratorFullEnergyCfg()

CaloCalibHitDecoratorCfg.CaloCalibHitDecoratorFullEnergyCfg ( flags,
name = "CaloCalibCLusterDecoratorAlgorithm_Full",
** kwargs )

Definition at line 21 of file CaloCalibHitDecoratorCfg.py.

21def CaloCalibHitDecoratorFullEnergyCfg( flags, name = "CaloCalibCLusterDecoratorAlgorithm_Full", **kwargs):
22
23 result = ComponentAccumulator()
24 result.merge(CaloCalibHitDecoratorCfg(flags, name, **kwargs))
25 result.getEventAlgo(name).TruthAttributerTool.storeFullTruthEnergy = True
26 return result