#include <RawDataUtil.h>
Definition at line 5 of file RawDataUtil.h.
◆ EmcCharge()
static double RawDataUtil::EmcCharge |
( |
int |
measure, |
|
|
int |
chargeChannel |
|
) |
| |
|
inlinestatic |
Definition at line 17 of file 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 }
Referenced by EmcRawDataProvider::doCalib(), EFGlobalEnergy::execute(), EmcRec::execute(), EmcDigi::operator+=(), and EmcROOTGeo::SetHits().
◆ EmcChargeChannel()
static int RawDataUtil::EmcChargeChannel |
( |
double |
charge | ) |
|
|
inlinestatic |
◆ EmcChargeMeasure()
static int RawDataUtil::EmcChargeMeasure |
( |
double |
charge | ) |
|
|
inlinestatic |
◆ EmcTime()
static double RawDataUtil::EmcTime |
( |
int |
timeChannel | ) |
|
|
inlinestatic |
◆ EmcTimeChannel()
static int RawDataUtil::EmcTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
◆ MdcCharge()
static double RawDataUtil::MdcCharge |
( |
int |
chargeChannel | ) |
|
|
inlinestatic |
◆ MdcChargeChannel()
static int RawDataUtil::MdcChargeChannel |
( |
double |
charge | ) |
|
|
inlinestatic |
◆ MdcTime()
static double RawDataUtil::MdcTime |
( |
int |
timeChannel | ) |
|
|
inlinestatic |
Definition at line 8 of file RawDataUtil.h.
8{ return ((double)timeChannel)*MDC_TIME_FACTOR; }
Referenced by MdcTrkRecon::dumpDigi(), EsTimeAlg::execute(), TrkReco::execute(), MdcTrkRecon::fillEvent(), KalFitTrack::getDriftTime(), MdcRawDataProvider::getMdcDigiVec(), HoughHit::HoughHit(), MdcHit::MdcHit(), MdcPrintSvc::printDigi(), MdcxHit::process(), and MdcROOTGeo::SetHits().
◆ MdcTimeChannel()
static int RawDataUtil::MdcTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
◆ TofCharge()
static double RawDataUtil::TofCharge |
( |
unsigned int |
chargeChannel | ) |
|
|
inlinestatic |
◆ TofChargeChannel()
static unsigned int RawDataUtil::TofChargeChannel |
( |
double |
charge, |
|
|
double |
time |
|
) |
| |
|
inlinestatic |
Definition at line 72 of file 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()
static double RawDataUtil::TofTime |
( |
unsigned int |
timeChannel | ) |
|
|
inlinestatic |
◆ TofTimeChannel()
static unsigned int RawDataUtil::TofTimeChannel |
( |
double |
time | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following files: