ATLAS Offline Software
Loading...
Searching...
No Matches
listModules.py
Go to the documentation of this file.
1#Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3# Write a text file containing all module names
4def main():
5
6 modules = []
7 # Get the module names
8
9 for stave in range(1,15):
10 staveString = str(stave)
11
12 if stave<10:
13 staveString="0"+str(stave)
14 for side in ['A','C']:
15 for DCSGroup in range(1,5):
16 modules += ['LI_S' + str(staveString) + '_' + side + '_M' + str(DCSGroup)]
17
18 filename = "modules.txt"
19 f = open(filename,"w")
20 for m in modules:
21 f.write(m+"\n")
22
23 f.close()
24
25if __name__ == "__main__":
26 main()