Skip to content

Commit df36e4c

Browse files
committed
add comments
1 parent 8985fad commit df36e4c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

  • reconstruction/alert/src/main/java/org/jlab/rec/ahdc/Hit

reconstruction/alert/src/main/java/org/jlab/rec/ahdc/Hit/Hit.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ public class Hit implements Comparable<Hit>, KFHit {
3535
private int trackId;
3636

3737
//updated constructor with ADC
38+
/**
39+
*
40+
* @param _Id is AHDC::adc row id + 1
41+
* @param _Super_layer super layer id
42+
* @param _Layer layer id
43+
* @param _Wire wire id
44+
* @param _Doca distance from the timing information using the time2distance, matches {@link Hit.#time}
45+
* @param _ADC raw ADC
46+
* @param _Time calibrated time
47+
*/
3848
public Hit(int _Id, int _Super_layer, int _Layer, int _Wire, double _Doca, double _ADC, double _Time) {
3949
this.id = _Id;
4050
this.superLayerId = _Super_layer;
@@ -139,6 +149,7 @@ public double getY() {
139149

140150
public double getPhi() {return phi;}
141151

152+
/** Get calibrated ADC */
142153
public double getADC() {return adc;}
143154

144155
public double getResidual() {
@@ -149,18 +160,22 @@ public void setResidual(double resid) {
149160
this.residual = resid;
150161
}
151162

163+
/** Set calibrated ToT */
152164
public void setToT(double _tot) {
153165
this.tot = _tot;
154166
}
155167

168+
/** Get calibrated ToT */
156169
public double getToT() {
157170
return tot;
158171
}
159172

173+
/** Set calibrated ADC */
160174
public void setADC(double _adc) {
161175
this.adc = _adc;
162176
}
163177

178+
/** Get raw ADC */
164179
public double getRawADC() {
165180
return raw_adc;
166181
}

0 commit comments

Comments
 (0)