~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/Utils/TOFCalibrationMap.hh

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
  virtual ~TOFPixelKey() {}
58
58
 
59
 
  bool operator==( TOFPixelKey key );
60
 
  bool operator!=( TOFPixelKey key );
 
59
  bool operator==( const TOFPixelKey& key ) const;
 
60
  bool operator!=( const TOFPixelKey& key ) const;
61
61
 
62
62
  friend ostream& operator<<( ostream& stream, TOFPixelKey key );
63
63
  friend istream& operator>>( istream& stream, TOFPixelKey &key ) throw(Exception);
141
141
  * \returns the value of the T0 correction for this channel and sets the number of the 
142
142
  * refference pixel. If no calibration for this channel the function returns NOCALIB (-99999).
143
143
  */
144
 
  double T0(TOFChannelKey key, int &r);
 
144
  double T0(TOFChannelKey key, int &r) const;
145
145
 
146
146
 /** Return the Trigger delay correction for the pixel coded by the key.
147
147
  * \param[in] key the pixel of the hit that gives the trigger.
148
148
  * \returns the value of the trigger delay correction. If no calibration for this pixel the 
149
149
  * function returns NOCALIB (-99999).
150
150
  */
151
 
  double TriggerT0(TOFPixelKey key);
 
151
  double TriggerT0(TOFPixelKey key) const;
152
152
 
153
153
 /** Calculate the TimeWalk correction for the channel coded by the key and for given adc value.
154
154
  * \param[in] key the channel of the measurement.
156
156
  * \returns the value of the time-walk correction. If no calibration for this channel the function
157
157
  * returns NOCALIB (-99999).
158
158
  */
159
 
  double TW(TOFChannelKey key, int adc );
 
159
  double TW(TOFChannelKey key, int adc ) const;
160
160
 
161
161
 /** Calculate the combined correction for the channel coded by Pkey, trigger 
162
162
  * pixel coded by the Tkey and for given adc value.
164
164
  * \param[in] Tkey the pixel of the hit that gives the trigger.
165
165
  * \param[in] adc the measured value of the amplitude of the signal.
166
166
  */
167
 
  double dT(TOFChannelKey Pkey, TOFPixelKey Tkey, int adc);
 
167
  double dT(TOFChannelKey Pkey, TOFPixelKey Tkey, int adc) const;
168
168
 
169
169
 /** Return the data member Name.
170
170
  */
210
210
 
211
211
 /** Find the position of the PMT key in the data member _Pkey.
212
212
  */
213
 
  int FindTOFChannelKey(TOFChannelKey key);
 
213
  int FindTOFChannelKey(TOFChannelKey key) const;
214
214
 
215
215
 /** Find the position of the trigger key in the data member _Tkey.
216
216
  */
217
 
  int FindTOFPixelKey(TOFPixelKey key);
 
217
  int FindTOFPixelKey(TOFPixelKey key) const;
218
218
 
219
219
 /** This vector holds one TOFChannelKey for each channel of the detector.
220
220
  */