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

Public Member Functions | |
| NtpTHRecord () | |
| NtpTHRecord (const RecCandHeader &header) | |
| virtual | ~NtpTHRecord () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (const Option_t *option="") const |
| void | Clear (Option_t *option="") |
Public Attributes | |
| TClonesArray * | thstp |
| TClonesArray * | thslc |
| TClonesArray * | thshw |
| TClonesArray * | thtrk |
| TClonesArray * | thevt |
Private Member Functions | |
| void | Init () |
Definition at line 23 of file NtpTHRecord.h.
| NtpTHRecord::NtpTHRecord | ( | ) |
Definition at line 18 of file NtpTHRecord.cxx.
References EVD::Init().
00018 : RecRecordImp<RecCandHeader>(),thstp(0), 00019 thslc(0),thshw(0),thtrk(0),thevt(0) { 00020 // Purpose: Default constructor 00021 00022 this -> Init(); 00023 }
| NtpTHRecord::NtpTHRecord | ( | const RecCandHeader & | header | ) |
Definition at line 25 of file NtpTHRecord.cxx.
References Init().
00025 : 00026 RecRecordImp<RecCandHeader>(hdr),thstp(0),thslc(0),thshw(0),thtrk(0), 00027 thevt(0) { 00028 // Purpose: Normal constructor 00029 00030 this -> Init(); 00031 }
| NtpTHRecord::~NtpTHRecord | ( | ) | [virtual] |
Definition at line 33 of file NtpTHRecord.cxx.
References RecArrayAllocator::Instance(), RecArrayAllocator::ReleaseArray(), thevt, thshw, thslc, thstp, and thtrk.
00033 { 00034 // Purpose: Destructor 00035 00036 // Release arrays back to TClonesArray pool for reuse 00037 // Allocated memory of stored objects is retrieved via object Clear call 00038 RecArrayAllocator& allocator = RecArrayAllocator::Instance(); 00039 if ( thstp ) { allocator.ReleaseArray(thstp); thstp = 0; } 00040 if ( thslc ) { allocator.ReleaseArray(thslc); thslc = 0; } 00041 if ( thshw ) { allocator.ReleaseArray(thshw); thshw = 0; } 00042 if ( thtrk ) { allocator.ReleaseArray(thtrk); thtrk = 0; } 00043 if ( thevt ) { allocator.ReleaseArray(thevt); thevt = 0; } 00044 00045 }
| void NtpTHRecord::Clear | ( | Option_t * | option = "" |
) |
Definition at line 47 of file NtpTHRecord.cxx.
References thevt, thshw, thslc, thstp, and thtrk.
00047 { 00048 // Purpose: Clear memory allocated to arrays so that record can 00049 // be reused. 00050 00051 if ( thstp ) { thstp -> Clear("C"); } 00052 if ( thslc ) { thslc -> Clear("C"); } 00053 if ( thshw ) { thshw -> Clear("C"); } 00054 if ( thtrk ) { thtrk -> Clear("C"); } 00055 if ( thevt ) { thevt -> Clear("C"); } 00056 00057 }
| void NtpTHRecord::Init | ( | ) | [private] |
Definition at line 59 of file NtpTHRecord.cxx.
References RecArrayAllocator::GetArray(), RecArrayAllocator::Instance(), RecRecordImp< RecCandHeader >::SetClearable(), thevt, thshw, thslc, thstp, and thtrk.
Referenced by NtpTHRecord().
00059 { 00060 // 00061 // Purpose: Initialize ntuple TClonesArrays 00062 // 00063 00064 // Set variable in record base class to indicate that it is possible 00065 // to recover dynamic memory using Clear() method for this record type 00066 SetClearable(true); 00067 00068 RecArrayAllocator& allocator = RecArrayAllocator::Instance(); 00069 if ( !thstp ) thstp = allocator.GetArray("NtpTHStrip"); 00070 if ( !thslc ) thslc = allocator.GetArray("NtpTHSlice"); 00071 if ( !thshw ) thshw = allocator.GetArray("NtpTHShower"); 00072 if ( !thtrk ) thtrk = allocator.GetArray("NtpTHTrack"); 00073 if ( !thevt ) thevt = allocator.GetArray("NtpTHEvent"); 00074 00075 }
| void NtpTHRecord::Print | ( | const Option_t * | option = "" |
) | const [virtual] |
Definition at line 89 of file NtpTHRecord.cxx.
References Print().
00089 { 00090 // 00091 // Purpose: Print record in form supported by TObject::Print 00092 // 00093 00094 Print(std::cout); 00095 return; 00096 00097 }
| std::ostream & NtpTHRecord::Print | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from RecRecordImp< RecCandHeader >.
Definition at line 77 of file NtpTHRecord.cxx.
References RecRecordImp< T >::Print().
Referenced by Print().
00077 { 00078 // 00079 // Purpose: Print status of ntuple record on ostream 00080 // 00081 00082 os << "NtpTHRecord::Print" << endl; 00083 RecRecordImp<RecCandHeader>::Print(os); 00084 00085 return os; 00086 00087 }
| TClonesArray* NtpTHRecord::thevt |
Definition at line 50 of file NtpTHRecord.h.
Referenced by ANtpRecoNtpManipulator::ANtpRecoNtpManipulator(), Clear(), NueDisplayModule::GetBasicInfo(), Init(), MadBase::LoadTHEvent(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpTHRecord().
| TClonesArray* NtpTHRecord::thshw |
Definition at line 48 of file NtpTHRecord.h.
Referenced by ANtpRecoNtpManipulator::ANtpRecoNtpManipulator(), Clear(), Init(), MadBase::LoadTHShower(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpTHRecord().
| TClonesArray* NtpTHRecord::thslc |
Definition at line 47 of file NtpTHRecord.h.
Referenced by Clear(), Init(), MadBase::LoadTHSlice(), and ~NtpTHRecord().
| TClonesArray* NtpTHRecord::thstp |
Definition at line 46 of file NtpTHRecord.h.
Referenced by ANtpRecoNtpManipulator::ANtpRecoNtpManipulator(), Clear(), Init(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpTHRecord().
| TClonesArray* NtpTHRecord::thtrk |
Definition at line 49 of file NtpTHRecord.h.
Referenced by ANtpRecoNtpManipulator::ANtpRecoNtpManipulator(), Clear(), MCMonitorCosmicHistograms::FillHistsReTr(), Init(), MadBase::LoadTHTrack(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpTHRecord().
1.4.7