Go to the source code of this file.
void getLinearizedADC |
( |
const HcalQIEShape & |
shape, |
|
|
const HcalQIECoder * |
coder, |
|
|
int |
bins, |
|
|
int |
capid, |
|
|
float & |
lo, |
|
|
float & |
hi |
|
) |
| |
Definition at line 4 of file HcalAlgoUtils.cc.
References HcalQIECoder::charge().
10 float low = coder->
charge(shape,0,capid);
11 float high = coder->
charge(shape,
bins-1,capid);
13 low -= step/2.0; high += step/2.0;
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
float maxDiff |
( |
float |
one, |
|
|
float |
two, |
|
|
float |
three, |
|
|
float |
four |
|
) |
| |
Definition at line 18 of file HcalAlgoUtils.cc.
References hpstanc_transforms::max, and min().
19 float max=-1000;
float min = 1000;
22 if(two>max) max = two;
23 if(two<min) min = two;
24 if(three>max) max = three;
25 if(three<min) min = three;
26 if(four>max) max = four;
27 if(four<min) min = four;