ATLAS Offline Software
Loading...
Searching...
No Matches
python.ZdcPhysRecConfig Namespace Reference

Functions

 PhysStreamAdditionalFlagSetting (flags)
 FCalRecCfg (flags)
 ZdcNtupleWithCaloRun3Cfg (flags, outputlevel=3, **kwargs)

Variables

 start_time = time.time()
 flags = initConfigFlags()
 AODFileName
 HISTFileName
 doWriteAOD
 isLED
 isInj
 isCalib
 pn
 config = SetConfigTag(flags)
 decodeHLT
 evaluate
 acc = MainServicesCfg(flags)
 zdcMonitorAcc = ZdcMonitoringConfig(flags)
 withDetails
 status = acc.run()
 end_time = time.time()
str n_events = int(flags.Exec.MaxEvents) if 'flags' in locals() and flags.hasFlag("Exec.MaxEvents") else -1

Function Documentation

◆ FCalRecCfg()

python.ZdcPhysRecConfig.FCalRecCfg ( flags)
Calorimeter and HIGlobal reconstruction config for ZDC-FCal correlations

Definition at line 28 of file ZdcPhysRecConfig.py.

28def FCalRecCfg(flags):
29 """Calorimeter and HIGlobal reconstruction config for ZDC-FCal correlations"""
30
31 acc = ComponentAccumulator()
32
33 from CaloRec.CaloRecoConfig import CaloRecoCfg
34 acc.merge(CaloRecoCfg(flags))
35 from HIGlobal.HIGlobalConfig import HIGlobalRecCfg
36 acc.merge(HIGlobalRecCfg(flags))
37
38 return acc
39
40

◆ PhysStreamAdditionalFlagSetting()

python.ZdcPhysRecConfig.PhysStreamAdditionalFlagSetting ( flags)
additional flag settings in possible scenarios we may need FCal info

Definition at line 13 of file ZdcPhysRecConfig.py.

13def PhysStreamAdditionalFlagSetting(flags):
14 """additional flag settings in possible scenarios we may need FCal info"""
15
16 # turn necessary trigger inputs on if need ZDC triggers (ZdcCalib or UCC stream)
17
18 IsPhysicsStream = "physics_" in flags.Input.TriggerStream or flags.Input.TriggerStream == "express_express"
19
20 if flags.Input.TriggerStream == "calibration_ZDCCalib" or IsPhysicsStream:
21 flags.Trigger.L1.doCTP = True
22
23 if IsPhysicsStream:
24 flags.Trigger.L1.doCaloInputs = True
25
26 flags.Detector.EnableCalo = IsPhysicsStream
27

◆ ZdcNtupleWithCaloRun3Cfg()

python.ZdcPhysRecConfig.ZdcNtupleWithCaloRun3Cfg ( flags,
outputlevel = 3,
** kwargs )
ZDC Ntuple configuration for run3 data potential with Calorimeter-info retrieving & writing
Depends on the flag Detector.EnableCalo to be correctly set
Retrieves and writes calorimeter info in ZdcNTuple if and only if Detector.EnableCalo is true

Definition at line 41 of file ZdcPhysRecConfig.py.

41def ZdcNtupleWithCaloRun3Cfg(flags, outputlevel = 3, **kwargs):
42 """ZDC Ntuple configuration for run3 data potential with Calorimeter-info retrieving & writing
43 Depends on the flag Detector.EnableCalo to be correctly set
44 Retrieves and writes calorimeter info in ZdcNTuple if and only if Detector.EnableCalo is true"""
45
46 acc = ComponentAccumulator()
47 ZdcNtupleAcc = ZdcNtupleCfg(flags,
48 useGRL = False,
49 zdcOnly = not flags.Detector.EnableCalo,
50 lhcf2022 = False,
51 lhcf2022zdc = False,
52 lhcf2022afp = False,
53 isMC = flags.Input.isMC,
54 enableTrigger = not flags.Input.isMC,
55 enableOutputSamples = True,
56 enableOutputTree = True,
57 writeOnlyTriggers = False,
58 enableRPD = flags.Detector.EnableZDC_RPD,
59 enableRPDAmp = flags.Detector.EnableZDC_RPD,
60 enableCentroid = flags.Detector.EnableZDC_RPD,
61 enableCalo = flags.Detector.EnableCalo,
62 reprocZdc = False,
63 **kwargs)
64 ZdcNtupleAcc.getEventAlgo('ZdcNtuple').OutputLevel = outputlevel # turn on DEBUG messages
65 acc.merge(ZdcNtupleAcc)
66
67 acc.addService(CompFactory.THistSvc(Output = ["ANALYSIS DATAFILE='NTUP.root' OPT='RECREATE'"]))
68 return acc
69
70

Variable Documentation

◆ acc

python.ZdcPhysRecConfig.acc = MainServicesCfg(flags)

Definition at line 101 of file ZdcPhysRecConfig.py.

◆ AODFileName

python.ZdcPhysRecConfig.AODFileName

Definition at line 86 of file ZdcPhysRecConfig.py.

◆ config

python.ZdcPhysRecConfig.config = SetConfigTag(flags)

Definition at line 93 of file ZdcPhysRecConfig.py.

◆ decodeHLT

python.ZdcPhysRecConfig.decodeHLT

Definition at line 96 of file ZdcPhysRecConfig.py.

◆ doWriteAOD

python.ZdcPhysRecConfig.doWriteAOD

Definition at line 88 of file ZdcPhysRecConfig.py.

◆ end_time

python.ZdcPhysRecConfig.end_time = time.time()

Definition at line 157 of file ZdcPhysRecConfig.py.

◆ evaluate

python.ZdcPhysRecConfig.evaluate

Definition at line 99 of file ZdcPhysRecConfig.py.

◆ flags

python.ZdcPhysRecConfig.flags = initConfigFlags()

Definition at line 80 of file ZdcPhysRecConfig.py.

◆ HISTFileName

python.ZdcPhysRecConfig.HISTFileName

Definition at line 87 of file ZdcPhysRecConfig.py.

◆ isCalib

python.ZdcPhysRecConfig.isCalib

Definition at line 90 of file ZdcPhysRecConfig.py.

◆ isInj

python.ZdcPhysRecConfig.isInj

Definition at line 90 of file ZdcPhysRecConfig.py.

◆ isLED

python.ZdcPhysRecConfig.isLED

Definition at line 90 of file ZdcPhysRecConfig.py.

◆ n_events

str python.ZdcPhysRecConfig.n_events = int(flags.Exec.MaxEvents) if 'flags' in locals() and flags.hasFlag("Exec.MaxEvents") else -1

Definition at line 161 of file ZdcPhysRecConfig.py.

◆ pn

python.ZdcPhysRecConfig.pn

Definition at line 90 of file ZdcPhysRecConfig.py.

◆ start_time

python.ZdcPhysRecConfig.start_time = time.time()

Definition at line 74 of file ZdcPhysRecConfig.py.

◆ status

python.ZdcPhysRecConfig.status = acc.run()

Definition at line 152 of file ZdcPhysRecConfig.py.

◆ withDetails

python.ZdcPhysRecConfig.withDetails

Definition at line 147 of file ZdcPhysRecConfig.py.

◆ zdcMonitorAcc

python.ZdcPhysRecConfig.zdcMonitorAcc = ZdcMonitoringConfig(flags)

Definition at line 132 of file ZdcPhysRecConfig.py.