Public Member Functions
|int||process_event (rawevent &, string &)|
|controlls event processing |
|int||threshandcal (int &, chan_event *, detector_summary *)|
|threshold check and calibrate each channel. |
|int||init (rawevent &, vector< string > &)|
|int||plotraw (chan_event *)|
|int||plotcal (chan_event *)|
|vector< string >||get_known_detectors ()|
|void||set_used_detectors (vector< string > a)|
|vector< calibration >||cal|
|vector< detector_summary * >||temppoint|
|vector< int >||temppointvalid|
|vector< string >||known_detectors|
|vector< string >||used_detectors|
|map< string, detector_summary >||det_sum|
|map< string, detector_summary > *||pdet_sum|
|map< string, detector_summary >|
|vector< string >::iterator||iud|
This class controls the processing of each event and includes the calibration of all raw energies, the plotting of raw and calibrated energies (if the appropriate DAMM spectra have been created in the drrsub.f file), and any experiment specific processing required.
detector driver constructor
Currently does nothing
|int detector_driver::process_event||(||rawevent &||revt,|
controlls event processing
The process_event() function is called from the Scan_List() function in pixie_std.cpp after an event has been constructed. This function is passed a pointer to the rawevent and the mode that the analysis is currently in (the options are either "scan" or "standaloneroot"). The individual channels in the event are threshold checked and their energies calibrated. The raw and calibrated energies are plotted if the appropriate damm spectra have been created. Then experiment specific processing is performed. Currently, both RMS and MTC processing is available. After all processing has occured appropriate plotting routines are called.
threshold check and calibrate each channel.
Check the threshholds and calibrate the energy for each channel using the calibrations contained in the calibration vector filled during the readscan() function.
|int detector_driver::init||(||rawevent &||revt,|
|vector< string > &||used|
Called from pixie_std.cpp during initialization. The rawevent object and the list of detectors used in this analysis are passed into this function. The calibration file cal.txt using the function readcal() and checked to make sure that all channels have a calibration. Additionally the temppointvalid and temppoint vectors are created.
|int detector_driver::plotraw||(||chan_event *||chan2||)|
Plot the raw energies of each channel into the damm spectrum number that was given in the map.txt file.
|int detector_driver::plotcal||(||chan_event *||chan2||)|
Plot the calibrated energies of each channel into the damm spectrum number+1000 that was given in the map.txt file.
|vector< string > detector_driver::get_known_detectors||(||)|
Retrieves a vector containing all detector types for which an analysis routine has been defined making it possible to declare this detector type in the map.txt file. The currently known detector types are dssd_front, dssd_back, ge, timeclass, si, position, ifront_dssd, scint, and mcp.
|void detector_driver::set_used_detectors||(||vector< string >||a||)||
Receives a vector containing the list of detector types that are used in the current analysis and copies it into the detector_driver.
Read in the calibration for each channel according to the data in the cal.txt file. Reorder the calibrations to match the order in map.txt.
list of valid detectors that can be used as detector types
list of detector type used in the current analysis
iterator for looping over map of detector summaries
variable for looping over vector of detector types used in this analysis
vector used for quick acess of detector_summary information for a given detector type
check this vector to ensure that the reference used in temppoint is actually valid (should have a value of 1).