7from __future__
import print_function, division
8from factory
import APIFactory
12from builtins
import range
14from argparse
import ArgumentParser
15from array
import array
20 opts, args = getopt.getopt(sys.argv[1:],
"l:",[])
21except getopt.GetoptError:
23 print(
' enter -l: level')
34conditionsDB = api_factory.construct_DB_API(
"/home/eric/snd-soft-23april-2021/sndsw/conditionsDatabase/config.yml")
42 result = conditionsDB.list_detectors(detector)
45 print (
"snd subdetectors:",result)
47 print (
"subdetectors inside",detector,
" :",result)
50 for j
in range(len(result)):
53 print (
"No more subdetectors below subdetector/channel:",detector)
This class creates an instance of the specified database API.
showdetectors(detector, count, level)