#include <RawDigit.h>
Inheritance diagram for RawDigit:

Public Member Functions | |
| RawDigit () | |
| RawDigit (const Int_t *&p, const RawDigitCrateStatus *cstat) | |
| virtual | ~RawDigit () |
| RawChannelId | GetChannel () const |
| Int_t | GetADC () const |
| Int_t | GetTDC () const |
| VldTimeStamp | GetCrateT0 () const |
| Char_t | GetErrorCode () const |
| Char_t | GetDataType () const |
| const RawDigitCrateStatus * | GetCrateStatus () const |
| virtual void | Print (Option_t *option="") const |
| virtual std::ostream & | FormatToOStream (std::ostream &os, Option_t *option="") const |
Protected Member Functions | |
| void | BuildRawChannelId (const RawDigitCrateStatus *cstat, Int_t chadd) |
Protected Attributes | |
| const RawDigitCrateStatus * | fDigitCrateStatus |
| RawChannelId | fRawChannelId |
| Int_t | fAdc |
| Int_t | fTdc |
| Char_t | fErrorCode |
| Char_t | fDataType |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RawDigit &r) |
|
|
Definition at line 60 of file RawDigit.h. 00061 : fDigitCrateStatus(0), fRawChannelId(0), 00062 fAdc(-1), fTdc(-1), fErrorCode(-1), fDataType(-1) { ; }
|
|
||||||||||||
|
Definition at line 23 of file RawDigit.cxx. 00024 : fDigitCrateStatus(cstat), fRawChannelId(0), fAdc(-1), fTdc(-1), 00025 fErrorCode(-1), fDataType(-1) 00026 { 00027 // 00028 00029 // do const_cast because fCrateStatus should be "const" as well 00030 // but that gives CINT's streamer generated code conniptions 00031 00032 // MSG("RawData",Msg::kWarning) << "RawDigit basic ctor" << endl; 00033 00034 // advance pointer by amount it eats up 00035 p += 2; 00036 }
|
|
|
Definition at line 63 of file RawDigit.h. 00063 { ; } // no owned objects
|
|
||||||||||||
|
Definition at line 62 of file RawDigit.cxx. References fDigitCrateStatus, fRawChannelId, RawCrateStatus::GetCommonMode(), RawCrateStatus::GetCrate(), RawBlockId::GetDetector(), RawCrateStatus::GetElecType(), RawCrateStatus::GetPedMode(), RawCrateStatus::GetRawBlockId(), RawCrateStatus::GetSparsMode(), and RawChannelId::SetModeBits(). 00063 {
00064 fDigitCrateStatus = cstat;
00065
00066 Detector::Detector_t detector =
00067 fDigitCrateStatus->GetRawBlockId().GetDetector();
00068 ElecType::Elec_t etype = fDigitCrateStatus->GetElecType();
00069 Bool_t pedMode = fDigitCrateStatus->GetPedMode();
00070 Bool_t sparsMode = fDigitCrateStatus->GetSparsMode();
00071 Bool_t commonMode = fDigitCrateStatus->GetCommonMode();
00072 Int_t crate = fDigitCrateStatus->GetCrate();
00073
00074 fRawChannelId = RawChannelId(detector,etype,crate,chadd);
00075 fRawChannelId.SetModeBits(commonMode,sparsMode,pedMode);
00076 }
|
|
||||||||||||
|
Reimplemented in RawQieDigiDigit, RawQieMCDigit, RawVaDigiDigit, and RawVaMCDigit. Definition at line 48 of file RawDigit.cxx. References RawChannelId::AsString(), fAdc, fDataType, fErrorCode, fRawChannelId, Nav::GetName(), and option. Referenced by RawVaMCDigit::FormatToOStream(), RawVaDigiDigit::FormatToOStream(), RawQieMCDigit::FormatToOStream(), RawQieDigiDigit::FormatToOStream(), operator<<(), and Print(). 00050 {
00051 os << GetName() << " " << fRawChannelId.AsString(option)
00052 << " Err 0x" << hex << setfill('0')
00053 << setw(2) << (int)fErrorCode
00054 << setfill(' ') << dec
00055 << " DT" << setw(3) << (int)fDataType
00056 << " ADC " << setw(5) << fAdc
00057 << " Time " << setw(12) << fTdc;
00058 return os;
00059 }
|
|
|
|
|
Definition at line 37 of file RawDigit.h. Referenced by RawTOFBlock::FormatToOStream(), and RawDigitDataBlock::FormatToOStream(). 00037 { return fDigitCrateStatus; }
|
|
|
Definition at line 33 of file RawDigit.h. References fDigitCrateStatus, and RawDigitCrateStatus::GetCrateT0(). Referenced by RunSummary::Ana(), RateSummary::Ana(), NoiseFilterModule::Ana(), MergeEvent::Ana(), FitTrackMSListModule::Ana(), FarmListModule::Ana(), NtpSRModule::FillNtpTimeStatus(), FillNearRunQuality::ProcessBlock(), OltBlockScan::Reco(), AlgMCDigit::RunAlg(), and AlgDigit::RunAlg(). 00033 { return fDigitCrateStatus->GetCrateT0(); }
|
|
|
Definition at line 35 of file RawDigit.h. Referenced by FillNearRunQuality::ProcessBlock(), and FiltSGateModule::ProcessDigitDataBlks(). 00035 { return fDataType; }
|
|
|
Definition at line 34 of file RawDigit.h. Referenced by NoiseFilterModule::Ana(), CDPreFilterModule::FilterSnarlForErrors(), RawDigitDataBlock::GetNumOfErrorDigits(), SexyPedReco::GetSexyPedestals(), Cutter::NDErrorCutter(), RawDigitDataBlock::PostFillRawDigits(), DQRawDigits::Process(), FillNearRunQuality::ProcessBlock(), FiltSGateModule::ProcessDigitDataBlks(), OltDataIntegrity::Reco(), AlgMCDigit::RunAlg(), AlgDigit::RunAlg(), AlgCalDetSI::RunAlg(), and AlgCaldetDigit::RunAlg(). 00034 { return fErrorCode; }
|
|
|
|
Reimplemented in RawTOFDigit. Definition at line 43 of file RawDigit.cxx. References FormatToOStream(), and option. Referenced by RawVaTimingMonitorBlock::FillRawDigits(), RawLiTpmtDigitsBlock::FillRawDigits(), RawDigitDataBlock::FillRawDigits(), and RawTOFDigit::Print(). 00044 {
00045 FormatToOStream(cout,option);
00046 }
|
|
||||||||||||
|
|
|
|
Definition at line 50 of file RawDigit.h. Referenced by FormatToOStream(). |
|
|
Definition at line 53 of file RawDigit.h. Referenced by FormatToOStream(). |
|
|
Definition at line 47 of file RawDigit.h. Referenced by BuildRawChannelId(), and GetCrateT0(). |
|
|
Definition at line 52 of file RawDigit.h. Referenced by FormatToOStream(). |
|
|
Definition at line 49 of file RawDigit.h. Referenced by BuildRawChannelId(), and FormatToOStream(). |
|
|
Definition at line 51 of file RawDigit.h. |
1.3.9.1