Skip to content
Snippets Groups Projects
Commit 347bac92 authored by Oleh Kivernyk's avatar Oleh Kivernyk
Browse files

Fixing errors for DOAD_PHYS

parent 83ddbbfa
No related branches found
No related tags found
No related merge requests found
...@@ -181,13 +181,8 @@ ToolSvc += EGAMCOM_caloFillRect711 ...@@ -181,13 +181,8 @@ ToolSvc += EGAMCOM_caloFillRect711
from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__AsgSelectionToolWrapper from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__AsgSelectionToolWrapper
from DerivationFrameworkEGamma.DerivationFrameworkEGammaConf import DerivationFramework__EGSelectionToolWrapper from DerivationFrameworkEGamma.DerivationFrameworkEGammaConf import DerivationFramework__EGSelectionToolWrapper
from DerivationFrameworkEGamma.DerivationFrameworkEGammaConf import DerivationFramework__EGElectronLikelihoodToolWrapper from DerivationFrameworkEGamma.DerivationFrameworkEGammaConf import DerivationFramework__EGElectronLikelihoodToolWrapper
# decorate electrons with the output of LH very loose # decorate electrons with the output of LH very loose
#ElectronPassLHVeryLoose = DerivationFramework__EGSelectionToolWrapper( name = "ElectronPassLHVeryLoose",
# EGammaSelectionTool = ElectronLHSelectorVeryLoose,
# EGammaFudgeMCTool = "",
# CutType = "",
# StoreGateEntryName = "DFCommonElectronsLHVeryLoose",
# ContainerName = "Electrons")
ElectronPassLHVeryLoose = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHVeryLoose", ElectronPassLHVeryLoose = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHVeryLoose",
EGammaElectronLikelihoodTool = ElectronLHSelectorVeryLoose, EGammaElectronLikelihoodTool = ElectronLHSelectorVeryLoose,
EGammaFudgeMCTool = "", EGammaFudgeMCTool = "",
...@@ -199,12 +194,6 @@ ToolSvc += ElectronPassLHVeryLoose ...@@ -199,12 +194,6 @@ ToolSvc += ElectronPassLHVeryLoose
print(ElectronPassLHVeryLoose) print(ElectronPassLHVeryLoose)
# decorate electrons with the output of LH loose # decorate electrons with the output of LH loose
#ElectronPassLHLoose = DerivationFramework__EGSelectionToolWrapper( name = "ElectronPassLHLoose",
# EGammaSelectionTool = ElectronLHSelectorLoose,
# EGammaFudgeMCTool = "",
# CutType = "",
# StoreGateEntryName = "DFCommonElectronsLHLoose",
# ContainerName = "Electrons")
ElectronPassLHLoose = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHLoose", ElectronPassLHLoose = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHLoose",
EGammaElectronLikelihoodTool = ElectronLHSelectorLoose, EGammaElectronLikelihoodTool = ElectronLHSelectorLoose,
EGammaFudgeMCTool = "", EGammaFudgeMCTool = "",
...@@ -216,12 +205,6 @@ ToolSvc += ElectronPassLHLoose ...@@ -216,12 +205,6 @@ ToolSvc += ElectronPassLHLoose
print(ElectronPassLHLoose) print(ElectronPassLHLoose)
# decorate electrons with the output of LH loose+BL # decorate electrons with the output of LH loose+BL
#ElectronPassLHLooseBL = DerivationFramework__EGSelectionToolWrapper( name = "ElectronPassLHLooseBL",
# EGammaSelectionTool = ElectronLHSelectorLooseBL,
# EGammaFudgeMCTool = "",
# CutType = "",
# StoreGateEntryName = "DFCommonElectronsLHLooseBL",
# ContainerName = "Electrons")
ElectronPassLHLooseBL = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHLooseBL", ElectronPassLHLooseBL = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHLooseBL",
EGammaElectronLikelihoodTool = ElectronLHSelectorLooseBL, EGammaElectronLikelihoodTool = ElectronLHSelectorLooseBL,
EGammaFudgeMCTool = "", EGammaFudgeMCTool = "",
...@@ -233,12 +216,6 @@ ToolSvc += ElectronPassLHLooseBL ...@@ -233,12 +216,6 @@ ToolSvc += ElectronPassLHLooseBL
print (ElectronPassLHLooseBL) print (ElectronPassLHLooseBL)
# decorate electrons with the output of LH medium # decorate electrons with the output of LH medium
#ElectronPassLHMedium = DerivationFramework__EGSelectionToolWrapper( name = "ElectronPassLHMedium",
# EGammaSelectionTool = ElectronLHSelectorMedium,
# EGammaFudgeMCTool = "",
# CutType = "",
# StoreGateEntryName = "DFCommonElectronsLHMedium",
# ContainerName = "Electrons")
ElectronPassLHMedium = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHMedium", ElectronPassLHMedium = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHMedium",
EGammaElectronLikelihoodTool = ElectronLHSelectorMedium, EGammaElectronLikelihoodTool = ElectronLHSelectorMedium,
EGammaFudgeMCTool = "", EGammaFudgeMCTool = "",
...@@ -250,12 +227,6 @@ ToolSvc += ElectronPassLHMedium ...@@ -250,12 +227,6 @@ ToolSvc += ElectronPassLHMedium
print(ElectronPassLHMedium) print(ElectronPassLHMedium)
# decorate electrons with the output of LH tight # decorate electrons with the output of LH tight
#ElectronPassLHTight = DerivationFramework__EGSelectionToolWrapper( name = "ElectronPassLHTight",
# EGammaSelectionTool = ElectronLHSelectorTight,
# EGammaFudgeMCTool = "",
# CutType = "",
# StoreGateEntryName = "DFCommonElectronsLHTight",
# ContainerName = "Electrons")
ElectronPassLHTight = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHTight", ElectronPassLHTight = DerivationFramework__EGElectronLikelihoodToolWrapper( name = "ElectronPassLHTight",
EGammaElectronLikelihoodTool = ElectronLHSelectorTight, EGammaElectronLikelihoodTool = ElectronLHSelectorTight,
EGammaFudgeMCTool = "", EGammaFudgeMCTool = "",
...@@ -395,7 +366,7 @@ ElectronAmbiguity = DF_EGEAT(name = "ElectronAdditionnalAmbiguity" ...@@ -395,7 +366,7 @@ ElectronAmbiguity = DF_EGEAT(name = "ElectronAdditionnalAmbiguity"
ToolSvc += ElectronAmbiguity ToolSvc += ElectronAmbiguity
# #
# Commented ForwardElectronPassLHLoose, ForwardElectronPassLHMedium, ForwardElectronPassLHTight, ElectronPassECIDS tools due to they are not available in R22 # Commented ForwardElectronPassLHLoose, ForwardElectronPassLHMedium, ForwardElectronPassLHTight, ElectronPassECIDS tools due to they are not available in R22 yet
# #
# list of all the decorators so far # list of all the decorators so far
EGAugmentationTools = [DFCommonPhotonsDirection, EGAugmentationTools = [DFCommonPhotonsDirection,
...@@ -416,13 +387,12 @@ if rec.doTruth(): ...@@ -416,13 +387,12 @@ if rec.doTruth():
# Decorate Electron with bkg electron type/origin # Decorate Electron with bkg electron type/origin
from MCTruthClassifier.MCTruthClassifierBase import MCTruthClassifier as BkgElectronMCTruthClassifier from MCTruthClassifier.MCTruthClassifierBase import MCTruthClassifier as BkgElectronMCTruthClassifier
BkgElectronMCTruthClassifier.barcodeG4Shift=(DerivationFrameworkSimBarcodeOffset+1) BkgElectronMCTruthClassifier.barcodeG4Shift=(DerivationFrameworkSimBarcodeOffset+1)
BkgElectronMCTruthClassifier.ParticleCaloExtensionTool=""
from DerivationFrameworkEGamma.DerivationFrameworkEGammaConf import DerivationFramework__BkgElectronClassification from DerivationFrameworkEGamma.DerivationFrameworkEGammaConf import DerivationFramework__BkgElectronClassification
BkgElectronClassificationTool = DerivationFramework__BkgElectronClassification (name = "BkgElectronClassificationTool", BkgElectronClassificationTool = DerivationFramework__BkgElectronClassification (name = "BkgElectronClassificationTool",
MCTruthClassifierTool = BkgElectronMCTruthClassifier, MCTruthClassifierTool = BkgElectronMCTruthClassifier,
barcodeCut=DerivationFrameworkSimBarcodeOffset) barcodeCut=DerivationFrameworkSimBarcodeOffset)
ToolSvc += BkgElectronClassificationTool ToolSvc += BkgElectronClassificationTool
print(BkgElectronClassificationTool) print(BkgElectronClassificationTool)
EGAugmentationTools.append(BkgElectronClassificationTool) EGAugmentationTools.append(BkgElectronClassificationTool)
...@@ -458,9 +428,10 @@ if rec.doTruth(): ...@@ -458,9 +428,10 @@ if rec.doTruth():
from JetRec.JetRecStandard import jtm from JetRec.JetRecStandard import jtm
tc=configEventDensityTool("EDTruthCentralTool", jtm.truthget.Label, tc=configEventDensityTool("EDTruthCentralTool", jtm.truthget.Label,
0.5, 0.5,
AbsRapidityMin = 0.0,
AbsRapidityMax = 1.5, AbsRapidityMax = 1.5,
OutputContainer = "TruthIsoCentralEventShape", OutputContainer = "TruthIsoCentralEventShape",
OutputLevel = 3, OutputLevel = 3
) )
ToolSvc += tc ToolSvc += tc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment