#include <TBgoDetector.h>
Inheritance diagram for TBgoDetector:
This class has rudimentary functionality to calculate gamma-hit positions by setting the detector centre coordinates. It's a good example of how to add specialized funtions to a specific detector class.
Definition at line 14 of file TBgoDetector.h.
Public Member Functions | |
TBgoDetector (const Char_t *="", UInt_t=1) | |
virtual | ~TBgoDetector () |
virtual void | Print (const Char_t *="") const |
virtual void | SetSignals (const TSubEvent &) |
virtual void | FindHits (vector< THit > *) const |
void | SetXYZ (Int_t, Int_t, Int_t) |
Bool_t | PlotShiftedEnergies (TH2F *=0, Float_t=0, const TCutG *=0, Bool_t=1) const |
virtual void | Clear (const Char_t *="") |
virtual void | PrintData () const |
virtual void | Calibrate () |
virtual Bool_t | PlotEnergies (TH2F *=0, const TCutG *=0, Bool_t=1) const |
Bool_t | PlotChannels (TH1F *=0, Int_t=0, Int_t=0, Bool_t=1) const |
void | SetCalibration (const Char_t *=0) |
void | SetDatabase (const Char_t *) |
virtual const Char_t * | GetName () const |
virtual Bool_t | PlotTimes (TH2F *=0, const TCutG *=0, Bool_t=1) const |
virtual Bool_t | PlotEvT (TH2F *=0, Float_t=0, const TCutG *=0, Bool_t=1) const |
Float_t | GetMaxEnergy () const |
void | SetName (const Char_t *) |
void | SetChannels (UInt_t) |
void | SetCoordinates (Float_t, Float_t, Float_t) |
UInt_t | GetChannels () const |
const TVector3 & | GetCoordinates () const |
const vector< const TDataItem< Float_t > * > & | GetEnergies () const |
const vector< const TDataItem< Float_t > * > & | GetTimes () const |
void | Hit (Bool_t) |
Bool_t | IsHit () const |
Bool_t | IsName (const Char_t *) const |
Protected Attributes | |
vector< const TDataItem< UShort_t > * > | fAdcs |
vector< const TDataItem< UShort_t > * > | fLeTdcs |
vector< const TDataItem< UShort_t > * > | fCfTdcs |
TGrCalibration | fCalib |
vector< const TDataItem< Float_t > * > | fEnergies |
vector< const TDataItem< Float_t > * > | fTimes |
TVector3 | fCoordinates |
Bool_t | fHit |
|
Default constructor, setting number of channels to 1 and using the supplied character string to set the detector name. By default, TGrDetector::SetCalibration() will use name to try and find a MySQL calibration table with a matching name.
Definition at line 24 of file TBgoDetector.cxx. |
|
Default destructor. Definition at line 36 of file TBgoDetector.cxx. |
|
Print method inherited from TDetector. This calls TGrCalibration::Print().
Reimplemented from TGrDetector. Definition at line 42 of file TBgoDetector.cxx. References TGrDetector::Print(). |
Here is the call graph for this function:
|
Set the data in a detector correctly by determing which channels in the data actually belong to the detector. This sets the ADCs, leading-edge TDCs and the constant-fraction TDCs. Each channel is tested by passing the relevant data to the relevant calibration e.g. the ADC data is passed to the ADC calibration.
Reimplemented from TGrDetector. Definition at line 54 of file TBgoDetector.cxx. References TGrCalibration::GetAdc(), TSubEvent::GetAdcs(), TGrCalibration::GetCfTdc(), TGrCalibration::GetLeTdc(), TSubEvent::GetTdcs(), and TCalibration::TestChannel(). |
Here is the call graph for this function:
|
Virtual method to rebuild the gamma-ray particle that have hit the detector from the energy and time data. This is implemented per detector class because, for example, a BGO will have only 1 ADC channel per particle hit, whereas an MCP detector may have 4 ADC channels per particle hit.
Reimplemented from TDetector. Definition at line 82 of file TBgoDetector.cxx. References TDetector::GetName(), THit::SetDetector(), THit::SetEnergy(), THit::SetPosition(), and THit::SetTime(). |
Here is the call graph for this function:
|
Set the centre position of the detector. The coordinates are used to return the appoximate hit position of the gamma-ray, so that its position can be found within a gas target for example.
Definition at line 107 of file TBgoDetector.cxx. |
|
This plotting method mirrors the inherited PlotEnergies. It has a seperate parameter to shift all the values off a bit, but is otherwise the exact same. Definition at line 119 of file TBgoDetector.cxx. References TGrCalibration::GetAdc(), and TCalibration::GetHistogramMap(). |
Here is the call graph for this function:
|
Clears the detector of all data. Note that this does not delete any of the vector data, just clears the pointers. Deleting the data is taken care of by TDragonEvent.
Reimplemented from TDetector. Definition at line 75 of file TGrDetector.cxx. References TDetector::Clear(), TGrDetector::fAdcs, TGrDetector::fCfTdcs, and TGrDetector::fLeTdcs. |
Here is the call graph for this function:
|
Prints just the vector data held in the class. Implements TDetector. Definition at line 102 of file TGrDetector.cxx. References TGrDetector::fAdcs, TGrDetector::fCfTdcs, TGrDetector::fLeTdcs, and TGrCalibration::Print(). |
Here is the call graph for this function:
|
Calibrates the data held in the vectors set by SetSignals(). This should be called before a call to FindHits() is called. Implements TDetector. Definition at line 135 of file TGrDetector.cxx. References TCalibration::Calibrate(), TGrDetector::fAdcs, TGrDetector::fCalib, TGrDetector::fCfTdcs, TGrDetector::fLeTdcs, TGrCalibration::GetAdc(), TGrCalibration::GetCfTdc(), and TGrCalibration::GetLeTdc(). |
Here is the call graph for this function:
|
Plots the calibrated ADC data (energies) in a histogram. The channel plotted is the histogram-mapped channel so that more than one detector can be plotted on one histogram.
Reimplemented from TDetector. Definition at line 146 of file TGrDetector.cxx. References TGrDetector::fCalib, TGrCalibration::GetAdc(), and TCalibration::GetHistogramMap(). |
Here is the call graph for this function:
|
Plots which ADC channels fired in the detector in histogram hist. A cut can be placed for the lower and upper bounds (inclusive) for the plotting.
Definition at line 171 of file TGrDetector.cxx. References TGrDetector::fCalib, TGrCalibration::GetAdc(), and TCalibration::GetHistogramMap(). |
Here is the call graph for this function:
|
Instructs the TGrCalibration to get its information from the database. If no name is given, simply the detector name is used. This method enables the calibration to be changed by just using a different table name. For example, for default: TBgoDetector *bgo = new TBgoDetector("BGO12", 1); bgo->SetCalibration(); bgo->Print(); TBgoDetector *bgo = new TBgoDetector("BGO12", 1); bgo->SetCalibration("BGO13"); bgo->Print();
Definition at line 57 of file TGrDetector.h. References TGrDetector::fCalib, TGrCalibration::FindCalibration(), and TDetector::GetName(). |
Here is the call graph for this function:
|
Set the database from where the calibration data is accessed. Just a wrapper to the correct TGrCalibration call.
Definition at line 80 of file TGrDetector.h. References TGrDetector::fCalib, and TGrCalibration::SetDatabase(). |
Here is the call graph for this function:
|
Get the detector name.
Definition at line 113 of file TDetector.h. References TDetector::fName. |
|
Plots the calibrated TDC signals (times) in a histogram. The channel plotted is the histogram-mapped channel so that more than one detector can be plotted on one histogram.
Reimplemented in THiDetector. Definition at line 144 of file TDetector.cxx. |
|
Plot energy versus time for a gamma-ray detector. The given time value can be an RF or TAC time for example. If there is more than one energy signal present the time is plotted against each.
Reimplemented in THiDetector, and TIcDetector. Definition at line 159 of file TDetector.cxx. |
|
Gets the maximum energy that was in the detector.
Definition at line 188 of file TDetector.cxx. References TDetector::fEnergies. |
|
Set the detector name. This should match the name of the calibration table in the SQL database, otherwise the calibration will not be found.
Definition at line 84 of file TDetector.h. References TDetector::fName. |
|
Set the number of channels of the detector.
Definition at line 94 of file TDetector.h. References TDetector::fChannels. |
|
Set the x,y,z position of the particle.
Definition at line 103 of file TDetector.h. References TDetector::fCoordinates. |
|
Get the number of detector channels.
Definition at line 121 of file TDetector.h. |
|
Get the coordinates of the detector.
Definition at line 130 of file TDetector.h. |
|
Get the energy signals belonging to this detector.
Definition at line 138 of file TDetector.h. |
|
Get the time signals belonging to this detector.
Definition at line 146 of file TDetector.h. |
|
Set the status of the fHit parameter.
Definition at line 154 of file TDetector.h. References TDetector::fHit. |
|
Get the hit status of the detector.
Definition at line 163 of file TDetector.h. |
|
Check to see if the name of the detector matches name.
Definition at line 171 of file TDetector.h. |
|
Data from the gamma-ray ADCs is stored in here. This is contained in a vector due to considerations of speed and ability to manipulate the data within the raw data array. Definition at line 40 of file TGrDetector.h. |
|
Data from the gamma-ray leading-edge TDCs is stored in here. This is contained in a vector due to considerations of speed and ability to manipulate the data within the raw data array. Definition at line 45 of file TGrDetector.h. |
|
Data from the gamma-ray constant-fraction TDCs is stored in here. This is contained in a vector due to considerations of speed and ability to manipulate the data within the raw data array. Definition at line 51 of file TGrDetector.h. |
|
The gamma-ray electronics calibration. Definition at line 54 of file TGrDetector.h. |
|
Calibrated data from the heavy-ion ADCs is stored in here i.e. this vector would be filled after a call to TDetector::Calibrate(). This data is then manipulated to build the correct energies for each particle that could have hit the detector. Definition at line 60 of file TDetector.h. |
|
Calibrated data from the heavy-ion TDCs is stored in here i.e. this vector would be filled after a call to TDetector::Calibrate(). This data is then manipulated to build the correct energies for each particle that could have hit the detector. Definition at line 67 of file TDetector.h. |
|
The detector coordinates. Definition at line 70 of file TDetector.h. |
|
Boolean to keep track of whether the detector has been hit. Definition at line 73 of file TDetector.h. |