Commit 955c38dc authored by edrossi's avatar edrossi
Browse files

Updated DAOD_IDNCB steering

parent a712a6f7
......@@ -3,6 +3,16 @@
#################
## Load common flags
from AthenaCommon.JobProperties import jobproperties as athCommonFlags
from DerivationFrameworkCore.DerivationFrameworkMaster import *
#from DerivationFrameworkJetEtMiss.JetCommon import *
#from DerivationFrameworkJetEtMiss.METCommon import *
#from DerivationFrameworkEGamma.EGammaCommon import *
#from DerivationFrameworkEGamma.ElectronsCPDetailedContent import *
#from DerivationFrameworkMuons.MuonsCommon import *
#from DerivationFrameworkCore.WeightMetadata import *
#from DerivationFrameworkFlavourTag.FlavourTagCommon import *
#import DerivationFrameworkJetEtMiss.ExtendedJetCommon
# Select active sub-systems
dumpPixInfo = True
......@@ -213,7 +223,7 @@ if dumpLArCollisionTime:
from RecExConfig.ObjKeyStore import cfgKeyStore
# We can only do this if we have the cell container.
if cfgKeyStore.isInInput ('CaloCellContainer', 'AllCalo'):
print 'qui ######'
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__LArCollisionTimeDecorator
lArCollisionTimeDecorator = DerivationFramework__LArCollisionTimeDecorator (name ='NCBlArCollisionTimeDecorator',
ContainerName = "EventInfo",
......@@ -227,6 +237,8 @@ if dumpLArCollisionTime:
print lArCollisionTimeDecorator.properties()
#====================================================================
# Skimming Tools
#====================================================================
......@@ -238,6 +250,7 @@ skimmingTools = []
thinningTools = []
# TrackParticles directly
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
IDNCBThinningTool = DerivationFramework__TrackParticleThinning(name = "IDNCBThinningTool",
......@@ -249,6 +262,18 @@ ToolSvc += IDNCBThinningTool
thinningTools.append(IDNCBThinningTool)
from DerivationFrameworkCalo.DerivationFrameworkCaloConf import DerivationFramework__JetCaloClusterThinning
IDNCBThinningTool_jet = DerivationFramework__JetCaloClusterThinning( name = "IDNCBThinningTool_jet",
ThinningService = "IDNCBThinningSvc",
SGKey = "AntiKt4EMTopoJets",
TopoClCollectionSGKey = "CaloCalTopoClusters")
# SelectionString = "AntiKt4EMTopoJets.DFCommonJets_Calib_pt > 10*GeV")
# AdditionalClustersKey = ["EMOriginTopoClusters","CaloCalTopoClusters"])
ToolSvc += IDNCBThinningTool_jet
thinningTools.append(IDNCBThinningTool_jet)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackMeasurementThinning
thin_sct = "SCT_Clusters.bec != 0"
......@@ -269,7 +294,8 @@ IDNCBThinningTool_pix = DerivationFramework__TrackMeasurementThinning( name = "I
ToolSvc += IDNCBThinningTool_pix
thinningTools.append(IDNCBThinningTool_pix)
thin_trt = "(TRT_DriftCircles.bec != -2) && (TRT_DriftCircles.layer > 5)"
thin_trt = "(TRT_DriftCircles.bec != -1) && (TRT_DriftCircles.bec != 1)"
IDNCBThinningTool_trt = DerivationFramework__TrackMeasurementThinning( name = "IDNCBTRTThinningTool",
ThinningService = "IDNCBThinningSvc",
SelectionString = thin_trt,
......@@ -323,6 +349,26 @@ excludedAuxData = "-caloExtension.-cellAssociation.-clusterAssociation.-trackPar
excludedTRTData = "-T0.-TRTboard.-TRTchip.-bitPattern.-driftTimeToTCorrection.-driftTimeHTCorrection.-highThreshold.-strawnumber"
excludedSCTData = "-detectorElementID.-hitsInThirdTimeBin.-rdo_groupsize"
IDNCBExtraVariables = [ "Muons.clusterLink.extrapolatedMuonSpectrometerTrackParticleLink",
"AntiKt4LCTopoJets.JetEMScaleMomentum_pt.JetEMScaleMomentum_eta.JetEMScaleMomentum_phi.JetEMScaleMomentum_m.Jvt.JvtJvfcorr.JvtRpt",
"AntiKt4EMTopoJets.JetEMScaleMomentum_pt.JetEMScaleMomentum_eta.JetEMScaleMomentum_phi.JetEMScaleMomentum_m.Jvt.JvtJvfcorr.JvtRpt",
"CaloCalTopoClusters.e_sampl.calM.calE.calEta.calPhi.CENTER_MAG",
"EMOriginTopoClusters.e_sampl.calM.calE.calEta.calPhi",
"AntiKt4EMTopoJets.HECQuality.sumpttrk.FracSamplingMax.NegativeE.AverageLArQF.FracSamplingMaxIndex.LArQuality.HECFrac.EMFrac.Width.Timing",
"Muons.allAuthors.rpcHitTime.rpcHitIdentifier.rpcHitPositionX.rpcHitPositionY.rpcHitPositionZ",
"Electrons.MediumLH.ptvarcone30.Reta.Rphi.Rhad1.Rhad.weta2.Eratio.f3.wtots1.deltaEta1.deltaPhiRescaled2",
"MuonSegments.x.y.z.px.py.pz.chamberIndex",
"HLT_xAOD__JetContainer_a4tcemsubjesFS.m.EMFrac"]
muonsExtraVariables = "allAuthors.rpcHitTime.rpcHitIdentifier.rpcHitPositionX.rpcHitPositionY.rpcHitPositionZ"
from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
IDNCBSlimmingHelper = SlimmingHelper("IDNCBSlimmingHelper")
IDNCBSlimmingHelper.AppendToDictionary = {'EMOriginTopoClusters': 'xAOD::CaloClusterContainer', 'EMOriginTopoClustersAux': 'xAOD::ShallowAuxContainer'}
IDNCBSlimmingHelper.ExtraVariables = [ "Muons.allAuthors.rpcHitTime.rpcHitIdentifier.rpcHitPositionX.rpcHitPositionY.rpcHitPositionZ" ]
IDNCBSlimmingHelper.AppendContentToStream(IDNCBStream)
# Add generic event information
IDNCBStream.AddItem("xAOD::EventInfo#*")
IDNCBStream.AddItem("xAOD::EventAuxInfo#*")
......@@ -330,10 +376,57 @@ IDNCBStream.AddItem("xAOD::EventAuxInfo#*")
#SKC Add jets!
IDNCBStream.AddItem("xAOD::JetContainer#AntiKt4EMTopoJets")
IDNCBStream.AddItem("xAOD::JetAuxContainer#AntiKt4EMTopoJetsAux.")
IDNCBStream.AddItem("xAOD::JetContainer#AntiKt4LCTopoJets")
IDNCBStream.AddItem("xAOD::JetAuxContainer#AntiKt4LCTopoJetsAux.")
#IDNCBStream.AddItem("xAOD::JetContainer#AntiKt4LCTopoJets")
#IDNCBStream.AddItem("xAOD::JetAuxContainer#AntiKt4LCTopoJetsAux.")
IDNCBStream.AddItem("xAOD::JetElementContainer#JetElements")
IDNCBStream.AddItem("xAOD::JetElementContainer#JetElementsOverlap")
#IDNCBStream.AddItem("xAOD::EventShapeAuxInfo#Kt4LCEventShapeAux.")
IDNCBStream.AddItem("xAOD::EventShape#Kt4EMTopoOriginEventShape")
IDNCBStream.AddItem("xAOD::EventShapeAuxInfo#Kt4EMTopoOriginEventShapeAux.")
IDNCBStream.AddItem("xAOD::EventShape#Kt4EMTopoEventShape")
IDNCBStream.AddItem("xAOD::EventShapeAuxInfo#Kt4EMTopoEventShapeAux.")
IDNCBStream.AddItem("xAOD::CaloClusterContainer#EMOriginTopoClusters")
IDNCBStream.AddItem("xAOD::ShallowAuxContainer#EMOriginTopoClustersAux.")
#IDNCBStream.AddItem("xAOD::EventShape#Kt4LCEventShape")
IDNCBStream.AddItem("xAOD::EventShapeInfo#TopoCluster")
IDNCBStream.AddItem("xAOD::EventShapeAuxInfo#TopoClusterAux.")
IDNCBStream.AddItem("xAOD::JetTrigAuxContainer#HLT_xAOD__JetContainer_SplitJetAux.")
IDNCBStream.AddItem("xAOD::JetTrigAuxContainer#HLT_xAOD__JetContainer_a4tcemjesPSAux.")
#IDNCBStream.AddItem("xAOD::JetTrigAuxContainer#HLT_xAOD__TrackParticleContainer_InDetTrigTrackingxAODCnv_Tau_IDTrigAux.")
#IDNCBStream.AddItem("xAOD::JetTrigAuxContainer#HLT_xAOD__TrackParticleContainer_InDetTrigTrackingxAODCnv_Muon_IDTrigAux.")
#IDNCBStream.AddItem("xAOD::JetTrigAuxContainer#HLT_xAOD__TrigCompositeContainer_MuonRoIClusterAux.")
IDNCBStream.AddItem("xAOD::JetContainer#HLT_xAOD__JetContainer_a4tcemjesPS")
#IDNCBStream.AddItem("xAOD::JetContainer#HLT_xAOD__TrackParticleContainer_InDetTrigTrackingxAODCnv_Tau_IDTrig")
#IDNCBStream.AddItem("xAOD::JetContainer#HLT_xAOD__TrackParticleContainer_InDetTrigTrackingxAODCnv_Muon_IDTrig")
#IDNCBStream.AddItem("xAOD::JetContainer#HLT_xAOD__TrigCompositeContainer_MuonRoICluster")
IDNCBStream.AddItem("xAOD::JetContainer#HLT_xAOD__JetContainer_SplitJet")
#IDNCBStream.AddItem("CaloClusterCellLinkContainer#CaloCalTopoClusters_links")
#IDNCBStream.AddItem("CaloClusterCellLinkContainer#InDetTrackParticlesAssociatedClusters_links")
#IDNCBStream.AddItem("CaloClusterCellLinkContainer#LArClusterEM7_11Nocorr_links")
#IDNCBStream.AddItem("CaloClusterCellLinkContainer#LArClusterEM_links")
#IDNCBStream.AddItem("CaloClusterCellLinkContainer#MuonClusterCollection_links")
#IDNCBStream.AddItem("CaloClusterCellLinkContainer#egammaClusters_links")
#IDNCBStream.AddItem("CaloClusterCellLinkContainer#egammaTopoSeededClusters_links")
IDNCBStream.AddItem("xAOD::CaloClusterContainer#CaloCalTopoClusters")
IDNCBStream.AddItem("xAOD::CaloClusterAuxContainer#CaloCalTopoClustersAux.")
IDNCBStream.AddItem("xAOD::CaloClusterAuxContainer#EMOriginTopoClustersAux.")
IDNCBStream.AddItem("xAOD::CaloClusterContainer#EMOriginTopoClusters")
#IDNCBStream.AddItem("xAOD::ShallowAuxContainer#EMOriginTopoClustersAux.")
#IDNCBStream.AddItem("TileCellContainer#MBTSContainer")
#IDNCBStream.AddItem("CaloCellContainer#AllCalo")
IDNCBStream.AddItem("xAOD::MuonSegmentContainer#MuonSegments")
IDNCBStream.AddItem("xAOD::MuonSegmentAuxContainer#MuonSegmentsAux.")
......@@ -347,14 +440,30 @@ IDNCBStream.AddItem("xAOD::TrackMeasurementValidationAuxContainer#*")
IDNCBStream.AddItem("xAOD::VertexContainer#PrimaryVertices")
IDNCBStream.AddItem("xAOD::VertexAuxContainer#PrimaryVerticesAux.-vxTrackAtVertex")
# Add info about electrons and muons (are small containers)
IDNCBStream.AddItem("xAOD::MuonContainer#Muons")
IDNCBStream.AddItem("xAOD::MuonAuxContainer#MuonsAux.")
IDNCBStream.AddItem("xAOD::ElectronContainer#Electrons")
IDNCBStream.AddItem("xAOD::ElectronAuxContainer#ElectronsAux.")
IDNCBStream.AddItem("xAOD::TrackParticleContainer#GSFTrackParticles")
IDNCBStream.AddItem("xAOD::TrackParticleAuxContainer#GSFTrackParticlesAux."+excludedAuxData)
IDNCBStream.AddItem("xAOD::TrackParticleContainer#CombinedMuonTracks")
IDNCBStream.AddItem("xAOD::TrackParticleContainer#CombinedMuonTrackParticles")
IDNCBStream.AddItem("xAOD::TrackParticleContainer#ExtrapolatedMuonTracks")
IDNCBStream.AddItem("xAOD::TrackParticleContainer#ExtrapolatedMuonTrackParticles")
IDNCBStream.AddItem("xAOD::TrackParticleContainer#MSOnlyExtrapolatedMuonTrackParticles")
IDNCBStream.AddItem("xAOD::TrackParticleContainer#MuonSpectrometerTrackParticles")
IDNCBStream.AddItem("xAOD::TrackParticleAuxContainer#CombinedMuonTracksAux.")
IDNCBStream.AddItem("xAOD::TrackParticleAuxContainer#CombinedMuonTrackParticlesAux.")
IDNCBStream.AddItem("xAOD::TrackParticleAuxContainer#ExtrapolatedMuonTracksAux.")
IDNCBStream.AddItem("xAOD::TrackParticleAuxContainer#ExtrapolatedMuonTrackParticlesAux.")
IDNCBStream.AddItem("xAOD::TrackParticleAuxContainer#MSOnlyExtrapolatedMuonTrackParticlesAux.")
IDNCBStream.AddItem("xAOD::TrackParticleAuxContainer#MuonSpectrometerTrackParticlesAux.")
# Add truth-related information
if dumpTruthInfo:
IDNCBStream.AddItem("xAOD::TruthParticleContainer#*")
......@@ -363,9 +472,22 @@ if dumpTruthInfo:
IDNCBStream.AddItem("xAOD::TruthVertexAuxContainer#*")
IDNCBStream.AddItem("xAOD::TruthEventContainer#*")
IDNCBStream.AddItem("xAOD::TruthEventAuxContainer#*")
IDNCBStream.AddItem("xAOD::TruthParticleContainer#MuonTruthSegments")
IDNCBStream.AddItem("xAOD::TruthParticleContainer#TruthElectrons")
IDNCBStream.AddItem("xAOD::TruthParticleContainer#TruthMuons")
IDNCBStream.AddItem("xAOD::TruthParticleContainer#MuonTruthParticles")
IDNCBStream.AddItem("xAOD::TruthParticleAuxContainer#MuonTruthSegmentsAux.")
IDNCBStream.AddItem("xAOD::TruthParticleAuxContainer#TruthElectronsAux.")
IDNCBStream.AddItem("xAOD::TruthParticleAuxContainer#TruthMuonsAux.")
IDNCBStream.AddItem("xAOD::TruthParticleAuxContainer#MuonTruthParticlesAux.")
#SKC---always include BCM information!
IDNCBStream.AddItem("BCM_RDO_Container#BCM_RDOs")
IDNCBStream.AddItem("BCM_RDO_Container#BCM_CompactDOs")
#PJL - Slim the SCT and TRT data
IDNCBStream.AddItem("xAOD::TrackMeasurementValidationAuxContainer#TRT_DriftCirclesAux."+excludedTRTData)
......
Markdown is supported
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