Skip to content

Commit 3ef9196

Browse files
committed
Add getter for squared time error
1 parent 11e4550 commit 3ef9196

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

DataFormats/common/include/CommonDataFormat/TimeStamp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class TimeStampWithError : public TimeStamp<T>
4444
GPUdDefault() TimeStampWithError() = default;
4545
GPUd() TimeStampWithError(T t, E te) : TimeStamp<T>(t), mTimeStampError(te) {}
4646
GPUdi() E getTimeStampError() const { return mTimeStampError; }
47+
GPUdi() E getTimeStampError2() const { return mTimeStampError * mTimeStampError; }
4748
GPUdi() void setTimeStampError(E te) { mTimeStampError = te; }
4849

4950
private:

0 commit comments

Comments
 (0)