Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RawDigit Class Reference

#include <RawDigit.h>

Inheritance diagram for RawDigit:

RawQieDigit RawVaDigit RawQieDigiDigit RawQieMCDigit RawTOFDigit RawVaDigiDigit RawVaMCDigit List of all members.

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 RawDigitCrateStatusGetCrateStatus () 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 RawDigitCrateStatusfDigitCrateStatus
RawChannelId fRawChannelId
Int_t fAdc
Int_t fTdc
Char_t fErrorCode
Char_t fDataType

Friends

std::ostream & operator<< (std::ostream &os, const RawDigit &r)

Constructor & Destructor Documentation

RawDigit::RawDigit  )  [inline]
 

Definition at line 60 of file RawDigit.h.

00061   :  fDigitCrateStatus(0), fRawChannelId(0),
00062      fAdc(-1), fTdc(-1), fErrorCode(-1), fDataType(-1) { ; }

RawDigit::RawDigit const Int_t *&  p,
const RawDigitCrateStatus cstat
 

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 }

RawDigit::~RawDigit  )  [inline, virtual]
 

Definition at line 63 of file RawDigit.h.

00063 { ; }  // no owned objects


Member Function Documentation

void RawDigit::BuildRawChannelId const RawDigitCrateStatus cstat,
Int_t  chadd
[protected]
 

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 }

std::ostream & RawDigit::FormatToOStream std::ostream &  os,
Option_t *  option = ""
const [virtual]
 

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 }

Int_t RawDigit::GetADC void   )  const [inline]
 

Definition at line 31 of file RawDigit.h.

Referenced by RawTofConverter::AbandonRawTOFBlock(), PulserNearDigit::Add(), PulserSummary::AddDigit(), StripCands::Ana(), RunSummary::Ana(), RateSummary::Ana(), NoiseFilterModule::Ana(), MergeEvent::Ana(), LightInjector::Ana(), FitTrackMSListModule::Ana(), FarPlaneCheckout::Ana(), FarDetRawRateDump::Ana(), FarDetRawDigitDump::Ana(), CustomLightInjector::Ana(), CheckND::Ana(), CDAnaModule::Ana(), PEGainModule::DoMeanSigmaFromData(), NtpSRModule::FillNtpEventSummary(), NtpMCModule::FillNtpMCTruth(), NtpSRModule::FillNtpShieldStrip(), CDPreFilterModule::FilterSnarlForErrors(), Blinder::GetInfo(), NtpSRBleachFiller::GetlateBucketPHFraction(), SexyPedReco::GetSexyPedestals(), PEGainModule::MakeHistosFromData(), PulserNearDigit::New(), DQRawDigits::Process(), DQLightInjection::Process(), FillNearRunQuality::ProcessBlock(), FarDetDataQualityModule::ProcessBlock(), FiltSGateModule::ProcessDigitDataBlks(), OltEnds::Reco(), MergeEvent::Reco(), BiggestChopModule::Reco(), AlgMergeEvent::RunAlg(), AlgMCDigit::RunAlg(), AlgDigit::RunAlg(), AlgCalDetSI::RunAlg(), and AlgCaldetDigit::RunAlg().

00031 { return fAdc; }

RawChannelId RawDigit::GetChannel  )  const [inline]
 

Definition at line 30 of file RawDigit.h.

Referenced by RawTofConverter::AbandonRawTOFBlock(), PulserNearDigit::Add(), PulserFromRawSummaryList::Add(), PulserSummary::AddDigit(), TimeCalibratorSRModule::Ana(), RunSummary::Ana(), RateSummary::Ana(), NoiseFilterModule::Ana(), MergeEvent::Ana(), LightInjector::Ana(), FitTrackMSListModule::Ana(), FarPlaneCheckout::Ana(), FarmListModule::Ana(), FarDetTpSinglesDump::Ana(), FarDetRawRateDump::Ana(), FarDetRawDigitDump::Ana(), CustomLightInjector::Ana(), CDTrackerModule::Ana(), CDAnaModule::Ana(), PEGainModule::DoMeanSigmaFromData(), NtpSRModule::FillNtpEventSummary(), NtpMCModule::FillNtpMCTruth(), NtpSRModule::FillNtpShieldStrip(), CDPreFilterModule::FilterOnSnarlSize(), CDPreFilterModule::FilterSnarlForErrors(), Blinder::GetInfo(), SexyPedReco::GetSexyPedestals(), PEGainModule::MakeHistosFromData(), Cutter::NDErrorCutter(), Cutter::OverShootCutter(), RawDigitDataBlock::PostFillRawDigits(), DQRawDigits::Process(), DQLightInjection::Process(), FillNearRunQuality::ProcessBlock(), FarDetDataQualityModule::ProcessBlock(), FiltSGateModule::ProcessDigitDataBlks(), RerootToRawDataModule::Reco(), OltTimePlot::Reco(), OltRawLI::Reco(), OltEnds::Reco(), OltDataIntegrity::Reco(), OltBlockScan::Reco(), BiggestChopModule::Reco(), RejectHelper::reject_veto(), AlgStripSRList::RunAlg(), AlgMCDigit::RunAlg(), AlgDigitList::RunAlg(), AlgDigit::RunAlg(), AlgCalDetSI::RunAlg(), AlgCaldetDigitList::RunAlg(), AlgCaldetDigit::RunAlg(), and Coroner::UpdateLiHitList().

00030 { return fRawChannelId; }

const RawDigitCrateStatus* RawDigit::GetCrateStatus  )  const [inline]
 

Definition at line 37 of file RawDigit.h.

Referenced by RawTOFBlock::FormatToOStream(), and RawDigitDataBlock::FormatToOStream().

00037 { return fDigitCrateStatus; }

VldTimeStamp RawDigit::GetCrateT0  )  const [inline]
 

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(); }

Char_t RawDigit::GetDataType  )  const [inline]
 

Definition at line 35 of file RawDigit.h.

Referenced by FillNearRunQuality::ProcessBlock(), and FiltSGateModule::ProcessDigitDataBlks().

00035 { return fDataType; }

Char_t RawDigit::GetErrorCode  )  const [inline]
 

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; }

Int_t RawDigit::GetTDC void   )  const [inline]
 

Definition at line 32 of file RawDigit.h.

Referenced by RawTofConverter::AbandonRawTOFBlock(), PulserNearDigit::Add(), StripCands::Ana(), RunSummary::Ana(), RateSummary::Ana(), NoiseFilterModule::Ana(), MergeEvent::Ana(), FarPlaneCheckout::Ana(), FarmListModule::Ana(), FarDetRawRateDump::Ana(), FarDetRawDigitDump::Ana(), CheckND::Ana(), CDTrackerModule::Ana(), CDAnaModule::Ana(), ChopEvaluation::Evaluate(), NtpSRModule::FillNtpEventSummary(), NtpSRModule::FillNtpShieldStrip(), RawDigitDataBlock::FormatToOStream(), NtpSRBleachFiller::GetlateBucketPHFraction(), SexyPedReco::GetSexyPedestals(), PulserNearDigit::New(), DQRawDigits::Process(), DQLightInjection::Process(), FillNearRunQuality::ProcessBlock(), FarDetDataQualityModule::ProcessBlock(), FiltSGateModule::ProcessDigitDataBlks(), OltTimeScan::Reco(), OltTimePlot::Reco(), OltRawLI::Reco(), OltDataIntegrity::Reco(), OltBlockScan::Reco(), MergeEvent::Reco(), BiggestChopModule::Reco(), AlgMergeEvent::RunAlg(), AlgMCDigit::RunAlg(), AlgDigit::RunAlg(), AlgCalDetSI::RunAlg(), AlgCaldetDigit::RunAlg(), and Coroner::UpdateLiHitList().

00032 { return fTdc; }

void RawDigit::Print Option_t *  option = ""  )  const [virtual]
 

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 }


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  os,
const RawDigit r
[friend]
 


Member Data Documentation

Int_t RawDigit::fAdc [protected]
 

Definition at line 50 of file RawDigit.h.

Referenced by FormatToOStream().

Char_t RawDigit::fDataType [protected]
 

Definition at line 53 of file RawDigit.h.

Referenced by FormatToOStream().

const RawDigitCrateStatus* RawDigit::fDigitCrateStatus [protected]
 

Definition at line 47 of file RawDigit.h.

Referenced by BuildRawChannelId(), and GetCrateT0().

Char_t RawDigit::fErrorCode [protected]
 

Definition at line 52 of file RawDigit.h.

Referenced by FormatToOStream().

RawChannelId RawDigit::fRawChannelId [protected]
 

Definition at line 49 of file RawDigit.h.

Referenced by BuildRawChannelId(), and FormatToOStream().

Int_t RawDigit::fTdc [protected]
 

Definition at line 51 of file RawDigit.h.


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:09 2010 for loon by  doxygen 1.3.9.1