ATLAS Offline Software
Loading...
Searching...
No Matches
run_gep Namespace Reference

Functions

 getAlg422 (cfg)
 fixMakerTool422 (alg)
 fixSnapshotTool422 (alg)

Variables

 local_log = logging.getLogger('run_gep')
 info = local_log.info
 error = local_log.error
 p = argparse.ArgumentParser()
 metavar
 default
 help
 action
 type
 args = p.parse_args()
 clusterAlgNames = args.clusterAlgs.split(',')
 jetAlgNames = args.jetAlgs.split(',')
 enable_topo_tower = args.enableTopoTower
 enable_tc_tower = args.enableTCTower
 enable_cell_tower = args.enableCellTower
 cellCollectionName = args.cellCollection
 flags = initConfigFlags()
tuple ifile
 Files
 AtlasVersion
 AODFileName
 isOnline
 MaxEvents
 NumThreads
 NumConcurrentEvents
 ShowDataDeps
 CheckDependencies
 ShowDataFlow
 EDMVersion
 doLVL1
 enableL1CaloPhase1
 toggle_geometry
 acc = MainServicesCfg(flags)
list FexEDMList
 calo_acc420 = CaloTopoClusterCfg(flags)
 doLCCalib = flags.Calo.TopoCluster.doTopoClusterLocalCalib
str clustersname = 'CaloCalTopoClusters422' if doLCCalib else 'CaloTopoClusters422'
 calo_acc422
 alg = getAlg422(calo_acc422)
 gepAlgs_output_level = DEBUG
int NumberOfEnergyBits = 6
 GEP configuration.
int ValueOfLeastSignificantBit = 10
int ValueG = 4
str gepEnergyEncodingScheme = str(NumberOfEnergyBits)+"-"+str(ValueOfLeastSignificantBit)+"-"+str(ValueG)
 gepcellhandler_cfg
 withDetails
 summariseProps
list known_cluster_algs = ['WFS', 'Calo420', 'Calo422']
list known_jet_algs = ['Cone', 'ModAntikT']
dict caloclustercolls
str cell_tower_key = 'GEPCellTower'
str alg_name = 'GepCellTowerAlg'
 gep_cell_tower_cfg
 True
dict caloClustersKey = caloclustercolls.get((cluster_alg, doLCCalib), None)
 gepclustering_cfg
list puSuppressionAlgs = ['']
 tcLabel = cluster_alg + puSuppressionAlg
str topoTowerKey = 'GEP' + cluster_alg + 'TopoTower'
str ttalg_name = 'Gep' + cluster_alg + 'TopoTower' + jetAlg + 'JetAlg'
str tcTowerKey = 'GEP' + cluster_alg + 'TCTower'
str tctalg_name = 'Gep' + cluster_alg + 'TCTower' + jetAlg + 'JetAlg'
str ctalg_name = 'GepCellTower' + jetAlg + 'JetAlg'
str topoTowerMETKey = 'GEP' + cluster_alg + 'TopoTower'
str ttMETalg_name = 'GepMET' + cluster_alg + 'TopoTower' + 'Alg'
str tcTowerMETKey = 'GEP' + cluster_alg + 'TCTower'
str tctMETalg_name = 'GepMET' + cluster_alg + 'TCTower' + 'Alg'
str ctMETalg_name = 'GepMETCellTowerAlg'
str ttPufitMETalg_name = 'GepMET' + cluster_alg + 'TopoTower' + 'PufitAlg'
str tctPufitMETalg_name = 'GepMET' + cluster_alg + 'TCTower' + 'PufitAlg'
str ctPufitMETalg_name = 'GepMETCellTowerPufitAlg'
 sc = acc.run()
 Save and optionally run the configuration.

Function Documentation

◆ fixMakerTool422()

run_gep.fixMakerTool422 ( alg)

Definition at line 218 of file run_gep.py.

218 def fixMakerTool422(alg):
219 if not hasattr(alg, 'ClusterMakerTools'):
220 return False
221
222 for tool in alg.ClusterMakerTools:
223 if tool.name == 'TopoMaker':
224 assert tool.CellThresholdOnEorAbsEinSigma == 0
225 tool.CellThresholdOnEorAbsEinSigma = 2.0
226 return True
227
228 return False
229

◆ fixSnapshotTool422()

run_gep.fixSnapshotTool422 ( alg)

Definition at line 230 of file run_gep.py.

230 def fixSnapshotTool422(alg):
231 if not hasattr(alg, 'ClusterCorrectionTools'):
232 return False
233
234 for tool in alg.ClusterCorrectionTools:
235
236 if tool.name == 'CaloClusterSnapshot':
237 assert tool.OutputName == 'CaloTopoClusters'
238 if doLCCalib:
239 tool.OutputName = 'CaloCalTopoClusters422Snap'
240 else:
241 tool.OutputName = 'CaloTopoClusters422Snap'
242 return True
243
244 return False
245
246

◆ getAlg422()

run_gep.getAlg422 ( cfg)

Definition at line 212 of file run_gep.py.

212 def getAlg422(cfg):
213 for comp in cfg.getSequence().Members:
214 if comp.name == 'CaloCalTopoClusters422Maker':
215 return comp
216 return None
217

Variable Documentation

◆ acc

run_gep.acc = MainServicesCfg(flags)

Definition at line 140 of file run_gep.py.

◆ action

run_gep.action

Definition at line 23 of file run_gep.py.

◆ alg

run_gep.alg = getAlg422(calo_acc422)

Definition at line 247 of file run_gep.py.

◆ alg_name

str run_gep.alg_name = 'GepCellTowerAlg'

Definition at line 327 of file run_gep.py.

◆ AODFileName

run_gep.AODFileName

Definition at line 117 of file run_gep.py.

◆ args

run_gep.args = p.parse_args()

Definition at line 66 of file run_gep.py.

◆ AtlasVersion

run_gep.AtlasVersion

Definition at line 113 of file run_gep.py.

◆ calo_acc420

run_gep.calo_acc420 = CaloTopoClusterCfg(flags)

Definition at line 193 of file run_gep.py.

◆ calo_acc422

run_gep.calo_acc422
Initial value:
1= CaloTopoClusterCfg(flags,
2 clustersname=clustersname)

Definition at line 209 of file run_gep.py.

◆ caloclustercolls

dict run_gep.caloclustercolls
Initial value:
1= {('Calo420', False) : 'CaloTopoClusters',
2 ('Calo420', True) : 'CaloCalTopoClusters',
3 ('Calo422', False) : 'CaloTopoClusters422',
4 ('Calo422', True) : 'CaloCalTopoClusters422'}

Definition at line 317 of file run_gep.py.

◆ caloClustersKey

str run_gep.caloClustersKey = caloclustercolls.get((cluster_alg, doLCCalib), None)

Definition at line 343 of file run_gep.py.

◆ cell_tower_key

str run_gep.cell_tower_key = 'GEPCellTower'

Definition at line 326 of file run_gep.py.

◆ cellCollectionName

run_gep.cellCollectionName = args.cellCollection

Definition at line 73 of file run_gep.py.

◆ CheckDependencies

run_gep.CheckDependencies

Definition at line 123 of file run_gep.py.

◆ clusterAlgNames

run_gep.clusterAlgNames = args.clusterAlgs.split(',')

Definition at line 68 of file run_gep.py.

◆ clustersname

str run_gep.clustersname = 'CaloCalTopoClusters422' if doLCCalib else 'CaloTopoClusters422'

Definition at line 208 of file run_gep.py.

◆ ctalg_name

str run_gep.ctalg_name = 'GepCellTower' + jetAlg + 'JetAlg'

Definition at line 436 of file run_gep.py.

◆ ctMETalg_name

str run_gep.ctMETalg_name = 'GepMETCellTowerAlg'

Definition at line 481 of file run_gep.py.

◆ ctPufitMETalg_name

str run_gep.ctPufitMETalg_name = 'GepMETCellTowerPufitAlg'

Definition at line 517 of file run_gep.py.

◆ default

run_gep.default

Definition at line 20 of file run_gep.py.

◆ doLCCalib

run_gep.doLCCalib = flags.Calo.TopoCluster.doTopoClusterLocalCalib

Definition at line 207 of file run_gep.py.

◆ doLVL1

run_gep.doLVL1

Definition at line 126 of file run_gep.py.

◆ EDMVersion

run_gep.EDMVersion

Definition at line 125 of file run_gep.py.

◆ enable_cell_tower

run_gep.enable_cell_tower = args.enableCellTower

Definition at line 72 of file run_gep.py.

◆ enable_tc_tower

run_gep.enable_tc_tower = args.enableTCTower

Definition at line 71 of file run_gep.py.

◆ enable_topo_tower

run_gep.enable_topo_tower = args.enableTopoTower

Definition at line 70 of file run_gep.py.

◆ enableL1CaloPhase1

run_gep.enableL1CaloPhase1

Definition at line 127 of file run_gep.py.

◆ error

run_gep.error = local_log.error

Definition at line 14 of file run_gep.py.

◆ FexEDMList

list run_gep.FexEDMList
Initial value:
1= [
2 'xAOD::eFexEMRoIContainer#L1_eEMRoI','xAOD::eFexEMRoIAuxContainer#L1_eEMRoIAux.',
3 'xAOD::eFexTauRoIContainer#L1_eTauRoI','xAOD::eFexTauRoIAuxContainer#L1_eTauRoIAux.',
4 'xAOD::jFexTauRoIContainer#L1_jFexTauRoI','xAOD::jFexTauRoIAuxContainer#L1_jFexTauRoIAux.',
5 'xAOD::jFexSRJetRoIContainer#L1_jFexSRJetRoI','xAOD::jFexSRJetRoIAuxContainer#L1_jFexSRJetRoIAux.',
6 'xAOD::jFexLRJetRoIContainer#L1_jFexLRJetRoI','xAOD::jFexLRJetRoIAuxContainer#L1_jFexLRJetRoIAux.',
7 'xAOD::jFexMETRoIContainer#L1_jFexMETRoI','xAOD::jFexMETRoIAuxContainer#L1_jFexMETRoIAux.',
8 'xAOD::jFexSumETRoIContainer#L1_jFexSumETRoI','xAOD::jFexSumETRoIAuxContainer#L1_jFexSumETRoIAux.',
9 'xAOD::gFexJetRoIContainer#L1_gFexSRJetRoI','xAOD::gFexJetRoIAuxContainer#L1_gFexSRJetRoIAux.',
10 'xAOD::gFexJetRoIContainer#L1_gFexLRJetRoI','xAOD::gFexJetRoIAuxContainer#L1_gFexLRJetRoIAux.',
11 'xAOD::gFexJetRoIContainer#L1_gFexRhoRoI','xAOD::gFexJetRoIAuxContainer#L1_gFexRhoRoIAux.',
12 'xAOD::gFexGlobalRoIContainer#L1_gScalarEJwoj','xAOD::gFexGlobalRoIAuxContainer#L1_gScalarEJwojAux.',
13 'xAOD::gFexGlobalRoIContainer#L1_gMETComponentsJwoj','xAOD::gFexGlobalRoIAuxContainer#L1_gMETComponentsJwojAux.',
14 'xAOD::gFexGlobalRoIContainer#L1_gMHTComponentsJwoj','xAOD::gFexGlobalRoIAuxContainer#L1_gMHTComponentsJwojAux.',
15 'xAOD::gFexGlobalRoIContainer#L1_gMSTComponentsJwoj','xAOD::gFexGlobalRoIAuxContainer#L1_gMSTComponentsJwojAux.',
16 'xAOD::gFexGlobalRoIContainer#L1_gMETComponentsNoiseCut','xAOD::gFexGlobalRoIAuxContainer#L1_gMETComponentsNoiseCutAux.',
17 'xAOD::gFexGlobalRoIContainer#L1_gMETComponentsRms','xAOD::gFexGlobalRoIAuxContainer#L1_gMETComponentsRmsAux.',
18 'xAOD::gFexGlobalRoIContainer#L1_gScalarENoiseCut','xAOD::gFexGlobalRoIAuxContainer#L1_gScalarENoiseCutAux.',
19 'xAOD::gFexGlobalRoIContainer#L1_gScalarERms','xAOD::gFexGlobalRoIAuxContainer#L1_gScalarERmsAux.',
20 ]

Definition at line 156 of file run_gep.py.

◆ Files

run_gep.Files

Definition at line 99 of file run_gep.py.

◆ flags

run_gep.flags = initConfigFlags()

Definition at line 93 of file run_gep.py.

◆ gep_cell_tower_cfg

run_gep.gep_cell_tower_cfg
Initial value:
1= GepCellTowerAlgCfg(
2 flags,
3 outputCellTowerKey=cell_tower_key,
4 gepCellMapKey=cellCollectionName,
5 OutputLevel=gepAlgs_output_level)

Definition at line 330 of file run_gep.py.

◆ gepAlgs_output_level

run_gep.gepAlgs_output_level = DEBUG

Definition at line 258 of file run_gep.py.

◆ gepcellhandler_cfg

run_gep.gepcellhandler_cfg
Initial value:
1= GepCellsHandlerAlgCfg(
2 flags,
3 outputGepCellsKey="GepCells",
4 GEPEnergyEncodingScheme = gepEnergyEncodingScheme,
5 HardwareStyleEnergyEncoding = True,
6 TruncationOfOverflowingFEBs = True,
7 OutputLevel=gepAlgs_output_level)

Definition at line 282 of file run_gep.py.

◆ gepclustering_cfg

run_gep.gepclustering_cfg
Initial value:
1= GepClusteringAlgCfg(
2 flags,
3 TopoClAlg=cluster_alg,
4 gepCellMapKey="GepCells",
5 outputCaloClustersKey=caloClustersKey,
6 OutputLevel=gepAlgs_output_level)

Definition at line 348 of file run_gep.py.

◆ gepEnergyEncodingScheme

str run_gep.gepEnergyEncodingScheme = str(NumberOfEnergyBits)+"-"+str(ValueOfLeastSignificantBit)+"-"+str(ValueG)

Definition at line 278 of file run_gep.py.

◆ help

run_gep.help

Definition at line 21 of file run_gep.py.

◆ ifile

str run_gep.ifile
Initial value:
1= (
2 "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/RecExRecoTest/mc20e_13TeV/"
3 "valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.ESD.e4993_s3227_r12689/myESD.pool.root")

Definition at line 96 of file run_gep.py.

◆ info

run_gep.info = local_log.info

Definition at line 13 of file run_gep.py.

◆ isOnline

run_gep.isOnline

Definition at line 118 of file run_gep.py.

◆ jetAlgNames

run_gep.jetAlgNames = args.jetAlgs.split(',')

Definition at line 69 of file run_gep.py.

◆ known_cluster_algs

list run_gep.known_cluster_algs = ['WFS', 'Calo420', 'Calo422']

Definition at line 305 of file run_gep.py.

◆ known_jet_algs

list run_gep.known_jet_algs = ['Cone', 'ModAntikT']

Definition at line 309 of file run_gep.py.

◆ local_log

run_gep.local_log = logging.getLogger('run_gep')

Definition at line 12 of file run_gep.py.

◆ MaxEvents

run_gep.MaxEvents

Definition at line 119 of file run_gep.py.

◆ metavar

run_gep.metavar

Definition at line 19 of file run_gep.py.

◆ NumberOfEnergyBits

int run_gep.NumberOfEnergyBits = 6

GEP configuration.

Run clustering and jet finding algorithms These may be produced by statndard ATLAS Alorithms, or by GEP Algorithms.

Definition at line 274 of file run_gep.py.

◆ NumConcurrentEvents

run_gep.NumConcurrentEvents

Definition at line 121 of file run_gep.py.

◆ NumThreads

run_gep.NumThreads

Definition at line 120 of file run_gep.py.

◆ p

run_gep.p = argparse.ArgumentParser()

Definition at line 17 of file run_gep.py.

◆ puSuppressionAlgs

list run_gep.puSuppressionAlgs = ['']

Definition at line 383 of file run_gep.py.

◆ sc

run_gep.sc = acc.run()

Save and optionally run the configuration.

Definition at line 533 of file run_gep.py.

◆ ShowDataDeps

run_gep.ShowDataDeps

Definition at line 122 of file run_gep.py.

◆ ShowDataFlow

run_gep.ShowDataFlow

Definition at line 124 of file run_gep.py.

◆ summariseProps

run_gep.summariseProps

Definition at line 292 of file run_gep.py.

◆ tcLabel

run_gep.tcLabel = cluster_alg + puSuppressionAlg

Definition at line 387 of file run_gep.py.

◆ tctalg_name

str run_gep.tctalg_name = 'Gep' + cluster_alg + 'TCTower' + jetAlg + 'JetAlg'

Definition at line 422 of file run_gep.py.

◆ tctMETalg_name

str run_gep.tctMETalg_name = 'GepMET' + cluster_alg + 'TCTower' + 'Alg'

Definition at line 471 of file run_gep.py.

◆ tcTowerKey

str run_gep.tcTowerKey = 'GEP' + cluster_alg + 'TCTower'

Definition at line 421 of file run_gep.py.

◆ tcTowerMETKey

str run_gep.tcTowerMETKey = 'GEP' + cluster_alg + 'TCTower'

Definition at line 470 of file run_gep.py.

◆ tctPufitMETalg_name

str run_gep.tctPufitMETalg_name = 'GepMET' + cluster_alg + 'TCTower' + 'PufitAlg'

Definition at line 508 of file run_gep.py.

◆ toggle_geometry

run_gep.toggle_geometry

Definition at line 131 of file run_gep.py.

◆ topoTowerKey

str run_gep.topoTowerKey = 'GEP' + cluster_alg + 'TopoTower'

Definition at line 406 of file run_gep.py.

◆ topoTowerMETKey

str run_gep.topoTowerMETKey = 'GEP' + cluster_alg + 'TopoTower'

Definition at line 459 of file run_gep.py.

◆ True

run_gep.True

Definition at line 337 of file run_gep.py.

◆ ttalg_name

str run_gep.ttalg_name = 'Gep' + cluster_alg + 'TopoTower' + jetAlg + 'JetAlg'

Definition at line 407 of file run_gep.py.

◆ ttMETalg_name

str run_gep.ttMETalg_name = 'GepMET' + cluster_alg + 'TopoTower' + 'Alg'

Definition at line 460 of file run_gep.py.

◆ ttPufitMETalg_name

str run_gep.ttPufitMETalg_name = 'GepMET' + cluster_alg + 'TopoTower' + 'PufitAlg'

Definition at line 499 of file run_gep.py.

◆ type

run_gep.type

Definition at line 27 of file run_gep.py.

◆ ValueG

int run_gep.ValueG = 4

Definition at line 276 of file run_gep.py.

◆ ValueOfLeastSignificantBit

int run_gep.ValueOfLeastSignificantBit = 10

Definition at line 275 of file run_gep.py.

◆ withDetails

run_gep.withDetails

Definition at line 291 of file run_gep.py.