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 47 of file CscCalibQuery.py.
def CscCalibQuery.updateList | ( | oldListPath, | |
newList | |||
) |
Definition at line 37 of file CscCalibQuery.py.
string CscCalibQuery.calibFileDir = '/castor/cern.ch/user/l/lampen/CalibRunTest/slope/' |
Definition at line 259 of file CscCalibQuery.py.
CscCalibQuery.calibRe = re.compile('data1.*_calib.*calibration_pedCSC\\.daq\\.RAW.*\\.data') |
Definition at line 266 of file CscCalibQuery.py.
CscCalibQuery.calType = sys.argv[1] |
Main program#############################.
Definition at line 257 of file CscCalibQuery.py.
string CscCalibQuery.castorCopyCmd = "mkdir ${bytestreamDir}" |
Definition at line 346 of file CscCalibQuery.py.
string CscCalibQuery.cmd = 'rfdir ' + calibFileDir + DirName |
Definition at line 329 of file CscCalibQuery.py.
bool CscCalibQuery.CoolMergeByDefault = False |
Definition at line 32 of file CscCalibQuery.py.
CscCalibQuery.currentDirList = currentLs.split('\n') |
Definition at line 301 of file CscCalibQuery.py.
CscCalibQuery.currentLs = os.popen('rfdir ' + calibFileDir).read() |
Definition at line 282 of file CscCalibQuery.py.
CscCalibQuery.day = int(splitDir[-3]) |
Definition at line 312 of file CscCalibQuery.py.
CscCalibQuery.DirName = splitDir[-1] |
Definition at line 313 of file CscCalibQuery.py.
Definition at line 330 of file CscCalibQuery.py.
tuple CscCalibQuery.fileName = (file.split(' '))[-1] |
Definition at line 348 of file CscCalibQuery.py.
string CscCalibQuery.fullPath = calibFileDir + DirName + '/' + fileName |
Definition at line 360 of file CscCalibQuery.py.
CscCalibQuery.inFile = open(oldListFilePath, 'r') |
Definition at line 287 of file CscCalibQuery.py.
string CscCalibQuery.maillist = responsiblePerson |
Definition at line 30 of file CscCalibQuery.py.
int CscCalibQuery.nFiles = len(fileList) -1 |
Definition at line 332 of file CscCalibQuery.py.
CscCalibQuery.now = datetime.datetime.now() |
Definition at line 295 of file CscCalibQuery.py.
int CscCalibQuery.numFilesToRun = 3 |
Definition at line 28 of file CscCalibQuery.py.
CscCalibQuery.oldDirList = oldLs.split('\n') |
Definition at line 302 of file CscCalibQuery.py.
Definition at line 260 of file CscCalibQuery.py.
CscCalibQuery.oldLs = inFile.read() |
Definition at line 288 of file CscCalibQuery.py.
string CscCalibQuery.outputDir = '/afs/cern.ch/user/m/muoncali/w0/CSC/runs/pulser/pulser' |
Definition at line 261 of file CscCalibQuery.py.
Definition at line 338 of file CscCalibQuery.py.
string CscCalibQuery.responsiblePerson = "youzhou@email.arizona.edu" |
Definition at line 29 of file CscCalibQuery.py.
CscCalibQuery.runningDir = "" |
Definition at line 305 of file CscCalibQuery.py.
CscCalibQuery.runNumber = DirName |
Definition at line 335 of file CscCalibQuery.py.
CscCalibQuery.splitDir = Dir.split() |
Definition at line 311 of file CscCalibQuery.py.
Definition at line 274 of file CscCalibQuery.py.
CscCalibQuery.ThisCalibDir = False |
Definition at line 345 of file CscCalibQuery.py.
Definition at line 316 of file CscCalibQuery.py.
CscCalibQuery.today = now.day |
Definition at line 296 of file CscCalibQuery.py.
bool CscCalibQuery.updateRunList = True |
Definition at line 304 of file CscCalibQuery.py.