/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Functions
channelSimData Namespace Reference

Functions

def makeFeeProperties
def makeFeeCalibProperties
def getProperties
def getCalibProperties
def printFeeProperties
def printFeeCalibProperties

Function Documentation

def channelSimData::makeFeeProperties ( )

Definition at line 10 of file channelSimData.py.

00011                        :
00012     "Return a list of FEE channels and their properties"
00013     properties = []
00014     feeIds = makeFeeCableMap.getFeeChannelIds()
00015     #print "nDetectors = ",len(pmtIds)
00016     detectors = feeIds.keys()
00017     detectors.sort()
00018     for detector in detectors:
00019         #print "Detector",detector.detName(),"nPmts = ",len(pmtIds[detector])
00020         for channelId in feeIds[detector]:
00021             properties.append( getProperties(channelId) )
00022     return properties

def channelSimData::makeFeeCalibProperties ( )

Definition at line 23 of file channelSimData.py.

00024                             :
00025     "Return a list of FEE channels and their properties"
00026     properties = []
00027     feeIds = makeFeeCableMap.getFeeChannelIds()
00028     #print "nDetectors = ",len(pmtIds)
00029     detectors = feeIds.keys()
00030     detectors.sort()
00031     for detector in detectors:
00032         #print "Detector",detector.detName(),"nPmts = ",len(pmtIds[detector])
00033         for channelId in feeIds[detector]:
00034             properties.append( getCalibProperties(channelId) )
00035     return properties

def channelSimData::getProperties (   channelId)

Definition at line 36 of file channelSimData.py.

00037                             :
00038     "Generate simulation properties for this FEE channel"
00039     channelThreshold = 0.0025 # Volts
00040     adcRangeHigh     = 0.1 # Volts
00041     adcRangeLow      = 1.0 # Volts
00042     adcBaselineHigh  = 500.0
00043     adcBaselineLow   = 500.0
00044 
00045     description = makeFeeCableMap.channelDescription(channelId)
00046     format = "%-2d %30s %-4.4f %-4.3f %-4.3f %-4.2f %-4.2f"
00047     line = format  % (channelId.fullPackedData(),
00048                       description,
00049                       channelThreshold,
00050                       adcRangeHigh,
00051                       adcRangeLow,
00052                       adcBaselineHigh,
00053                       adcBaselineLow)
00054     return line

def channelSimData::getCalibProperties (   channelId)

Definition at line 55 of file channelSimData.py.

00056                                  :
00057     "Generate calibration properties for this FEE channel"
00058     status = 1
00059     adcThresholdHigh = 5.0
00060     adcThresholdLow  = 0.0
00061     adcBaselineHigh  = 500.0
00062     adcBaselineLow   = 500.0
00063 
00064     description = makeFeeCableMap.channelDescription(channelId)
00065     format = "%-2d %30s %-4.3f %-4.3f %-4.2f %-4.2f"
00066     line = format  % (channelId.fullPackedData(),
00067                       description,
00068                       adcThresholdHigh,
00069                       adcThresholdLow,
00070                       adcBaselineHigh,
00071                       adcBaselineLow)
00072     return line
00073 

def channelSimData::printFeeProperties ( )

Definition at line 74 of file channelSimData.py.

00075                         :
00076     "Print table of Channel properties"
00077     print "# Simulation input data for FEE channel properties"
00078     print "# channelId description channelThreshold[V] adcRangeHigh[V] adcRangeLow[V] adcBaselineHigh adcBaselineLow"
00079     lines = makeFeeProperties()
00080     for line in lines:
00081         print line

def channelSimData::printFeeCalibProperties ( )

Definition at line 82 of file channelSimData.py.

00083                              :
00084     "Print table of Channel properties"
00085     print "# Calibration for FEE channel properties"
00086     print "# channelId description adcThresholdHigh adcThresholdLow adcBaselineHigh adcBaselineLow"
00087     lines = makeFeeCalibProperties()
00088     for line in lines:
00089         print line

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:59:23 for DataSvc by doxygen 1.7.4