ATLAS Offline Software
ZLumiScripts/grid/grl.py
Go to the documentation of this file.
1 #!/us/bin/env python
2 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 # Postinclude snippet for Reco_tf to bring in a GRL
4 
5 from __future__ import print_function
6 
7 from GoodRunsLists.GoodRunsListsConf import GoodRunsListSelectorTool
8 from GoodRunsListsUser.GoodRunsListsUserConf import GRLTriggerSelectorAlg
9 from AthenaCommon.AlgSequence import AthSequencer
10 import os
11 if 'GRL' in os.environ:
12  print('Executing GRL code')
13  ToolSvc += GoodRunsListSelectorTool()
14  ToolSvc.GoodRunsListSelectorTool.GoodRunsListVec = [ os.environ['GRL'] ]
15 
16  seq = AthSequencer("AthMasterSeq")
17  seq += GRLTriggerSelectorAlg("GRLAlg")
18  seq.GRLAlg.GoodRunsListArray=[ os.environ['GRLNAME'] ]
python.AlgSequence.AthSequencer
AthSequencer
Definition: Control/AthenaCommon/python/AlgSequence.py:64
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70