#include <RawDataUtil.h>
Definition at line 5 of file RawDataUtil.h.
◆ CgemCharge()
static double RawDataUtil::CgemCharge |
( |
int | chargeChannel | ) |
|
|
inlinestatic |
Definition at line 17 of file RawDataUtil.h.
17{ return ((double)chargeChannel)*CGEM_CHARGE_FACTOR; }
◆ CgemChargeChannel()
static int RawDataUtil::CgemChargeChannel |
( |
double | charge | ) |
|
|
inlinestatic |
◆ CgemTime()
static double RawDataUtil::CgemTime |
( |
int | timeChannel | ) |
|
|
inlinestatic |
Definition at line 14 of file RawDataUtil.h.
14{ return ((double)timeChannel)*CGEM_TIME_FACTOR; }
◆ CgemTimeChannel()
static int RawDataUtil::CgemTimeChannel |
( |
double | time | ) |
|
|
inlinestatic |
◆ EmcCharge()
static double RawDataUtil::EmcCharge |
( |
int | measure, |
|
|
int | chargeChannel ) |
|
inlinestatic |
Definition at line 23 of file RawDataUtil.h.
24 {
25 switch(measure) {
26 case 3:
27 return ((double)chargeChannel)*EMC_CHARGE_HIGH_MEASURE/EMC_CHARGE_FACTOR;
28 break;
29 case 2:
30 return ((double)chargeChannel)*EMC_CHARGE_HIGH_MEASURE/EMC_CHARGE_FACTOR;
31 break;
32 case 1:
33 return ((double)chargeChannel)*EMC_CHARGE_MID_MEASURE/EMC_CHARGE_FACTOR;
34 break;
35 case 0:
36 return ((double)chargeChannel)*EMC_CHARGE_LOW_MEASURE/EMC_CHARGE_FACTOR;
37 break;
38 default:
39 std::cout<<"Wrong measure of EMC charge channel!"<<std::endl;
40 }
41 }
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 DotsHelixFitter::calculateNewHelix(), DotsHelixFitter::calculateRoughDD(), MdcTrkRecon::dumpDigi(), EsTimeAlg::execute(), TrkReco::execute(), MdcTrkRecon::fillEvent(), KalFitTrack::getDriftTime(), MdcRawDataProvider::getMdcDigiVec(), HoughHit::HoughHit(), MdcHit::MdcHit(), MdcPrintSvc::printDigi(), MdcxHit::process(), MdcROOTGeo::SetHits(), and DotsHelixFitter::updateDcDigiInfo().
◆ 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 78 of file RawDataUtil.h.
79 {
80 unsigned int ADC = (unsigned) (charge/TOF_CHARGE_FACTOR);
81 unsigned int TDC = (unsigned) (
time/TOF_TIME_FACTOR);
82 if(ADC>=8192)
83 {
84 ADC = (ADC | 0x080000);
85
86 }
87 ADC = ( (TDC & 0x07e000) | ADC) ;
88
89
90
91
92
93
94 return ADC;
95 }
◆ 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: