00001 00002 // $Id: CandDigitListHandle.cxx,v 1.9 2005/05/10 15:21:39 minoscvs Exp $ 00003 // 00004 // CandDigitListHandle.cxx 00005 // 00006 // CandDigitListHandle is the specialized access handle to CandDigitList 00007 // 00008 // Each concrete CandHandle must define a DupHandle function. 00009 // 00010 // Author: G. Irwin 5/2000 00012 00013 #include <cassert> 00014 #include <iostream> 00015 00016 #include "CandDigit/CandDigitListHandle.h" 00017 #include "CandDigit/CandDigitList.h" 00018 #include "MessageService/MsgService.h" 00019 00020 ClassImp(CandDigitListHandle) 00021 00022 XXXITRIMP(CandDigitListHandle) 00023 00024 //______________________________________________________________________ 00025 CVSID("$Id: CandDigitListHandle.cxx,v 1.9 2005/05/10 15:21:39 minoscvs Exp $"); 00026 00027 //______________________________________________________________________ 00028 CandDigitListHandle::CandDigitListHandle() 00029 { 00030 } 00031 00032 //______________________________________________________________________ 00033 CandDigitListHandle::CandDigitListHandle 00034 (const CandDigitListHandle &cdlh) : 00035 CandHandle(cdlh) 00036 { 00037 } 00038 00039 //______________________________________________________________________ 00040 CandDigitListHandle::CandDigitListHandle(CandDigitList *cdl) : 00041 CandHandle(cdl) 00042 { 00043 } 00044 00045 //______________________________________________________________________ 00046 CandDigitListHandle::~CandDigitListHandle() 00047 { 00048 } 00049 00050 //______________________________________________________________________ 00051 CandDigitListHandle *CandDigitListHandle::DupHandle() const 00052 { 00053 return (new CandDigitListHandle(*this)); 00054 } 00055 00056 //______________________________________________________________________ 00057 Double_t CandDigitListHandle::GetAbsTime() const 00058 { 00059 return ((CandDigitList *) GetCandBase())->fAbsTime; 00060 } 00061 00062 //______________________________________________________________________ 00063 void CandDigitListHandle::SetAbsTime(Double_t time) 00064 { 00065 ((CandDigitList *) GetOwnedCandBase())->fAbsTime = time; 00066 } 00067 00068 //______________________________________________________________________ 00069 Bool_t CandDigitListHandle::GetIsSparse() const 00070 { 00071 return ((CandDigitList *) GetCandBase())->fIsSparse; 00072 } 00073 00074 //______________________________________________________________________ 00075 void CandDigitListHandle::SetIsSparse(Bool_t isSparse) 00076 { 00077 ((CandDigitList *) GetOwnedCandBase())->fIsSparse = isSparse; 00078 } 00079 00080 //______________________________________________________________________ 00081 void CandDigitListHandle::Trace(const char *c) const 00082 { 00083 MSG("Cand", Msg::kDebug) 00084 << "**********Begin CandDigitListHandle::Trace(\"" << c << "\")" 00085 << endl 00086 << "Information from CandDigitListHandle's CandHandle: " << endl; 00087 CandHandle::Trace(c); 00088 MSG("Cand", Msg::kDebug) 00089 << "**********End CandDigitListHandle::Trace(\"" << c << "\")" 00090 << endl; 00091 }
1.3.9.1