Beispiel #1
0
#==============================================================
#
# End of job options file
#
#==============================================================

###############################################################
#--------------------------------------------------------------
#---   Secondary Write portion  ----- Don't change it !!!
#--------------------------------------------------------------
###############################################################

from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
from OutputStreamAthenaPool.OutputStreamAthenaPoolConf import AthenaPoolOutputStreamTool
from OutputStreamAthenaPool.MultipleStreamManager import MSMgr
StreamDPD = MSMgr.NewStream("StreamDPD", "SkimmedThin.AOD.pool.root")

from DPDUtils.DPDUtilsConf import DPDPhotonFilter
filAlg = DPDPhotonFilter("DPDPhotonFilter")

filAlg.UseTriggerSelection = False
filAlg.TriggerChain = ("EF_g20")
#filAlg.TriggerChain=("EF_2g20,EF_g20")
filAlg.PhotEtCut = 20000
filAlg.PhotEtaCut = 2.5
#filAlg.TriggerSignatures = [ "g20_loose" , "g20i" ,"2g20" ,"g25" ,"g105" , "g10" ]
#filAlg.TrigDecisionTool = "TrigDecisionTool"
topSequence += filAlg
print topSequence

StreamDPD.AcceptAlgs(["DPDPhotonFilter"])
Beispiel #2
0
# Fragment to be used to create the DPD_beamspot file for tier-X processing

streamName = "DESDM_BEAMSPOT"
if not 'outputDPDname' in dir():
    print "Creating outputDPDname: BeamspotDPD.pool.root  (JW)"
    outputDPDname = 'BeamspotDPD.pool.root'

# Create my own stream
from OutputStreamAthenaPool.MultipleStreamManager import MSMgr

#Create a new stream
stream = MSMgr.NewStream(StreamName=streamName, FileName=outputDPDname)

##-----------------------------------------------------------------------------
## Write all IOV meta data containers
## IOV stands for "Interval Of Validity". This means that in one file, there
## can be several blocks of events corresponding to one MetaData block.
##-----------------------------------------------------------------------------
stream.AddMetaDataItem(["IOVMetaDataContainer#*"])
stream.AddMetaDataItem(["LumiBlockCollection#*"])

##-----------------------------------------------------------------------------
## Write event-based containers
##-----------------------------------------------------------------------------
stream.AddItem(['EventInfo#*'])

##-----------------------------------------------------------------------------
## Write Track and Vertex information
##-----------------------------------------------------------------------------

stream.AddItem(["Rec::TrackParticleContainer#TrackParticleCandidate"])
Beispiel #3
0
svcMgr.EventSelector.InputCollections = ["AOD.pool.root"]

from HSG2DPDUtils.HSG2DPDUtilsConf import H4lAddUserData
topSequence += H4lAddUserData("H4lAddUserData")

include("PyAnalysisCore/InitPyAnalysisCore.py")

#--------------------------------------------------------------
#---   Secondary Write portion  ----- Don't change it !!!
#--------------------------------------------------------------

#### Multiple Stream Manager #########################
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
from OutputStreamAthenaPool.OutputStreamAthenaPoolConf import AthenaPoolOutputStreamTool
from OutputStreamAthenaPool.MultipleStreamManager import MSMgr
StreamDPD = MSMgr.NewStream("StreamDPD", "H4lAddUserData.pool.root")

#################Add Lumi##############################
include('LumiBlockComps/CreateLumiBlocks_jobOptions.py')
StreamDPD.AddMetaDataItem("LumiBlockCollection#*")

###### Keep all Collections #########################
StreamDPDForceRead = True
StreamDPD.Stream.TakeItemsFromInput = True
####################################################

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