#include <RawDataUtil.h>
◆ EmcCharge() [1/2]
static double RawDataUtil::EmcCharge |
( |
int |
measure, |
|
|
int |
chargeChannel |
|
) |
| |
|
inlinestatic |
◆ EmcCharge() [2/2]
static double RawDataUtil::EmcCharge |
( |
int |
measure, |
|
|
int |
chargeChannel |
|
) |
| |
|
inlinestatic |
Definition at line 17 of file InstallArea/include/RawEvent/RawEvent/RawDataUtil.h.
18 {
19 switch(measure) {
20 case 3:
21 return ((double)chargeChannel)*EMC_CHARGE_HIGH_MEASURE/EMC_CHARGE_FACTOR;
22 break;
23 case 2:
24 return ((double)chargeChannel)*EMC_CHARGE_HIGH_MEASURE/EMC_CHARGE_FACTOR;
25 break;
26 case 1:
27 return ((double)chargeChannel)*EMC_CHARGE_MID_MEASURE/EMC_CHARGE_FACTOR;
28 break;
29 case 0:
30 return ((double)chargeChannel)*EMC_CHARGE_LOW_MEASURE/EMC_CHARGE_FACTOR;
31 break;
32 default:
33 std::cout<<"Wrong measure of EMC charge channel!"<<std::endl;
34 }
35 }
◆ EmcChargeChannel() [1/2]
static int RawDataUtil::EmcChargeChannel |
( |
double |
charge | ) |
|
|
inlinestatic |
◆ EmcChargeChannel() [2/2]
static int RawDataUtil::EmcChargeChannel |
( |
double |
charge | ) |
|
|
inlinestatic |
Definition at line 37 of file InstallArea/include/RawEvent/RawEvent/RawDataUtil.h.
38 {
39 if(charge>EMC_CHARGE_HIGH_MEASURE) {
40 return (int)(EMC_CHARGE_FACTOR-1);
41 } else if(charge>EMC_CHARGE_MID_MEASURE) {
42 return (int)(charge/(EMC_CHARGE_HIGH_MEASURE/EMC_CHARGE_FACTOR));
43 } else if(charge>EMC_CHARGE_LOW_MEASURE) {
44 return (int)(charge/(EMC_CHARGE_MID_MEASURE/EMC_CHARGE_FACTOR));
45 } else {
46 return (int)(charge/(EMC_CHARGE_LOW_MEASURE/EMC_CHARGE_FACTOR));
47 }
48 }
◆ EmcChargeMeasure() [1/2]
static int RawDataUtil::EmcChargeMeasure |
( |
double |
charge | ) |
|
|
inlinestatic |
◆ EmcChargeMeasure() [2/2]
static int RawDataUtil::EmcChargeMeasure |
( |
double |
charge | ) |
|
|
inlinestatic |
Definition at line 50 of file InstallArea/include/RawEvent/RawEvent/RawDataUtil.h.
51 {
52 if(charge>EMC_CHARGE_HIGH_MEASURE) {
53 return 3;
54 } else if(charge>EMC_CHARGE_MID_MEASURE) {
55 return 2;
56 } else if(charge>EMC_CHARGE_LOW_MEASURE) {
57 return 1;
58 } else {
59 return 0;
60 }
61 }
◆ EmcTime() [1/2]
static double RawDataUtil::EmcTime |
( |
int |
timeChannel | ) |
|
|
inlinestatic |
◆ EmcTime() [2/2]
static double RawDataUtil::EmcTime |
( |
int |
timeChannel | ) |
|
|
inlinestatic |
◆ EmcTimeChannel() [1/2]
static int RawDataUtil::EmcTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
◆ EmcTimeChannel() [2/2]
static int RawDataUtil::EmcTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
◆ MdcCharge() [1/2]
static double RawDataUtil::MdcCharge |
( |
int |
chargeChannel | ) |
|
|
inlinestatic |
◆ MdcCharge() [2/2]
static double RawDataUtil::MdcCharge |
( |
int |
chargeChannel | ) |
|
|
inlinestatic |
◆ MdcChargeChannel() [1/2]
static int RawDataUtil::MdcChargeChannel |
( |
double |
charge | ) |
|
|
inlinestatic |
◆ MdcChargeChannel() [2/2]
static int RawDataUtil::MdcChargeChannel |
( |
double |
charge | ) |
|
|
inlinestatic |
◆ MdcTime() [1/2]
static double RawDataUtil::MdcTime |
( |
int |
timeChannel | ) |
|
|
inlinestatic |
◆ MdcTime() [2/2]
static double RawDataUtil::MdcTime |
( |
int |
timeChannel | ) |
|
|
inlinestatic |
◆ MdcTimeChannel() [1/2]
static int RawDataUtil::MdcTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
◆ MdcTimeChannel() [2/2]
static int RawDataUtil::MdcTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
◆ TofCharge() [1/2]
static double RawDataUtil::TofCharge |
( |
unsigned int |
chargeChannel | ) |
|
|
inlinestatic |
◆ TofCharge() [2/2]
static double RawDataUtil::TofCharge |
( |
unsigned int |
chargeChannel | ) |
|
|
inlinestatic |
◆ TofChargeChannel() [1/2]
static unsigned int RawDataUtil::TofChargeChannel |
( |
double |
charge, |
|
|
double |
time |
|
) |
| |
|
inlinestatic |
Definition at line 72 of file Event/RawEvent/RawEvent-00-03-19/RawEvent/RawDataUtil.h.
73 {
74 unsigned int ADC = (unsigned) (charge/TOF_CHARGE_FACTOR);
75 unsigned int TDC = (unsigned) (
time/TOF_TIME_FACTOR);
76 if(ADC>=8192)
77 {
78 ADC = (ADC | 0x080000);
79
80 }
81 ADC = ( (TDC & 0x07e000) | ADC) ;
82
83
84
85
86
87
88 return ADC;
89 }
◆ TofChargeChannel() [2/2]
static unsigned int RawDataUtil::TofChargeChannel |
( |
double |
charge, |
|
|
double |
time |
|
) |
| |
|
inlinestatic |
Definition at line 72 of file InstallArea/include/RawEvent/RawEvent/RawDataUtil.h.
73 {
74 unsigned int ADC = (unsigned) (charge/TOF_CHARGE_FACTOR);
75 unsigned int TDC = (unsigned) (
time/TOF_TIME_FACTOR);
76 if(ADC>=8192)
77 {
78 ADC = (ADC | 0x080000);
79
80 }
81 ADC = ( (TDC & 0x07e000) | ADC) ;
82
83
84
85
86
87
88 return ADC;
89 }
◆ TofTime() [1/2]
static double RawDataUtil::TofTime |
( |
unsigned int |
timeChannel | ) |
|
|
inlinestatic |
◆ TofTime() [2/2]
static double RawDataUtil::TofTime |
( |
unsigned int |
timeChannel | ) |
|
|
inlinestatic |
◆ TofTimeChannel() [1/2]
static unsigned int RawDataUtil::TofTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
◆ TofTimeChannel() [2/2]
static unsigned int RawDataUtil::TofTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files: