NtupleWriter14/share/AnalysisSkeleton_topOptions.py

00001 # Author: Ketevi A. Assamagan
00002 # BNL, June 12, 2004
00003 
00004 # Event selector
00005 include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
00006 EventSelector = Service( "EventSelector" )
00007 #EventSelector.BackNavigation = True
00008 
00009 # Particle Properties
00010 include( "PartPropSvc/PartPropSvc.py" )
00011 
00012 # the POOL converters
00013 include( "EventAthenaPool/EventAthenaPool_joboptions.py" )
00014 include( "ParticleBuilderOptions/AOD_PoolCnv_jobOptions.py")
00015 include( "ParticleBuilderOptions/McAOD_PoolCnv_jobOptions.py")
00016 include( "ParticleBuilderOptions/ESD_PoolCnv_jobOptions.py" )
00017 
00018 # Dictionary for User Defined classes
00019 include( "UserAnalysisEvent/UserAnalysisEventDict_joboptions.py" )
00020 
00021 # The AOD input file
00022 EventSelector.InputCollections = [ "AOD.pool.root" ]
00023 
00024 # Overlap removal by default - This is analysis dependent
00025 # The user is encouraged to customize the overlap removal as necessary
00026 include ("ParticleBuilderOptions/DefaultOverlapRemoval_jobOptions.py" )
00027 
00028 # The libraries to loaded at run time
00029 theApp.Dlls   += [ "AnalysisTools" ]
00030 theApp.Dlls   += [ "UserAnalysisUtils" ]
00031 theApp.Dlls   += [ "UserAnalysis" ]
00032 
00033 # Athena-Aware NTuple making Tools
00034 CBNTAthenaAware = True
00035 include ("CBNT_Athena/CBNT_AthenaAware_jobOptions.py")
00036 include ("CBNT_Athena/CBNT_EventInfo_jobOptions.py")
00037 
00038 # list of the algorithms to be executed at run time
00039 CBNT_AthenaAware = Algorithm( "CBNT_AthenaAware" )
00040 CBNT_AthenaAware.Members += [ 
00041                                 "AnalysisSkeleton", 
00042                                 "StructuredAAN"
00043                             ]
00044 
00045 ############# The properties of the AnalysisSkeleton Algorithm
00046 AnalysisSkeleton = Algorithm( "AnalysisSkeleton" )
00047 AnalysisSkeleton.ElectronContainer = "UserElectronCollection"
00048 AnalysisSkeleton.MCParticleContainer = "SpclMC"
00049 AnalysisSkeleton.DeltaRMatchCut = 0.2
00050 AnalysisSkeleton.MaxDeltaR = 0.9999
00051 AnalysisSkeleton.ElectronEtCut  = 10.0*GeV
00052 AnalysisSkeleton.ElectronEtaCut = 2.5
00053 AnalysisSkeleton.ElectronCone   = 0.9
00054 AnalysisSkeleton.OutputLevel = INFO
00055 
00056 ############# The properties of the StructuredNTuple Algorithm
00057 StructuredAAN = Algorithm( "StructuredAAN" )
00058 StructuredAAN.ElectronContainer = "ElectronCollection"
00059 StructuredAAN.TrackParticleContainer = "TrackParticleCandidate"
00060 StructuredAAN.ClusterContainerNameBarrelElectron = "LArClusterEM37"
00061 StructuredAAN.ClusterContainerNameEndCapElectron = "LArClusterEM"
00062 StructuredAAN.ClusterContainerNameBarrelPhoton = "LArClusterEMgam35"
00063 StructuredAAN.ClusterContainerNameEndCapPhoton = "LArClusterEMgam"
00064 StructuredAAN.OutputLevel = INFO
00065 StructuredAAN.TTreeBranchBufferSize = 32000
00066 StructuredAAN.TTreeBranchSplitLevel = 0
00067 
00068 ##########################################
00069 # setup TTree registration Service
00070 # save ROOT histograms and Tuple
00071 THistSvc = Service ( "THistSvc" )
00072 THistSvc.Output = ["AANT DATAFILE='AnalysisSkeleton.aan.root' OPT='RECREATE'"]
00073 theApp.TopAlg += [ "AANTupleStream" ]
00074 AANTupleStream = Algorithm( "AANTupleStream" )
00075 AANTupleStream.ExtraRefNames = [ "StreamESD","Stream1" ]
00076 AANTupleStream.OutputName = 'AnalysisSkeleton.aan.root'
00077 AANTupleStream.WriteInputDataHeader = True
00078 AANTupleStream.OutputLevel = WARNING
00079 
00080 # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
00081 MessageSvc = Service( "MessageSvc" )
00082 MessageSvc.OutputLevel = ERROR
00083 
00084 # Number of Events to process
00085 theApp.EvtMax = 500
00086 
00087 ###################### For interactive analysis
00088 #include ("PyAnalysisCore/InitPyAnalysisCore.py")
00089 
00090 ###################### Detail time measurement and auditors
00091 # Use auditors
00092 theApp.AuditAlgorithms=True
00093 theApp.Dlls += [ "GaudiAud" ]
00094 
00095 theAuditorSvc = AuditorSvc()
00096 theAuditorSvc.Auditors  += [ "ChronoAuditor"]
00097 
00098 AthenaPoolCnvSvc = Service("AthenaPoolCnvSvc")
00099 AthenaPoolCnvSvc.UseDetailChronoStat = TRUE
00100 
00101 #StoreGateSvc = Service( "StoreGateSvc" )
00102 #StoreGateSvc.Dump = True 
00103 #MessageSvc.OutputLevel = DEBUG
00104 

Generated on Tue Oct 21 11:50:43 2008 for NtupleAnalysis by  doxygen 1.5.1