![]() |
ATLAS Offline Software
|
Functions | |
def | updateList (oldListPath, newList) |
def | runCalib (calType, runNumber, workDir, castorCopyCmd) |
Variables | |
int | numFilesToRun = 3 |
string | responsiblePerson = "youzhou@email.arizona.edu" |
string | maillist = responsiblePerson |
bool | CoolMergeByDefault = False |
calType = sys.argv[1] | |
Main program#############################. More... | |
string | calibFileDir = '/castor/cern.ch/user/l/lampen/CalibRunTest/slope/' |
string | oldListFilePath = '/afs/cern.ch/user/m/muoncali/CSC/run/pulserList.txt' |
string | outputDir = '/afs/cern.ch/user/m/muoncali/w0/CSC/runs/pulser/pulser' |
calibRe = re.compile('data1.*_calib.*calibration_pedCSC\\.daq\\.RAW.*\\.data') | |
testFile = glob.glob("/afs/cern.ch/user/m/muoncali/CSC/run/runningCalibration*") | |
currentLs = os.popen('rfdir ' + calibFileDir).read() | |
inFile = open(oldListFilePath, 'r') | |
oldLs = inFile.read() | |
now = datetime.datetime.now() | |
today = now.day | |
currentDirList = currentLs.split('\n') | |
oldDirList = oldLs.split('\n') | |
bool | updateRunList = True |
string | runningDir = "" |
splitDir = Dir.split() | |
day = int(splitDir[-3]) | |
DirName = splitDir[-1] | |
timediff = today - day | |
string | cmd = 'rfdir ' + calibFileDir + DirName |
fileList = os.popen(cmd).read().split('\n') | |
int | nFiles = len(fileList) -1 |
runNumber = DirName | |
string | outputDirFull = outputDir + 'Run_' + runNumber |
bool | ThisCalibDir = False |
string | castorCopyCmd = "mkdir ${bytestreamDir}" |
tuple | fileName = (file.split(' '))[-1] |
string | fullPath = calibFileDir + DirName + '/' + fileName |
def CscCalibQuery.runCalib | ( | calType, | |
runNumber, | |||
workDir, | |||
castorCopyCmd | |||
) |
Definition at line 46 of file CscCalibQuery.py.
def CscCalibQuery.updateList | ( | oldListPath, | |
newList | |||
) |
Definition at line 36 of file CscCalibQuery.py.
string CscCalibQuery.calibFileDir = '/castor/cern.ch/user/l/lampen/CalibRunTest/slope/' |
Definition at line 258 of file CscCalibQuery.py.
CscCalibQuery.calibRe = re.compile('data1.*_calib.*calibration_pedCSC\\.daq\\.RAW.*\\.data') |
Definition at line 265 of file CscCalibQuery.py.
CscCalibQuery.calType = sys.argv[1] |
Main program#############################.
Definition at line 256 of file CscCalibQuery.py.
string CscCalibQuery.castorCopyCmd = "mkdir ${bytestreamDir}" |
Definition at line 345 of file CscCalibQuery.py.
string CscCalibQuery.cmd = 'rfdir ' + calibFileDir + DirName |
Definition at line 328 of file CscCalibQuery.py.
bool CscCalibQuery.CoolMergeByDefault = False |
Definition at line 31 of file CscCalibQuery.py.
CscCalibQuery.currentDirList = currentLs.split('\n') |
Definition at line 300 of file CscCalibQuery.py.
CscCalibQuery.currentLs = os.popen('rfdir ' + calibFileDir).read() |
Definition at line 281 of file CscCalibQuery.py.
CscCalibQuery.day = int(splitDir[-3]) |
Definition at line 311 of file CscCalibQuery.py.
CscCalibQuery.DirName = splitDir[-1] |
Definition at line 312 of file CscCalibQuery.py.
Definition at line 329 of file CscCalibQuery.py.
tuple CscCalibQuery.fileName = (file.split(' '))[-1] |
Definition at line 347 of file CscCalibQuery.py.
string CscCalibQuery.fullPath = calibFileDir + DirName + '/' + fileName |
Definition at line 359 of file CscCalibQuery.py.
CscCalibQuery.inFile = open(oldListFilePath, 'r') |
Definition at line 286 of file CscCalibQuery.py.
string CscCalibQuery.maillist = responsiblePerson |
Definition at line 29 of file CscCalibQuery.py.
int CscCalibQuery.nFiles = len(fileList) -1 |
Definition at line 331 of file CscCalibQuery.py.
CscCalibQuery.now = datetime.datetime.now() |
Definition at line 294 of file CscCalibQuery.py.
int CscCalibQuery.numFilesToRun = 3 |
Definition at line 27 of file CscCalibQuery.py.
CscCalibQuery.oldDirList = oldLs.split('\n') |
Definition at line 301 of file CscCalibQuery.py.
string CscCalibQuery.oldListFilePath = '/afs/cern.ch/user/m/muoncali/CSC/run/pulserList.txt' |
Definition at line 259 of file CscCalibQuery.py.
CscCalibQuery.oldLs = inFile.read() |
Definition at line 287 of file CscCalibQuery.py.
string CscCalibQuery.outputDir = '/afs/cern.ch/user/m/muoncali/w0/CSC/runs/pulser/pulser' |
Definition at line 260 of file CscCalibQuery.py.
Definition at line 337 of file CscCalibQuery.py.
string CscCalibQuery.responsiblePerson = "youzhou@email.arizona.edu" |
Definition at line 28 of file CscCalibQuery.py.
CscCalibQuery.runningDir = "" |
Definition at line 304 of file CscCalibQuery.py.
CscCalibQuery.runNumber = DirName |
Definition at line 334 of file CscCalibQuery.py.
CscCalibQuery.splitDir = Dir.split() |
Definition at line 310 of file CscCalibQuery.py.
CscCalibQuery.testFile = glob.glob("/afs/cern.ch/user/m/muoncali/CSC/run/runningCalibration*") |
Definition at line 273 of file CscCalibQuery.py.
CscCalibQuery.ThisCalibDir = False |
Definition at line 344 of file CscCalibQuery.py.
Definition at line 315 of file CscCalibQuery.py.
CscCalibQuery.today = now.day |
Definition at line 295 of file CscCalibQuery.py.
bool CscCalibQuery.updateRunList = True |
Definition at line 303 of file CscCalibQuery.py.