Esempio n. 1
0
#--------------------------------------------------------------
# Define your Signal Selection Algorithm and Add Tools
#--------------------------------------------------------------

#---------------------------------------------------------------
# UserDataSvc
#---------------------------------------------------------------
from AthenaServices.TheUserDataSvc import TheUserDataSvc
svcMgr += TheUserDataSvc("UserDataSvc")
#svcMgr.UserDataSvc.OutputStream=outStream

# #======================================================================================
# # L u m i B l o c k  j o b  o p t i o n s
# #=========================================
# # add LumiBlockMetaDataTool to ToolSvc and configure
# from LumiBlockComps.LumiBlockCompsConf import LumiBlockMetaDataTool
# ToolSvc += LumiBlockMetaDataTool( "LumiBlockMetaDataTool" )
# LumiBlockMetaDataTool.calcLumi = False # False by default
# LumiBlockMetaDataTool.storeXMLFiles = True
# LumiBlockMetaDataTool.applyDQCuts = True
# LumiBlockMetaDataTool.OutputLevel = INFO

# # add ToolSvc.LumiBlockMetaDataTool to MetaDataSvc
# from EventSelectorAthenaPool.EventSelectorAthenaPoolConf import MetaDataSvc
# svcMgr += MetaDataSvc( "MetaDataSvc" )
# svcMgr.MetaDataSvc.MetaDataTools += [ ToolSvc.LumiBlockMetaDataTool ]

# # Configure the goodrunslist selector tool
# from GoodRunsLists.GoodRunsListsConf import *
# ToolSvc += GoodRunsListSelectorTool()
# GoodRunsListSelectorTool.OutputLevel = INFO
excludeList = []
excludeList = list(set(excludeList)) # This removes dublicates from the list
#dpdOutput.addAllItemsFromInputExceptExcludeList( streamName, excludeList )

# Just copy a few containers by hand. This way is rather dangerous because
# if you have a typo in the string or if a container name in the AOD changes,
# you will loose this one in the output container!
ExampleSimpleZmumuStream.AddItem( ['EventInfo#*'] )
ExampleSimpleZmumuStream.AddItem( ["egammaContainer#ElectronAODCollection"] )
ExampleSimpleZmumuStream.AddItem( ["egammaContainer#PhotonAODCollection"] )
ExampleSimpleZmumuStream.AddItem( ["Analysis::MuonContainer#StacoMuonCollection"] )
ExampleSimpleZmumuStream.AddItem( ["Analysis::MuonContainer#MuidMuonCollection"] )
ExampleSimpleZmumuStream.AddItem( ["Analysis::TauJetContainer#TauRecContainer"] )
ExampleSimpleZmumuStream.AddItem( ["JetCollection#AntiKt4TopoEMJets"] )
ExampleSimpleZmumuStream.AddItem( ["JetKeyDescriptor#JetKeyMap"] )
ExampleSimpleZmumuStream.AddItem( ["Rec::TrackParticleContainer#TrackParticleCandidate"] )

# You need to add your newly created output containers from above to the output stream
ExampleSimpleZmumuStream.AddItem( ['CompositeParticleContainer#MyZmumuLooseZmumuBosonCollection'] )
ExampleSimpleZmumuStream.AddItem( ['INav4MomLinkContainer#MyZmumuTightMuonLinkCollection'] )




#====================================================================
# UserDataSvc, only really needed/used when UserData is computed...
#====================================================================
from AthenaServices.TheUserDataSvc import TheUserDataSvc
svcMgr += TheUserDataSvc("UserDataInExampleSimpleZmumuStream")
svcMgr.UserDataInExampleSimpleZmumuStream.OutputStream = ExampleSimpleZmumuStream.Stream
Esempio n. 3
0
ExampleTestStream.AddItem( 'JetKeyDescriptor#JetKeyMap' )
ExampleTestStream.AddItem( 'McEventCollection#GEN_AOD' )
ExampleTestStream.AddItem( 'HLT::HLTResult#HLTResult_L2' )
ExampleTestStream.AddItem( 'HLT::HLTResult#HLTResult_EF' )



### Yellow containers

#Trigger stuff
ExampleTestStream.AddItem( 'egammaContainer#HLT_egamma' )
ExampleTestStream.AddItem( 'TrigMuonEFContainer#HLT_MuonEF' )
ExampleTestStream.AddItem( 'TrigMuonEFInfoContainer#HLT_MuonEFInfo' )
#ExampleTestStream.AddItem( 'TrigMissingETContainer#HLT_TrigEFMissingET' )
#ExampleTestStream.AddItem( 'Analysis::TauJetContainer#HLT_TrigTauRecMerged' )
ExampleTestStream.AddItem( 'egDetailContainer#HLT_egamma_Electrons' )
#'Rerunning' stuff
ExampleTestStream.AddItem( 'CaloClusterContainer#CaloCalTopoCluster')
ExampleTestStream.AddItem( 'Rec::TrackParticleContainer#TrackParticleCandidate')



#====================================================================
# UserDataSvc
#====================================================================
from AthenaServices.TheUserDataSvc import TheUserDataSvc
svcMgr += TheUserDataSvc("UserDataInExampleTestStream")
svcMgr.UserDataInExampleTestStream.OutputStream = ExampleTestStream.Stream


## WenuStream.AddItem( ["TrigEMClusterContainer#HLT_TrigcaloSwCluster"] )
## WenuStream.AddItem( ["Rec::TrackParticleContainer#HLT_InDetTrigParticleCreationCombined_Electron_EFID"] )
## WenuStream.AddItem( ["Rec::TrackParticleContainer#HLT_InDetTrigParticleCreationTRTOnly_Electron_EFID"] )
## WenuStream.AddItem( ["Rec::TrackParticleContainer#HLT_InDetTrigParticleCreationTRTOnly_FullScan_EFID"] )
## WenuStream.AddItem( ["Rec::TrackParticleContainer#HLT_InDetTrigParticleCreation_Electron_EFID"] )
## WenuStream.AddItem( ["Rec::TrackParticleContainer#HLT_InDetTrigParticleCreation_FullScan_EFID"] )
## WenuStream.AddItem( ["Rec::TrackParticleContainer#HLT_InDetTrigParticleCreation_Photon_EFID"] )

## # Add the Monte Carlo Truth
## WenuStream.AddItem( ["TruthParticleContainer#SpclMC"] )
## WenuStream.AddItem( ["McEventCollection#GEN_AOD"] )
## WenuStream.AddItem( ["TrackParticleTruthCollection#TrackParticleTruthCollection"] )


# You need to add your newly created output containers from above to the output stream
WenuStream.AddItem( ['CompositeParticleContainer#*'] )
WenuStream.AddItem( ['INav4MomLinkContainer#*'] )
WenuStream.AddItem( ['INav4MomAssocs#*'] )



#====================================================================
# UserDataSvc, only really needed/used when UserData is computed...
#====================================================================
from AthenaServices.TheUserDataSvc import TheUserDataSvc
svcMgr += TheUserDataSvc("UserDataInWenuStream")
svcMgr.UserDataInWenuStream.OutputStream = WenuStream.Stream

# Final message to log
wenuDPD_msg.info( 'Finished configuration of %s' % D2PDFlags.WriteD2AOD_WENUStream.StreamName )
    ],
    dumpStoreGate=True)

# This stream HAS TO start with "StreamD2AODM_"! If the input was an (D)ESD(M), this should start with "StreamD2ESD(M)_".
# See this twiki for more information: https://twiki.cern.ch/twiki/bin/view/AtlasProtected/DPDNamingConvention
streamName = "StreamD2AOD_MyMatchTest"
fileName = D2PDFlags.OutputDirectoryName() + "MyMatchTestStream.pool.root"
ExampleMatchStream = MSMgr.NewPoolStream(streamName, fileName)

#---------------------------------------------------
# Add the containers to the output stream
#---------------------------------------------------
from PrimaryDPDMaker import PrimaryDPD_OutputDefinitions as dpdOutput
# Take all items from the input, except for the ones listed in the excludeList
# If the excludeList is empty, all containers from the input file (e.g. AOD)
# are copied to the output file.
excludeList = []
excludeList = list(set(excludeList))  # This removes dublicates from the list
dpdOutput.addAllItemsFromInputExceptExcludeList(streamName, excludeList)

# Add the created match containers to the output file
ExampleMatchStream.AddItem(['INav4MomAssocs#ElectronMCTruthClassifierMatch'])
ExampleMatchStream.AddItem(['INav4MomAssocs#ElectronDeltaRTruthMatch'])

#====================================================================
# UserDataSvc, only really needed/used when UserData is computed...
#====================================================================
from AthenaServices.TheUserDataSvc import TheUserDataSvc
svcMgr += TheUserDataSvc("UserDataInExampleMatchStream")
svcMgr.UserDataInExampleMatchStream.OutputStream = ExampleMatchStream.Stream
Esempio n. 6
0
ExampleSimpleWmunuStream.AddItem( ["egammaContainer#ElectronAODCollection"] )
ExampleSimpleWmunuStream.AddItem( ["egammaContainer#PhotonAODCollection"] )
ExampleSimpleWmunuStream.AddItem( ["egDetailContainer#egDetailAOD"] )
ExampleSimpleWmunuStream.AddItem( ["egDetailContainer#egDetailAOD"] )
ExampleSimpleWmunuStream.AddItem( ["egDetailContainer#egDetailContainer"] )
ExampleSimpleWmunuStream.AddItem( ["egDetailContainer#SofteDetailContainer"] )
ExampleSimpleWmunuStream.AddItem( ["Analysis::MuonContainer#StacoMuonCollection"] )
ExampleSimpleWmunuStream.AddItem( ["Analysis::MuonContainer#MuidMuonCollection"] )
ExampleSimpleWmunuStream.AddItem( ["Analysis::TauJetContainer#TauRecContainer"] )
ExampleSimpleWmunuStream.AddItem( ["JetCollection#Cone4TowerJets"] )
ExampleSimpleWmunuStream.AddItem( ["JetCollection#Cone4TopoJets"] )
ExampleSimpleWmunuStream.AddItem( ["JetCollection#Cone7TowerJets"] )
ExampleSimpleWmunuStream.AddItem( ["JetKeyDescriptor#JetKeyMap"] )


# You need to add your newly created output containers from above to the output stream
ExampleSimpleWmunuStream.AddItem( ['CompositeParticleContainer#MyWmunuLooseWmunuBosonCollection'] )
ExampleSimpleWmunuStream.AddItem( ['NeutrinoContainer#MyWmunuNeutrinoCollection'] )
ExampleSimpleWmunuStream.AddItem( ['INav4MomLinkContainer#MyWmunuLooseMuonLinkCollection'] )
ExampleSimpleWmunuStream.AddItem( ['INav4MomLinkContainer#MyWmunuNeutrinoLinkCollection'] )




#====================================================================
# UserDataSvc
#====================================================================
from AthenaServices.TheUserDataSvc import TheUserDataSvc
svcMgr += TheUserDataSvc("UserDataInExampleSimpleWmunuStream")
svcMgr.UserDataInExampleSimpleWmunuStream.OutputStream = ExampleSimpleWmunuStream.Stream