28 int adc0{}, adc1{}, adc2{}, adc3{}, adc4{}, adc5{};
29 int tdc0{}, tdc1{}, tdc2{}, tdc3{}, tdc4{}, tdc5{};
32inline void clearDigi(
Digi& c) {
54inline void clearHit(
Hit& c) {
61inline void cpyHit(
Hit& c1,
Hit& c2) {
76inline void clearClus(
Cluster& c) {
82inline void calcCent(
Cluster& c) {
84 if (c.Seed.Amp <= 0 || c.Sec.Amp <= 0) {
89 if (c.Seed.bID < 0 || c.Sec.bID < 0) {
97 ((
float)(c.Seed.Amp * c.Seed.bID + c.Sec.Amp * c.Sec.bID)) /
98 ((float)(c.Seed.Amp + c.Sec.Amp)));
102 cpyHit(c1.Seed, c2.Seed);
103 cpyHit(c1.Sec, c2.Sec);
113inline void clearTrack(
Track& c) {
125 float one = (float)c.Pad1.Cent;
126 float two = (float)c.Pad2.Cent;
127 float three = (float)c.Pad3.Cent;
128 float mean = (one + two + three) / 3.0;
133inline void calcResid(
Track& c) {
137 float one = (float)c.Pad1.Cent;
138 float two = (float)c.Pad2.Cent;
139 float three = (float)c.Pad3.Cent;
140 float mean = (one + two + three) / 3.0;
141 c.resid = (
ap_int<12>)((
int)(((one - mean) * (one - mean) +
142 (two - mean) * (two - mean) +
143 (three - mean) * (three - mean)) /
148 cpyCluster(c1.Pad1, c2.Pad1);
149 cpyCluster(c1.Pad2, c2.Pad2);
150 cpyCluster(c1.Pad3, c2.Pad3);
Sign Arbitrary Precision Type.