28 |
/** |
/** |
29 |
* \brief Class which contains the PMT data |
* \brief Class which contains the PMT data |
30 |
* |
* |
31 |
|
* If there is a valid ADC or a TDC value (value<4095) for a PMT, both ADC and TDC data |
32 |
|
* are stored in the PMT class. |
33 |
|
* Look in the ToFLevel2Ex.cxx example in the repository how to read the PMT class. |
34 |
*/ |
*/ |
35 |
class ToFPMT : public TObject { |
class ToFPMT : public TObject { |
36 |
|
|
38 |
|
|
39 |
public: |
public: |
40 |
Int_t pmt_id; ///<the identification number of the PMT from 0 to 47 |
Int_t pmt_id; ///<the identification number of the PMT from 0 to 47 |
41 |
Float_t adc; ///<raw ADC values adc[4,12] |
Float_t adc; ///<raw ADC value for this PMT |
42 |
Float_t tdc_tw; ///<time-walk corrected TDC values tdc_tw[4,12] |
Float_t tdc_tw; ///<time-walk corrected TDC value for this PMT |
43 |
// |
// |
44 |
ToFPMT(); |
ToFPMT(); |
45 |
ToFPMT(const ToFPMT&); |
ToFPMT(const ToFPMT&); |
54 |
|
|
55 |
|
|
56 |
/** |
/** |
57 |
* \brief Class which contains the tracker realated variables |
* \brief Class which contains the tracker related variables |
58 |
* |
* |
59 |
|
* We can use the ToF standalone to find hitted paddles, calculate beta, etc.. |
60 |
|
* These results are then stored with the "trkseqno" = -1. |
61 |
|
* If we use the track from the tracker, then the penetration points in the |
62 |
|
* scintillators are calculated, which defines the hitted paddles. For these paddles |
63 |
|
* we calculate then all the output. |
64 |
|
* Note: The artificial ADC values are stored as dEdx in the output, the dEdx will be |
65 |
|
* by definition = 1. However, the artificial TDC values are just used internally |
66 |
|
* and not stored in the output. But one can see in both cases which PMT has artificial |
67 |
|
* values using "adcflag" and "tdcflag". |
68 |
|
* Look in the ToFLevel2Ex.cxx example in the repository how to read the tracker related |
69 |
|
* variables. |
70 |
*/ |
*/ |
71 |
class ToFTrkVar : public TObject { |
class ToFTrkVar : public TObject { |
72 |
|
|
76 |
// |
// |
77 |
Int_t trkseqno; ///< tracker sequ. number: -1=ToF standalone, 0=first Tracker track, ... |
Int_t trkseqno; ///< tracker sequ. number: -1=ToF standalone, 0=first Tracker track, ... |
78 |
// |
// |
79 |
Int_t npmttdc; ///<number of TDC used to evaluate beta |
Int_t npmttdc; ///<number of the TDC measurements used to evaluate beta |
80 |
TArrayI pmttdc; ///<contains the PMT ID for the tdc used to evaluate beta |
TArrayI pmttdc; ///<contains the ID (0..47) for the PMT used to evaluate beta |
81 |
TArrayI tdcflag; ///<array flagging the artificial TDCs, "0" if normal TDC value |
TArrayI tdcflag; ///<flag for artificial TDC, "0" if normal TDC value |
82 |
Float_t beta[13]; ///<beta, 12 measurements for the 12 combinations, beta[13] is weighted mean |
|
83 |
// |
/** |
84 |
Int_t npmtadc; ///<number of ADCs used for dEdx evaluation |
* \brief beta, 12 measurements for the 12 combinations, beta[13] is weighted mean |
85 |
TArrayI pmtadc; ///<contains the PMT ID for the adc used in evaluate dedx=adc_c |
* |
86 |
TArrayI adcflag; ///<array flagging the artificial ADCs, "0" if normal ADC value |
* The 12 measurements are S11-S31, S11-S32, S12-S31, S12-S32, and then analogue for |
87 |
TArrayF dedx; ///<energy loss in mip |
* S2-S3 and S1-S2. |
88 |
|
* In the moment all measurements are taken and the weighted mean is calculated. |
89 |
|
* Note that the weights are just simple overall results for S1-S3, S2-S3, and S1-S2. |
90 |
|
* Artificial measurments are not treated correct, (since there is only one real |
91 |
|
* measurment the weight should be different then for two meassurments). |
92 |
|
* The beta calculation will be improved in the next release. |
93 |
|
*/ |
94 |
|
Float_t beta[13]; |
95 |
|
// |
96 |
|
Int_t npmtadc; ///<number of the ADC measurements used for dEdx evaluation |
97 |
|
TArrayI pmtadc; ///<contains the ID (0..47) for the PMT used to evaluate dEdx |
98 |
|
TArrayI adcflag; ///<flag for artificial ADCs, "0" if normal ADC value |
99 |
|
TArrayF dedx; ///<energy loss for this PMT in mip |
100 |
// |
// |
101 |
Float_t xtofpos[3]; ///<x-measurement using the TDC values and the calibration |
Float_t xtofpos[3]; ///<x-measurement using the TDC values and the calibration from S12, S21, S32 |
102 |
Float_t ytofpos[3]; ///<x-measurement using the TDC values and the calibration |
Float_t ytofpos[3]; ///<x-measurement using the TDC values and the calibration from S11, S22, S31 |
103 |
|
|
104 |
// |
// |
105 |
ToFTrkVar(); |
ToFTrkVar(); |
157 |
ToFLevel2* GetToFLevel2(){return this;}; |
ToFLevel2* GetToFLevel2(){return this;}; |
158 |
|
|
159 |
/** |
/** |
160 |
* Method to get the z-position of the 6 TOF layers from th plane ID |
* Method to get the z-position of the 6 TOF layers from the plane ID |
161 |
* @param plane_id Plane ID (11 12 21 22 31 32) |
* @param plane_id Plane ID (11 12 21 22 31 32) |
162 |
*/ |
*/ |
163 |
Float_t GetZTOF(Int_t plane_id){ |
Float_t GetZTOF(Int_t plane_id){ |