Public Member Functions | Private Attributes

TTrbRawHit Class Reference

#include <TTrbHit.h>

Public Member Functions

 TTrbRawHit ()
 Dummy constructor.
 TTrbRawHit (UShort_t TDC, UShort_t Channel, UChar_t EdgeType, UInt_t EdgeEpoch, UShort_t EdgeCoarseTime, UShort_t EdgeFineTime)
 Clever constructor for only leading/trailing edge with corrected values clearing.
 TTrbRawHit (UShort_t TDC, UShort_t Channel, UChar_t EdgeType, UInt_t LeadingEpoch, UShort_t LeadingCoarseTime, UShort_t LeadingFineTime, UInt_t TrailingEpoch, UShort_t TrailingCoarseTime, UShort_t TrailingFineTime)
 Clever constructor for both leading & trailing edges with corrected values clearing.
UShort_t GetTDC ()
 Getter for the TDC index.
UShort_t GetChannel ()
 Getter for the channel index.
UChar_t GetEdgeType ()
 Getter for the edge type.
UInt_t GetLEpoch ()
 Getters for data.
UShort_t GetLCTime ()
UShort_t GetLFTime ()
UInt_t GetTEpoch ()
UShort_t GetTCTime ()
UShort_t GetTFTime ()
Double_t GetLeadingTimeCorr ()
 Getters for the corrected times.
Double_t GetTrailingTimeCorr ()
void SetLeadingTimeCorr (Double_t LFTimeCalibrCorr)
 Setters for the corrected times.
void SetTrailingTimeCorr (Double_t TFTimeCalibrCorr)
bool IsLeading () const
 return true if leading edge exists
bool IsTrailing () const
 return true if trailing edge exists

Private Attributes

UShort_t iTDC
 Indices.
UShort_t iChannel
UChar_t fEdgeType
UInt_t fLeadingEpoch
 Data.
UShort_t fLeadingCoarseTime
UShort_t fLeadingFineTime
UInt_t fTrailingEpoch
UShort_t fTrailingCoarseTime
UShort_t fTrailingFineTime
Double_t fLeadingFineTimeCalibCorr
 Corrected times.
Double_t fTrailingFineTimeCalibCorr

Detailed Description

Definition at line 8 of file TTrbHit.h.


Constructor & Destructor Documentation

TTrbRawHit::TTrbRawHit (  )  [inline]

Dummy constructor.

Definition at line 12 of file TTrbHit.h.

References fLeadingFineTimeCalibCorr, and fTrailingFineTimeCalibCorr.

TTrbRawHit::TTrbRawHit ( UShort_t  TDC,
UShort_t  Channel,
UChar_t  EdgeType,
UInt_t  EdgeEpoch,
UShort_t  EdgeCoarseTime,
UShort_t  EdgeFineTime 
)

Clever constructor for only leading/trailing edge with corrected values clearing.

trailing

leading

Definition at line 7 of file TTrbHit.cxx.

References fLeadingCoarseTime, fLeadingEpoch, fLeadingFineTime, fLeadingFineTimeCalibCorr, fTrailingCoarseTime, fTrailingEpoch, fTrailingFineTime, and fTrailingFineTimeCalibCorr.

TTrbRawHit::TTrbRawHit ( UShort_t  TDC,
UShort_t  Channel,
UChar_t  EdgeType,
UInt_t  LeadingEpoch,
UShort_t  LeadingCoarseTime,
UShort_t  LeadingFineTime,
UInt_t  TrailingEpoch,
UShort_t  TrailingCoarseTime,
UShort_t  TrailingFineTime 
)

Clever constructor for both leading & trailing edges with corrected values clearing.

In fact switch is redundant. Maybe should leave only the data initialisation

Definition at line 36 of file TTrbHit.cxx.

References fLeadingCoarseTime, fLeadingEpoch, fLeadingFineTime, fLeadingFineTimeCalibCorr, fTrailingCoarseTime, fTrailingEpoch, fTrailingFineTime, and fTrailingFineTimeCalibCorr.


Member Function Documentation

UShort_t TTrbRawHit::GetChannel (  )  [inline]

Getter for the channel index.

Definition at line 35 of file TTrbHit.h.

References iChannel.

Referenced by TTrbProc::EvaluateTDCV3Data().

UChar_t TTrbRawHit::GetEdgeType (  )  [inline]

Getter for the edge type.

Definition at line 39 of file TTrbHit.h.

References fEdgeType.

UShort_t TTrbRawHit::GetLCTime (  )  [inline]

Definition at line 46 of file TTrbHit.h.

References fLeadingCoarseTime.

Referenced by TTrbProc::EvaluateTDCV3Data().

Double_t TTrbRawHit::GetLeadingTimeCorr (  )  [inline]

Getters for the corrected times.

Definition at line 62 of file TTrbHit.h.

References fLeadingFineTimeCalibCorr.

UInt_t TTrbRawHit::GetLEpoch (  )  [inline]

Getters for data.

Definition at line 43 of file TTrbHit.h.

References fLeadingEpoch.

Referenced by TTrbProc::EvaluateTDCV3Data().

UShort_t TTrbRawHit::GetLFTime (  )  [inline]

Definition at line 49 of file TTrbHit.h.

References fLeadingFineTime.

Referenced by TTrbProc::EvaluateTDCV3Data().

UShort_t TTrbRawHit::GetTCTime (  )  [inline]

Definition at line 55 of file TTrbHit.h.

References fTrailingCoarseTime.

Referenced by TTrbProc::EvaluateTDCV3Data().

UShort_t TTrbRawHit::GetTDC (  )  [inline]

Getter for the TDC index.

Definition at line 31 of file TTrbHit.h.

References iTDC.

Referenced by TTrbProc::EvaluateTDCV3Data().

UInt_t TTrbRawHit::GetTEpoch (  )  [inline]

Definition at line 52 of file TTrbHit.h.

References fTrailingEpoch.

Referenced by TTrbProc::EvaluateTDCV3Data().

UShort_t TTrbRawHit::GetTFTime (  )  [inline]

Definition at line 58 of file TTrbHit.h.

References fTrailingFineTime.

Referenced by TTrbProc::EvaluateTDCV3Data().

Double_t TTrbRawHit::GetTrailingTimeCorr (  )  [inline]

Definition at line 65 of file TTrbHit.h.

References fTrailingFineTimeCalibCorr.

bool TTrbRawHit::IsLeading (  )  const [inline]

return true if leading edge exists

Definition at line 76 of file TTrbHit.h.

References fEdgeType.

Referenced by TTrbProc::EvaluateTDCV3Data().

bool TTrbRawHit::IsTrailing (  )  const [inline]

return true if trailing edge exists

Definition at line 79 of file TTrbHit.h.

References fEdgeType.

Referenced by TTrbProc::EvaluateTDCV3Data().

void TTrbRawHit::SetLeadingTimeCorr ( Double_t  LFTimeCalibrCorr  )  [inline]

Setters for the corrected times.

Definition at line 69 of file TTrbHit.h.

References fLeadingFineTimeCalibCorr.

Referenced by TTrbProc::EvaluateTDCV3Data().

void TTrbRawHit::SetTrailingTimeCorr ( Double_t  TFTimeCalibrCorr  )  [inline]

Definition at line 72 of file TTrbHit.h.

References fTrailingFineTimeCalibCorr.

Referenced by TTrbProc::EvaluateTDCV3Data().


Field Documentation

UChar_t TTrbRawHit::fEdgeType [private]

Flag: 3 - not initialized 2 - both leading and trailing 1 - only leading 0 - only trailing Done so unusual to be the same 0/1 as 0/1 of 'isrising' in TTrbProc::ProcessTDCV3

Definition at line 93 of file TTrbHit.h.

Referenced by GetEdgeType(), IsLeading(), and IsTrailing().

UShort_t TTrbRawHit::fLeadingCoarseTime [private]

Definition at line 97 of file TTrbHit.h.

Referenced by GetLCTime(), and TTrbRawHit().

UInt_t TTrbRawHit::fLeadingEpoch [private]

Data.

Definition at line 96 of file TTrbHit.h.

Referenced by GetLEpoch(), and TTrbRawHit().

UShort_t TTrbRawHit::fLeadingFineTime [private]

Definition at line 98 of file TTrbHit.h.

Referenced by GetLFTime(), and TTrbRawHit().

Corrected times.

Definition at line 104 of file TTrbHit.h.

Referenced by GetLeadingTimeCorr(), SetLeadingTimeCorr(), and TTrbRawHit().

UShort_t TTrbRawHit::fTrailingCoarseTime [private]

Definition at line 100 of file TTrbHit.h.

Referenced by GetTCTime(), and TTrbRawHit().

UInt_t TTrbRawHit::fTrailingEpoch [private]

Definition at line 99 of file TTrbHit.h.

Referenced by GetTEpoch(), and TTrbRawHit().

UShort_t TTrbRawHit::fTrailingFineTime [private]

Definition at line 101 of file TTrbHit.h.

Referenced by GetTFTime(), and TTrbRawHit().

Definition at line 105 of file TTrbHit.h.

Referenced by GetTrailingTimeCorr(), SetTrailingTimeCorr(), and TTrbRawHit().

UShort_t TTrbRawHit::iChannel [private]

Definition at line 85 of file TTrbHit.h.

Referenced by GetChannel().

UShort_t TTrbRawHit::iTDC [private]

Indices.

Definition at line 84 of file TTrbHit.h.

Referenced by GetTDC().


The documentation for this class was generated from the following files: