def ShuntScan(shuntMult=1,
              outputDirectory='',
              linkMap={},
              injectionCardMap={},
              histoMap={},
              histoList='-1'):
    files = os.listdir(outputDirectory)
    final_file = ''
    for f in files:
        if 'QIECalibration_' in f:
            final_file = outputDirectory + f
    if final_file == '':
        print 'Unable to find data file in directory %s' % outputDirectory
        print 'Exiting'
        sys.exit()

    #linkMap, injectionCardMap = getValuesFromFile(outputDirectory)

    #linkMap, injectionCardMap = getValuesFromFile(outputDirectory)
    val, meanvals, rmsvals, charge = read_histo_2d(
        file_in=final_file,
        shuntMult=shuntMult,
        injectionCardMap=injectionCardMap,
        histoMap=histoMap,
        histoList=histoList)

    return val, meanvals, rmsvals, charge
Exemplo n.º 2
0
def ShuntScan(
    shuntMult=1,
    outputDirectory='',
):

    final_file = outputDirectory + 'QIECalibration_1.root'
    val = read_histo_2d(file_in=final_file, shuntMult=shuntMult)

    return val
Exemplo n.º 3
0
def ShuntScan(shuntMult=1):

    #relayOn = False

    val = {}
    output = {}
    outputDirectory = options.Directory + '/'
    rootfile = options.filename
    final_file = outputDirectory + rootfile
    #print  final_file
    val = read_histo_2d(file_in=final_file, shuntMult=shuntMult)
    #   output[shuntMult]=val

    return val
def ShuntScan(shuntMult=1):
         

         #relayOn = False

         val={}
         output={}
         outputDirectory = options.Directory + '/'
         rootfile = options.filename
         final_file = outputDirectory+rootfile
         #print  final_file
         val= read_histo_2d(file_in=final_file,shuntMult=shuntMult)
      #   output[shuntMult]=val 
         
                 

         return val
Exemplo n.º 5
0
def ShuntScan(
    shuntMult=1,
    outputDirectory='',
):
    files = os.listdir(outputDirectory)
    final_file = ''
    for f in files:
        if 'QIECalibration_' in f:
            final_file = outputDirectory + f
    if final_file == '':
        print 'Unable to find data file in directory %s' % outputDirectory
        print 'Exiting'
        sys.exit()

    #final_file = outputDirectory+'QIECalibration_1.root'
    val = read_histo_2d(file_in=final_file, shuntMult=shuntMult)

    return val