#include <TDetector.h>
Inheritance diagram for TDetector:
This class is the detector base-class. This contains most of the functionality that is used by the other detector classes.
Definition at line 25 of file TDetector.h.
Public Member Functions | |
TDetector (const Char_t *="", UInt_t=1) | |
TDetector (const TDetector &) | |
virtual | ~TDetector () |
TDetector & | operator= (const TDetector &) |
virtual void | Clear (const Char_t *="") |
virtual void | Print (const Char_t *="") const |
virtual const Char_t * | GetName () const |
virtual void | PrintData () const =0 |
virtual void | Calibrate ()=0 |
virtual Bool_t | PlotEnergies (TH2F *=0, const TCutG *=0, Bool_t=1) 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 |
virtual void | FindHits (vector< THit > *) 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< Float_t > * > | fEnergies |
vector< const TDataItem< Float_t > * > | fTimes |
TVector3 | fCoordinates |
Bool_t | fHit |
Private Attributes | |
UInt_t | fChannels |
string | fName |
|
Default constructor, setting the number of channels and using the supplied character string to set the detector name.
Definition at line 21 of file TDetector.cxx. |
|
Copy constructor. Need this because we have pointers in the member list.
Definition at line 33 of file TDetector.cxx. References fChannels, fCoordinates, fEnergies, fHit, fName, and fTimes. |
|
Default destructor. Definition at line 51 of file TDetector.cxx. References Clear(). |
Here is the call graph for this function:
|
Assignment operator overload. This is needed as some of the DragonRoot classes deal with pointers.
Definition at line 58 of file TDetector.cxx. References Clear(), fChannels, fCoordinates, fEnergies, fHit, fName, and fTimes. |
Here is the call graph for this function:
|
Clear all the data held in this class.
Reimplemented in TGrDetector, and THiDetector. Definition at line 81 of file TDetector.cxx. |
|
Print data held in this class.
Reimplemented in TBgoDetector, TDsssdDetector, TGeDetector, TGrDetector, THiDetector, TIcDetector, TMcpDetector, TNaiDetector, and TSbDetector. Definition at line 97 of file TDetector.cxx. References fCoordinates, and fName. |
|
Get the detector name.
Definition at line 113 of file TDetector.h. References fName. |
|
Virtual method to print all the data held within the detector class members'. Implemented in TGrDetector, and THiDetector. Definition at line 113 of file TDetector.cxx. |
|
Virtual method to calibrate the detector signals properly. Usually calls to the correct calibrations will be made using TCalibration::Calibrate(). Implemented in TGrDetector, and THiDetector. Definition at line 120 of file TDetector.cxx. |
|
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 in TGrDetector, and THiDetector. Definition at line 129 of file TDetector.cxx. |
|
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. |
|
Virtual method to rebuild the particles 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 in TBgoDetector, TDsssdDetector, TGeDetector, TIcDetector, TMcpDetector, TNaiDetector, and TSbDetector. Definition at line 177 of file TDetector.cxx. |
|
Gets the maximum energy that was in the detector.
Definition at line 188 of file TDetector.cxx. References 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 fName. |
|
Set the number of channels of the detector.
Definition at line 94 of file TDetector.h. References fChannels. |
|
Set the x,y,z position of the particle.
Definition at line 103 of file TDetector.h. References 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 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. |
|
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. |
|
The number of detector channels. Definition at line 78 of file TDetector.h. |
|
The detector name. Definition at line 81 of file TDetector.h. |