
#--------------------------------------------------------------
# Input collection
#--------------------------------------------------------------
include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
EventSelector = Service( "EventSelector" )
EventSelector.InputCollections = ["pythia-1.pool.root"]

# Particle Properties
include( "PartPropSvc/PartPropSvc.py" )

# the POOL converters
include( "ParticleBuilderOptions/McAOD_PoolCnv_jobOptions.py")
include( "EventAthenaPool/EventAthenaPool_joboptions.py" )

#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
# Number of events to be processed (default is 10)
theApp.EvtMax = 10

# Athena-Aware NTuple making Tools
include( 'CBNT_Athena/CBNT_AthenaAware_jobOptions.py' )                        
include( 'CBNT_Athena/CBNT_EventInfo_jobOptions.py' )                     
include( 'RecExCommon/CBNT_Truth_jobOptions.py' )
CBNT_Truth.McEventsName="GEN_EVENT"

#---------------------------------------------------------------
# Ntuple service output
#---------------------------------------------------------------
THistSvc = Service ( "THistSvc" )
THistSvc.Output += ["AANT DATAFILE='cbnt.root' OPT='RECREATE'" ]

theApp.Dlls   += [ "AnalysisTools" ]
theApp.TopAlg += [ "AANTupleStream" ]
AANTupleStream = Algorithm( "AANTupleStream" )
AANTupleStream.ExtraRefNames = [ "StreamESD","StreamRDO" ]
AANTupleStream.OutputName = 'cbnt.root'
AANTupleStream.WriteInputDataHeader = True

# ------------------------------------------------------------
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
# ------------------------------------------------------------
MessageSvc = Service( "MessageSvc" )
MessageSvc.OutputLevel = INFO

#---------------------------------------------------------------
