forked from Teststandees/hcal_teststand_scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.py
31 lines (27 loc) · 1.06 KB
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
####################################################################
# Type: SCRIPT #
# #
# Description: This is a script skeleton. #
####################################################################
from hcal_teststand import *
from hcal_teststand.hcal_teststand import teststand
import sys
# CLASSES:
# /CLASSES
# FUNCTIONS:
# /FUNCTIONS
# MAIN:
if __name__ == "__main__":
name = ""
if len(sys.argv) == 1:
name = "904"
elif len(sys.argv) == 2:
name = sys.argv[1]
else:
name = "904"
ts = teststand(name) # Initialize a teststand object. This object stores the teststand configuration and has a number of useful methods.
print "\nYou've just run a script that's a skeleton for making your own script."
# Print out some information about the teststand:
print ">> The teststand you're using is named {0}.".format(ts.name)
print ">> The crate and QIE card organization for the teststand is below:\n{0}".format(ts.fe)
# /MAIN