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

Public Member Functions | |
| NtpEMRecord () | |
| NtpEMRecord (const RecCandHeader &header) | |
| virtual | ~NtpEMRecord () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (Option_t *option="") const |
| void | Clear (Option_t *option="") |
Public Attributes | |
| NtpEMSummary | emhdr |
| TClonesArray * | stp |
| TClonesArray * | slc |
| TClonesArray * | emshw |
Private Member Functions | |
| void | Init () |
|
|
Definition at line 18 of file NtpEMRecord.cxx. 00018 : RecRecordImp<RecCandHeader>(),stp(0),slc(0),emshw(0) { 00019 // Purpose: Default constructor 00020 00021 this -> Init(); 00022 }
|
|
|
Definition at line 24 of file NtpEMRecord.cxx. References Init(). 00024 : 00025 RecRecordImp<RecCandHeader>(hdr),stp(0),slc(0),emshw(0) { 00026 // Purpose: Normal constructor 00027 00028 this -> Init(); 00029 }
|
|
|
Definition at line 31 of file NtpEMRecord.cxx. References emshw, RecArrayAllocator::Instance(), RecArrayAllocator::ReleaseArray(), slc, and stp. 00031 {
00032 // Purpose: Destructor
00033
00034 // Release arrays back to TClonesArray pool for reuse
00035 // Allocated memory of stored objects is retrieved via object Clear call
00036 RecArrayAllocator& allocator = RecArrayAllocator::Instance();
00037 if ( stp ) { allocator.ReleaseArray(stp); stp = 0; }
00038 if ( slc ) { allocator.ReleaseArray(slc); slc = 0; }
00039 if ( emshw ) { allocator.ReleaseArray(emshw); emshw = 0; }
00040
00041 }
|
|
|
Definition at line 43 of file NtpEMRecord.cxx. References emshw, slc, and stp. 00043 {
00044 // Purpose: Clear memory allocated to arrays so that record can
00045 // be reused.
00046
00047 if ( stp ) { stp -> Clear("C"); }
00048 if ( slc ) { slc -> Clear("C"); }
00049 if ( emshw ) { emshw -> Clear("C"); }
00050
00051 }
|
|
|
Definition at line 53 of file NtpEMRecord.cxx. References emshw, RecArrayAllocator::GetArray(), RecArrayAllocator::Instance(), slc, and stp. Referenced by NtpEMRecord(). 00053 {
00054 //
00055 // Purpose: Initialize ntuple TClonesArrays
00056 //
00057
00058 RecArrayAllocator& allocator = RecArrayAllocator::Instance();
00059 if ( !stp ) stp = allocator.GetArray("NtpSRStrip");
00060 if ( !slc ) slc = allocator.GetArray("NtpSRSlice");
00061 if ( !emshw ) emshw = allocator.GetArray("NtpEMShower");
00062
00063 }
|
|
|
Reimplemented from RecRecordImp< RecCandHeader >. Definition at line 77 of file NtpEMRecord.cxx. References Print(). 00077 {
00078 //
00079 // Purpose: Print record in form supported by TObject::Print
00080 //
00081
00082 Print(std::cout);
00083 return;
00084
00085 }
|
|
|
Reimplemented from RecRecordImp< RecCandHeader >. Definition at line 65 of file NtpEMRecord.cxx. References RecRecordImp< T >::Print(). Referenced by Print(). 00065 {
00066 //
00067 // Purpose: Print status of ntuple record on ostream
00068 //
00069
00070 os << "NtpEMRecord::Print" << endl;
00071 RecRecordImp<RecCandHeader>::Print(os);
00072
00073 return os;
00074
00075 }
|
|
|
Definition at line 47 of file NtpEMRecord.h. Referenced by NtpEMModule::FillNtpSummary(), MoqBase::GetEntry(), and MadBase::GetEntry(). |
|
|
Definition at line 50 of file NtpEMRecord.h. Referenced by Clear(), NtpEMModule::FillNtpShower(), Init(), MoqBase::LoadEMShower(), MadBase::LoadEMShower(), and ~NtpEMRecord(). |
|
|
Definition at line 49 of file NtpEMRecord.h. Referenced by Clear(), NtpEMModule::FillNtpSlice(), Init(), and ~NtpEMRecord(). |
|
|
Definition at line 48 of file NtpEMRecord.h. Referenced by Clear(), NtpEMModule::FillNtpStrip(), Init(), and ~NtpEMRecord(). |
1.3.9.1