ATLAS Offline Software
Functions | Variables
python.LArMissingFebsDBAlg Namespace Reference

Functions

def LArBadFebDBAlgCfg (flags, InputFile, dbname="LAR_OFL", folder=None, tag=None, IOVStart=[0, 0], IOVEnd=[0x7FFFFFFF, 0xFFFFFFFF])
 

Variables

 parser = argparse.ArgumentParser()
 
 default
 
 None
 
 help
 
 type
 
 int
 
 x7FFFFFFF
 
 xFFFFFFFF
 
 args
 
 leftover
 
 flags = initConfigFlags()
 
 isMC
 
 DatabaseInstance
 
 doAlign
 
 RunNumbers
 
 GlobalTag
 
 AtlasVersion
 
 DBConnection
 
 OutputLevel
 
 cfg = MainServicesCfg(flags)
 
 sc = cfg.run(1)
 

Function Documentation

◆ LArBadFebDBAlgCfg()

def python.LArMissingFebsDBAlg.LArBadFebDBAlgCfg (   flags,
  InputFile,
  dbname = "LAR_OFL",
  folder = None,
  tag = None,
  IOVStart = [0,0],
  IOVEnd = [0x7FFFFFFF,0xFFFFFFFF] 
)

Definition at line 6 of file LArMissingFebsDBAlg.py.

6 def LArBadFebDBAlgCfg(flags,InputFile,dbname="LAR_OFL",folder=None,tag=None,
7  IOVStart=[0,0],IOVEnd=[0x7FFFFFFF,0xFFFFFFFF]):
8 
9  logger = logging.getLogger( "LArBadFebDBAlgCfg" )
10  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
11  result=LArGMCfg(flags)
12 
13  from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
14  result.merge(LArOnOffIdMappingCfg(flags))
15 
16  if folder is None:
17  if dbname == "LAR_ONL":
18  folder="/LAR/BadChannels/KnownBADFEBs"
19  else:
20  folder="/LAR/BadChannelsOfl/KnownBADFEBs"
21 
22  if tag is not None:
23  if not tag.startswith("LAR"):
24  if not tag.startswith("-"): tag= "-"+tag
25  tag="".join(folder.split("/"))+tag
26 
27  print("Tag=",tag)
28 
29 
30  logger.info("Writing to folder %s, tag %s",folder,tag)
31  result.addCondAlgo(CompFactory.LArBadFebCondAlg("LArKnownBadFebAlg",ReadKey="",InputFileName=InputFile,WriteKey="LArBadFeb"))
32 
33  #Thats the registration algo
34  theLArDBAlg=CompFactory.LArBadChannelDBAlg()
35  theLArDBAlg.WritingMode = 1
36  theLArDBAlg.FEBFolder=folder
37  result.addEventAlgo(theLArDBAlg)
38 
39  from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
40  result.merge(OutputConditionsAlgCfg(flags,"dummy.pool.root",
41  ObjectList=["AthenaAttributeList#"+folder],
42  IOVTagList=[tag],
43  Run1=IOVStart[0],LB1=IOVStart[1],
44  Run2=IOVEnd[0],LB2=IOVEnd[1]))
45 
46  return result
47 
48 

Variable Documentation

◆ args

python.LArMissingFebsDBAlg.args

Definition at line 63 of file LArMissingFebsDBAlg.py.

◆ AtlasVersion

python.LArMissingFebsDBAlg.AtlasVersion

Definition at line 80 of file LArMissingFebsDBAlg.py.

◆ cfg

python.LArMissingFebsDBAlg.cfg = MainServicesCfg(flags)

Definition at line 94 of file LArMissingFebsDBAlg.py.

◆ DatabaseInstance

python.LArMissingFebsDBAlg.DatabaseInstance

Definition at line 75 of file LArMissingFebsDBAlg.py.

◆ DBConnection

python.LArMissingFebsDBAlg.DBConnection

Definition at line 82 of file LArMissingFebsDBAlg.py.

◆ default

python.LArMissingFebsDBAlg.default

Definition at line 53 of file LArMissingFebsDBAlg.py.

◆ doAlign

python.LArMissingFebsDBAlg.doAlign

Definition at line 76 of file LArMissingFebsDBAlg.py.

◆ flags

python.LArMissingFebsDBAlg.flags = initConfigFlags()

Definition at line 71 of file LArMissingFebsDBAlg.py.

◆ GlobalTag

python.LArMissingFebsDBAlg.GlobalTag

Definition at line 78 of file LArMissingFebsDBAlg.py.

◆ help

python.LArMissingFebsDBAlg.help

Definition at line 53 of file LArMissingFebsDBAlg.py.

◆ int

python.LArMissingFebsDBAlg.int

Definition at line 54 of file LArMissingFebsDBAlg.py.

◆ isMC

python.LArMissingFebsDBAlg.isMC

Definition at line 74 of file LArMissingFebsDBAlg.py.

◆ leftover

python.LArMissingFebsDBAlg.leftover

Definition at line 63 of file LArMissingFebsDBAlg.py.

◆ None

python.LArMissingFebsDBAlg.None

Definition at line 53 of file LArMissingFebsDBAlg.py.

◆ OutputLevel

python.LArMissingFebsDBAlg.OutputLevel

Definition at line 87 of file LArMissingFebsDBAlg.py.

◆ parser

python.LArMissingFebsDBAlg.parser = argparse.ArgumentParser()

Definition at line 51 of file LArMissingFebsDBAlg.py.

◆ RunNumbers

python.LArMissingFebsDBAlg.RunNumbers

Definition at line 77 of file LArMissingFebsDBAlg.py.

◆ sc

python.LArMissingFebsDBAlg.sc = cfg.run(1)

Definition at line 114 of file LArMissingFebsDBAlg.py.

◆ type

python.LArMissingFebsDBAlg.type

Definition at line 54 of file LArMissingFebsDBAlg.py.

◆ x7FFFFFFF

python.LArMissingFebsDBAlg.x7FFFFFFF

Definition at line 56 of file LArMissingFebsDBAlg.py.

◆ xFFFFFFFF

python.LArMissingFebsDBAlg.xFFFFFFFF

Definition at line 57 of file LArMissingFebsDBAlg.py.

OutputConditionsAlgConfig.OutputConditionsAlgCfg
def OutputConditionsAlgCfg(flags, name="OutputConditionsAlg", outputFile='condobjs.root', **kwargs)
Definition: OutputConditionsAlgConfig.py:5
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
python.LArMissingFebsDBAlg.LArBadFebDBAlgCfg
def LArBadFebDBAlgCfg(flags, InputFile, dbname="LAR_OFL", folder=None, tag=None, IOVStart=[0, 0], IOVEnd=[0x7FFFFFFF, 0xFFFFFFFF])
Definition: LArMissingFebsDBAlg.py:6