SND@LHC Software
Loading...
Searching...
No Matches
conditionsDatabase.getconditions_condDB Namespace Reference

Functions

 showdetectors (detector, count, level)
 

Variables

int level = 0
 
 opts
 
 args
 
 sd = str(a)
 
 api_factory = APIFactory()
 
 conditionsDB = api_factory.construct_DB_API("/home/eric/snd-soft-23april-2021/sndsw/conditionsDatabase/config.yml")
 
str detector = ""
 
int count = 0
 
 result = conditionsDB.get_conditions(sd)
 

Function Documentation

◆ showdetectors()

conditionsDatabase.getconditions_condDB.showdetectors (   detector,
  count,
  level 
)

Definition at line 41 of file getconditions_condDB.py.

41def showdetectors(detector,count,level):
42 #print ("showdetectors called. count=",count," level=",level)
43 # Show all detector names in the database:
44 result = conditionsDB.list_detectors(detector)
45 if len(result) > 0:
46 if detector=="":
47 print ("snd subdetectors:",result)
48 else:
49 print ("subdetectors inside",detector," :",result)
50 if count < level:
51 count+=1
52 for j in range(len(result)):
53 showdetectors(result[j],count,level)
54 else:
55 print ("No more subdetectors below subdetector/channel:",detector)
56 #print ("count=",count,"All subdetectors listed up to level",level,".")
57 return
58
59#showdetectors(detector,count,level)

Variable Documentation

◆ api_factory

conditionsDatabase.getconditions_condDB.api_factory = APIFactory()

Definition at line 33 of file getconditions_condDB.py.

◆ args

conditionsDatabase.getconditions_condDB.args

Definition at line 20 of file getconditions_condDB.py.

◆ conditionsDB

conditionsDatabase.getconditions_condDB.conditionsDB = api_factory.construct_DB_API("/home/eric/snd-soft-23april-2021/sndsw/conditionsDatabase/config.yml")

Definition at line 36 of file getconditions_condDB.py.

◆ count

int conditionsDatabase.getconditions_condDB.count = 0

Definition at line 39 of file getconditions_condDB.py.

◆ detector

str conditionsDatabase.getconditions_condDB.detector = ""

Definition at line 38 of file getconditions_condDB.py.

◆ level

conditionsDatabase.getconditions_condDB.level = 0

Definition at line 18 of file getconditions_condDB.py.

◆ opts

conditionsDatabase.getconditions_condDB.opts

Definition at line 20 of file getconditions_condDB.py.

◆ result

conditionsDatabase.getconditions_condDB.result = conditionsDB.get_conditions(sd)

Definition at line 60 of file getconditions_condDB.py.

◆ sd

conditionsDatabase.getconditions_condDB.sd = str(a)

Definition at line 30 of file getconditions_condDB.py.