~vpec/maus/tof_calib_read

« back to all changes in this revision

Viewing changes to macros/.svn/text-base/dump_isbad.py.svn-base

  • Committer: tunnell
  • Date: 2010-09-20 10:52:02 UTC
  • Revision ID: tunnell@itchy-20100920105202-ce4w9jm59zvgnsxq
moving stuff from tucs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
execfile('src/load.py', globals()) # don't remove this!
 
2
 
 
3
# Set this to some bi-gain CIS scan.  This does not work
 
4
# MonoCIS since there is currently no MonoCIS calibration
 
5
# to access if a run is good or not.
 
6
 
 
7
# Please select a run or collection of runs by uncommenting one
 
8
# of the three lines below
 
9
runs = 114371                # choose only run one
 
10
#runs = [104835,104934]      # or a list of runs
 
11
#runs = "-1 week"            # or you can also look at the last week of CIS runs
 
12
 
 
13
#
 
14
# Expert's only: you probably don't want to touch the code below here
 
15
#
 
16
 
 
17
u = Use(run=runs, runType='CIS')
 
18
 
 
19
processors = [u, ReadChanStat(),             # Load the channel status information from COOL
 
20
              u, ReadCIS(),                  # Read in the CIS ntuples from AFS
 
21
              ReadDB(),                      # Read in the CIS DB constants
 
22
              CISFlagProcedure(),            # Determine if an ADC channel is good for CIS
 
23
              DumpIsBadToFile("CIS"),        # Dump the CIS ADC channel status
 
24
              DumpIsBadToFile("ChanStat")]   # Dump the COOL ADC channel status
 
25
 
 
26
# Run the script...
 
27
Go(processors)
 
28
 
 
29