Ejemplo n.º 1
0
MissingETEventSelector.minInvMass = 71. * GeV
MissingETEventSelector.maxInvMass = 111. * GeV
MissingETEventSelector.SelectionType = "hasZboson_ee"

##########################################
# setup TTree registration Service
# save ROOT histograms and Tuple
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output = [
    "AANT DATAFILE='METPerformance.root' OPT='RECREATE'"
]
from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
topSequence += AANTupleStream()
AANTupleStream = AANTupleStream()
AANTupleStream.OutputName = 'METPerformance.root'
AANTupleStream.WriteInputDataHeader = True
AANTupleStream.OutputLevel = WARNING

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

# Number of Events to process
theApp.EvtMax = 1000000

AthenaEventLoopMgr = Service("AthenaEventLoopMgr")
try:
    AthenaEventLoopMgr.EventPrintoutInterval = 100
except Exception:
    print 'EventPrintoutInterval exception, defaults to 1'
Ejemplo n.º 2
0
job = AlgSequence()
job += tileInfoDump

#=== save ROOT histograms and Tuple for bad cells
if hasattr(tileInfoDump, "PrintBadCells"):
    if tileInfoDump.PrintBadCells:
        from GaudiSvc.GaudiSvcConf import THistSvc
        svcMgr += THistSvc()
        svcMgr.THistSvc.Output = [
            "AANT DATAFILE='tileBadCells.root' OPT='RECREATE'"
        ]
        from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
        job += AANTupleStream()
        AANTupleStream = AANTupleStream()
        AANTupleStream.ExtraRefNames = ["StreamESD", "Stream1"]
        AANTupleStream.OutputName = 'tileBadCells.root'
        AANTupleStream.WriteInputDataHeader = True
        AANTupleStream.OutputLevel = WARNING

#============================================================
#=== MessageSvc setup
#============================================================
MessageSvc = Service("MessageSvc")
MessageSvc.OutputLevel = INFO
MessageSvc.defaultLimit = 9999999

#============================================================
#=== Dummy event loop setup
#============================================================
svcMgr.EventSelector.RunNumber = RUN
svcMgr.EventSelector.EventsPerRun = 5
Ejemplo n.º 3
0
MissingETPerformance.doZMuMuTool = False
MissingETPerformance.doZeeTool = False
MissingETPerformance.doPileUpTool = False
MissingETPerformance.doMissingETCompositionTool = False

##########################################
# setup TTree registration Service
# save ROOT histograms and Tuple
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
aantStr = "AANT DATAFILE='%s' OPT='RECREATE'" % (MetPerfMonFile)
ServiceMgr.THistSvc.Output = [aantStr]
from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
topSequence += AANTupleStream()
AANTupleStream = AANTupleStream()
AANTupleStream.OutputName = MetPerfMonFile
AANTupleStream.WriteInputDataHeader = True
AANTupleStream.OutputLevel = WARNING

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

# Number of Events to process
theApp.EvtMax = evtmax

AthenaEventLoopMgr = Service("AthenaEventLoopMgr")
try:
    AthenaEventLoopMgr.EventPrintoutInterval = 100
except Exception:
    printfunc('EventPrintoutInterval exception, defaults to 1')
Ejemplo n.º 4
0
MissingETPerformance.doContainerComparatorTool = True
MissingETPerformance.FilterOnTrigger = False
MissingETPerformance.doBasicPlotsTool = False
MissingETPerformance.doResolutionTool = False
MissingETPerformance.doLinearityTool = False
MissingETPerformance.doEtaRingsTool = False
MissingETPerformance.doTrigMissingETTool = False
MissingETPerformance.doTrigVsOfflineMissingETTool = False
MissingETPerformance.doFakeMissingETTool = False
MissingETPerformance.doMuonTool = False

##########################################
# setup TTree registration Service
# save ROOT histograms and Tuple
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output = [
    "AANT DATAFILE='METPerformance.compareRELS.root' OPT='RECREATE'"
]
from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
topSequence += AANTupleStream()
AANTupleStream = AANTupleStream()
AANTupleStream.OutputName = 'METPerformance.compareRELS.root'
AANTupleStream.WriteInputDataHeader = True

AthenaEventLoopMgr = Service("AthenaEventLoopMgr")
try:
    AthenaEventLoopMgr.EventPrintoutInterval = 1
except Exception:
    printfunc('EventPrintoutInterval exception, defaults to 1')
Ejemplo n.º 5
0
include("AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py")

# The input file already specified near the top of this file
ServiceMgr.EventSelector.InputCollections = jp.AthenaCommonFlags.FilesInput()

from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()

# list of the algorithms to be executed at run time
from LongLivedParticleDPDMaker.LongLivedParticleDPDMakerConf import RPVLLTestRates
topSequence += RPVLLTestRates()

print(topSequence.RPVLLTestRates)

from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output = ["AANT DATAFILE='testRates.root' OPT='RECREATE'"]
from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
topSequence += AANTupleStream()
AANTupleStream = AANTupleStream()
AANTupleStream.ExtraRefNames = ["StreamESD", "Stream1"]
AANTupleStream.OutputName = 'testRates.root'
AANTupleStream.WriteInputDataHeader = True
AANTupleStream.OutputLevel = WARNING

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

# Number of Events to process
theApp.EvtMax = -1
Ejemplo n.º 6
0
svcMgr.THistSvc.Output = [
    "AANT DATAFILE='ntuple2.root' TYPE='ROOT' OPT='RECREATE'"
]

NtupleName = "ntuple1.root"
from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
aa = AANTupleStream()
aa.ExtraRefNames = ["StreamESD", "StreamRDO"]
aa.OutputName = NtupleName
aa.ExistDataHeader = False
aa.WriteInputDataHeader = True
topSequence += aa

from CBNT_Athena.CBNT_AthenaAwareCfg import CBNT_AthenaAware
CBNT_Athena = CBNT_AthenaAware()
topSequence += CBNT_Athena
include("CBNT_Athena/CBNT_EventInfo_jobOptions.py")

from CaloIdentifier import SUBCALO
from CaloRec.CaloRecConf import CBNTAA_CaloCell

theApp.Dlls += ["CaloRec"]
#CBNT_Athena.Members  += [ "CBNT_CaloCell/CBNT_RoILArCaloCell" ]
CBNT_RoILArCaloCell = CBNTAA_CaloCell("CBNT_RoILArCaloCell")
CBNT_Athena += CBNT_RoILArCaloCell
CBNT_RoILArCaloCell.CaloNums = [SUBCALO.LAREM, SUBCALO.LARHEC, SUBCALO.LARFCAL]
#CBNT_RoILArCaloCell.NtupleLocID="/FILE1/CALO/168";
CBNT_RoILArCaloCell.CellsName = "HLT_TrigT2CaloEgammaCells"
CBNT_RoILArCaloCell.MaxNCells = 10000
CBNT_RoILArCaloCell.Suffix = "LRoI"
CBNT_RoILArCaloCell.SaveDetInfo = True
## Done with trigger setup

##########################################
# setup TTree registration Service
# save ROOT histograms and Tuple
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output = [
    "AANT DATAFILE='AnalysisSkeleton.aan.root' OPT='RECREATE'"
]
from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
topSequence += AANTupleStream()
AANTupleStream = AANTupleStream()
AANTupleStream.ExtraRefNames = ["StreamESD", "Stream1"]
AANTupleStream.OutputName = 'AnalysisSkeleton.aan.root'
AANTupleStream.WriteInputDataHeader = True
AANTupleStream.OutputLevel = WARNING

###################### For interactive analysis
#include ("PyAnalysisCore/InitPyAnalysisCore.py")

from GaudiSvc.GaudiSvcConf import AuditorSvc
ServiceMgr.AuditorSvc.Auditors += ["ChronoAuditor"]

AthenaPoolCnvSvc = Service("AthenaPoolCnvSvc")
AthenaPoolCnvSvc.UseDetailChronoStat = TRUE

#### test MC dump ###

#from TruthExamples.TruthExamplesConf import DumpMC
# Author: Karsten Koeneke
# CERN, February 2009

#============================= This algorithm =============================
from D2PDMaker.D2PDMakerConf import CheckD2PD
topSequence += CheckD2PD(
    "MyCheckD2PD",
    OutputLevel=DEBUG,
    #CompositeParticleContainer3 = "MyLooseZBosonOffShellCollection",
    #CompositeParticleContainer2 = "MyLooseZBosonCollection",
    CompositeParticleContainer1="MyZeeLooseZeeBosonCollection")
#==========================================================================

##########################################
# setup TTree registration Service
# save ROOT histograms and Tuple
rootFileName = 'checkD2PD.root'
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output = [
    "AANT DATAFILE='" + rootFileName + "' OPT='RECREATE'"
]
#from AnalysisTools.AnalysisToolsConf import AANTupleStream ## deprecated?
from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
topSequence += AANTupleStream()
AANTupleStream = AANTupleStream()
AANTupleStream.ExtraRefNames = ["StreamDPD", "Stream1"]
AANTupleStream.OutputName = rootFileName
AANTupleStream.WriteInputDataHeader = True
AANTupleStream.OutputLevel = WARNING
Ejemplo n.º 9
0
   from MissingETPerformace.METRefGetter import METRefGetter
   METRefGetter()

   aanName="aant.default.root"
   ServiceMgr.THistSvc.Output = [ "AANT DATAFILE='aant.default.root' OPT='RECREATE'" ]

#########################################
# Sum up all different MET RefFinal terms
from MissingETPerformance.METGetterAOD_Neutrinofication import METGetterAOD
METGetterAOD()

################
# Ntuple Service
from AnalysisTools.AthAnalysisToolsConf import AANTupleStream
topSequence.ZeeSequence += AANTupleStream()

AANTupleStream = AANTupleStream()
AANTupleStream.OutputName = aanName
AANTupleStream.WriteInputDataHeader = True
AANTupleStream.OutputLevel = WARNING

##########################
# Default MissingET ntuple
from MissingET.MissingETConf import CBNTAA_MissingET
topSequence.ZeeSequence += CBNTAA_MissingET()

###################################
# Neutrinofication MissingET ntuple
include ( "MissingETPerformance/CBNTAA_MissingET_Neutrinofication_jobOptions.py" )
topSequence.ZeeSequence.CBNTAA_MissingET_Neutrinofication.OutputLevel=WARNING