jFEXDriverJobOptions.py 3.34 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from AthenaCommon.GlobalFlags  import globalflags
import AthenaPoolCnvSvc.ReadAthenaPool

if type(theApp).__name__ == "fakeAppMgr": theApp.initialize() #this line cuts off pathena when joboption parsing ... since all outputs now declared

include( "LArDetDescr/LArDetDescr_joboptions.py" )
include( "RegistrationServices/IOVRegistrationSvc_jobOptions.py" )

IOVBeginRun   = IOVRunNumberMin
IOVEndRun     = IOVRunNumberMax
IOVBeginLB = IOVLBNumberMin
IOVEndLB   = IOVLBNumberMax

import RegistrationServices.IOVRegistrationSvc
regSvc = svcMgr.IOVRegistrationSvc


#svcMgr.IOVDbSvc.DBInstance=""

if "GlobalTag" not in dir():
    GlobalTag     = 'OFLCOND-CSC-00-01-00' #Sadly event his doesn't work for the 14 TeV jetjet sample 'OFLCOND-MC15c-SDR-14-02' #This works for 13 TeV 'OFLCOND-CSC-00-01-00'    #No idea what this is: COMCOND-BLKPST-004-05'

#svcMgr.IOVDbSvc.GlobalTag = GlobalTag

svcMgr.IOVDbSvc.GlobalTag=globalflags.ConditionsTag()

# configure detector description from metadata in input file
from RecExConfig import AutoConfiguration
AutoConfiguration.ConfigureSimulationOrRealData()
AutoConfiguration.ConfigureGeo()
AutoConfiguration.ConfigureConditionsTag()
from AthenaCommon.DetFlags import DetFlags
DetFlags.detdescr.all_setOff()
DetFlags.detdescr.Calo_setOn()
include("RecExCond/AllDet_detDescr.py")

37
# menu with default configuration for testing
38
from AthenaConfiguration.ComponentAccumulator import CAtoGlobalWrapper
39
from AthenaConfiguration.AllConfigFlags import ConfigFlags
40
41
from TrigConfigSvc.TrigConfigSvcCfg import L1ConfigSvcCfg
CAtoGlobalWrapper(L1ConfigSvcCfg,ConfigFlags)
42

43
44
svcMgr += CfgMgr.THistSvc()
svcMgr.THistSvc.Output += ["ANALYSIS DATAFILE='myfile_jfex.root' OPT='RECREATE'"]
45

46

47
from OutputStreamAthenaPool.MultipleStreamManager import MSMgr
48
49
StreamAOD_Augmented = MSMgr.NewPoolRootStream( "StreamAOD", "xAOD.jFEX.output.root" )
StreamAOD = StreamAOD_Augmented.GetEventStream()
50
51

# the jFex containers
52
53
54
55
StreamAOD.ItemList+=["xAOD::jFexSRJetRoIContainer#*"]
StreamAOD.ItemList+=["xAOD::jFexSRJetRoIAuxContainer#*"]
StreamAOD.ItemList+=["xAOD::jFexLRJetRoIContainer#*"]
StreamAOD.ItemList+=["xAOD::jFexLRJetRoIAuxContainer#*"]
56
StreamAOD.ItemList+=["xAOD::TriggerTowerContainer#*"]
57
58
59
60
61
62
63
StreamAOD.ItemList+=["xAOD::jFexTauRoIContainer#*"]
StreamAOD.ItemList+=["xAOD::jFexTauRoIAuxContainer#*"]
StreamAOD.ItemList+=["xAOD::jFexSumETRoIContainer#*"]
StreamAOD.ItemList+=["xAOD::jFexSumETRoIAuxContainer#*"]
StreamAOD.ItemList+=["xAOD::jFexMETRoIContainer#*"]
StreamAOD.ItemList+=["xAOD::jFexMETRoIAuxContainer#*"]

64
#Physics Objects
65
66
67
68
StreamAOD.ItemList+=["xAOD::JetContainer#Anti*"]
StreamAOD.ItemList+=["xAOD::JetAuxContainer#Anti*"]
StreamAOD.ItemList+=["xAOD::JetRoIContainer#*"]
StreamAOD.ItemList+=["xAOD::JetRoIAuxContainer#*"]
69
70
71
72
StreamAOD.ItemList+=["xAOD::ElectronContainer#Electrons"]
StreamAOD.ItemList+=["xAOD::ElectronAuxContainer#ElectronsAux."]
StreamAOD.ItemList+=["xAOD::TauJetContainer#TauJets"]
StreamAOD.ItemList+=["xAOD::TauJetAuxContainer#TauJetsAux.-VertexedClusters."]
73

74
75
76
77
78
79
80







81
82
83
84
#######################################################
log.info("==========================================================")
log.info("Scheduling jFEXDriver")
athAlgSeq += CfgMgr.LVL1__jFEXDriver('MyjFEXDriver')
85
athAlgSeq += CfgMgr.LVL1__jFEXNtupleWriter('MyjFEXNtupleWriter')
86
87
log.info("==========================================================")
#######################################################