Skip to content
Snippets Groups Projects
Commit 607fc474 authored by Dave Casper's avatar Dave Casper
Browse files

Merge branch 'master-loose-truth' into 'master-loose-truth'

Add truth info in Trench with tighter momentum cut

See merge request faser/calypso!278
parents 4ef045f6 617f9dcc
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ from AthenaConfiguration.ComponentFactory import CompFactory ...@@ -11,7 +11,7 @@ from AthenaConfiguration.ComponentFactory import CompFactory
from BarcodeServices.BarcodeServicesConfigNew import MC15aPlusBarcodeSvcCfg from BarcodeServices.BarcodeServicesConfigNew import MC15aPlusBarcodeSvcCfg
from ISF_HepMC_Tools.ISF_HepMC_ToolsConfigNew import ParticleFinalStateFilterCfg, GenParticleInteractingFilterCfg from ISF_HepMC_Tools.ISF_HepMC_ToolsConfigNew import ParticleFinalStateFilterCfg, GenParticleInteractingFilterCfg
# from FaserISF_HepMC_Tools.FaserISF_HepMC_ToolsConfigNew import FaserTruthStrategyCfg, FaserDipoleTruthStrategyCfg # from FaserISF_HepMC_Tools.FaserISF_HepMC_ToolsConfigNew import FaserTruthStrategyCfg, FaserDipoleTruthStrategyCfg
from FaserISF_HepMC_Tools.FaserISF_HepMC_ToolsConfigNew import TruthStrategyGroupCfg from FaserISF_HepMC_Tools.FaserISF_HepMC_ToolsConfigNew import TruthStrategyGroupCfg, TrenchStrategyGroupCfg
ISF__FaserTruthSvc, ISF__FaserGeoIDSvc, ISF__FaserInputConverter = CompFactory.getComps("ISF::FaserTruthSvc","ISF::FaserGeoIDSvc","ISF::FaserInputConverter") ISF__FaserTruthSvc, ISF__FaserGeoIDSvc, ISF__FaserInputConverter = CompFactory.getComps("ISF::FaserTruthSvc","ISF::FaserGeoIDSvc","ISF::FaserInputConverter")
...@@ -65,8 +65,10 @@ def FaserTruthServiceCfg(ConfigFlags, name="FaserISF_TruthService", **kwargs): ...@@ -65,8 +65,10 @@ def FaserTruthServiceCfg(ConfigFlags, name="FaserISF_TruthService", **kwargs):
# acc2= FaserDipoleTruthStrategyCfg(ConfigFlags) # acc2= FaserDipoleTruthStrategyCfg(ConfigFlags)
# kwargs.setdefault('TruthStrategies',[result.popToolsAndMerge(acc), result.popToolsAndMerge(acc2)]) # kwargs.setdefault('TruthStrategies',[result.popToolsAndMerge(acc), result.popToolsAndMerge(acc2)])
acc = TruthStrategyGroupCfg(ConfigFlags) acc = TruthStrategyGroupCfg(ConfigFlags)
kwargs.setdefault('TruthStrategies', [result.popToolsAndMerge(acc)]) # FaserNu hack
acc2 = TrenchStrategyGroupCfg(ConfigFlags)
kwargs.setdefault('TruthStrategies', [result.popToolsAndMerge(acc), result.popToolsAndMerge(acc2)])
kwargs.setdefault('SkipIfNoChildren', True) kwargs.setdefault('SkipIfNoChildren', True)
kwargs.setdefault('SkipIfNoParentBarcode', True) kwargs.setdefault('SkipIfNoParentBarcode', True)
......
...@@ -173,6 +173,23 @@ def TruthStrategyGroupCfg(ConfigFlags, name="ISF_MCTruthStrategyGroupID", **kwar ...@@ -173,6 +173,23 @@ def TruthStrategyGroupCfg(ConfigFlags, name="ISF_MCTruthStrategyGroupID", **kwar
result.setPrivateTools(CompFactory.ISF.FaserTruthStrategy(name, **kwargs)) result.setPrivateTools(CompFactory.ISF.FaserTruthStrategy(name, **kwargs))
return result return result
# FaserNu hack
def TrenchStrategyGroupCfg(ConfigFlags, name="ISF_TrenchStrategyGroupID", **kwargs):
import ROOT, cppyy
cppyy.load_library('FaserDetDescrDict')
FaserRegion = ROOT.FaserDetDescr.FaserRegion
result = ComponentAccumulator()
kwargs.setdefault("ParentMinEkin", 10000.*MeV)
kwargs.setdefault("ChildMinEkin" , 10000.*MeV)
kwargs.setdefault("VertexTypes", [3, 14, 15, 4, 5, 6, 7, 2, 12, 13])
kwargs.setdefault("VertexTypeRangeLow" , 201) # All kinds of decay processes
kwargs.setdefault("VertexTypeRangeHigh" , 298) # ...
kwargs.setdefault("Regions", [FaserRegion.fFaserTrench])
result.setPrivateTools(CompFactory.ISF.FaserTruthStrategy(name, **kwargs))
return result
# def FaserDipoleTruthStrategyCfg(ConfigFlags, name="ISF_FaserDipoleTruthStrategy", **kwargs): # def FaserDipoleTruthStrategyCfg(ConfigFlags, name="ISF_FaserDipoleTruthStrategy", **kwargs):
# result = ComponentAccumulator() # result = ComponentAccumulator()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment