To estimate efficiencies of beam chambers, please use the mpsBeamPwcMon program.
See the output of 'mpsEfficiency -h' (usage) for information on switches accepted by the program but not described in this document.
In case of inconsistencies between this document and the program's usage, the program's usage should be assumed to be more correct.
> mpsEfficiency -rxxxfor example,
> mpsEfficiency -r8989
After loading the parameters database, the program will produce the following output:
---------------------------------------------------------------------- Chamber hits: found/expected efficiency: new/ file/ Map/ save ---------------------------------------------------------------------- AX111 0/ 0 1.00 1.00 1.00 1.00 ... FX2 0/ 0 1.00 1.00 0.77 1.00 FX3 0/ 0 1.00 1.00 0.74 1.00 FY1 0/ 0 1.00 1.00 0.78 1.00 FU1 0/ 0 1.00 1.00 0.79 1.00 FV1 0/ 0 1.00 1.00 0.83 1.00 FY2 0/ 0 1.00 1.00 0.93 1.00 TPX3 0/ 0 1.00 1.00 1.00 1.00 TDX4A 0/ 0 1.00 1.00 1.00 1.00 TDX4B 0/ 0 1.00 1.00 1.00 1.00 ----------------------------------------------------------------------The values stored in the Map are shown in the efficiency/Map column.
> mpsEfficiency -rxxx inputFiles...for example,
> mpsEfficiency -r8989 input.dat
> mpsEfficiency -b -rxxx inputFiles...for example,
> mpsEfficiency -b -r8989 input.datThe input file should have the following data groups: GROUP_TRACKS, GROUP_PATREC and the drift chamber and TPX hits groups.
The calculated efficiencies are saved in the mpsEfficiency.db file in the current directory. If necessary this file can be edited using a text editor to assign arbitrary efficiency values. Values saved into this file can then be loaded into the Map using the mpsEfficiency program.
After loading the parameters database, the program will produce the following output:
---------------------------------------------------------------------- Chamber hits: found/expected efficiency: new/ file/ Map/ save ---------------------------------------------------------------------- TPX1 200/ 200 1.00 1.00 1.00 1.00 BX1 186/ 200 0.93 1.00 0.96 0.93 BX2 196/ 200 0.98 1.00 0.95 0.98 BX3 186/ 200 0.93 1.00 0.91 0.93 BY1 182/ 200 0.91 1.00 0.93 0.91 BU1 174/ 200 0.87 1.00 0.81 0.87 ... ----------------------------------------------------------------------The first column gives the chamber name, the second and third the hit count, the efficiency columns are:
> mpsEfficiency -rXXX -wYYYwhere YYY is the run number used to store the data. Normally XXX and YYY are equal. Example:
> mpsEfficiency -r8989 -w8989
The program swims the tracks through the detectors and builds a "fake" pattern recognition group. Hits are placed into this pattern recognition group if they fall within a given wire range from the hit. This range can be changed using the -Wnwires command line argument.
Once constructed this fake pattern recognition group is used as described in the next section.
The program uses the pattern recognition data (GROUP_PATREC_TRK) and requires that all the planes between the first plane and the last plane have hits. If hits are missing in the middle planes, they count as inefficiencies.
The method has a drawback in that it does not allow for calculations of efficiencies for the first and last planes on the track.
//CO 18 Dec 1994