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

NtpEMRecord Class Reference

#include <NtpEMRecord.h>

Inheritance diagram for NtpEMRecord:

RecRecordImp< RecCandHeader > RecRecord List of all members.

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

Constructor & Destructor Documentation

NtpEMRecord::NtpEMRecord  ) 
 

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 }

NtpEMRecord::NtpEMRecord const RecCandHeader header  ) 
 

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 }

NtpEMRecord::~NtpEMRecord  )  [virtual]
 

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 }


Member Function Documentation

void NtpEMRecord::Clear Option_t *  option = ""  ) 
 

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 }

void NtpEMRecord::Init  )  [private]
 

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 }

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

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 }

std::ostream & NtpEMRecord::Print std::ostream &  os  )  const [virtual]
 

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 }


Member Data Documentation

NtpEMSummary NtpEMRecord::emhdr
 

Definition at line 47 of file NtpEMRecord.h.

Referenced by NtpEMModule::FillNtpSummary(), MoqBase::GetEntry(), and MadBase::GetEntry().

TClonesArray* NtpEMRecord::emshw
 

Definition at line 50 of file NtpEMRecord.h.

Referenced by Clear(), NtpEMModule::FillNtpShower(), Init(), MoqBase::LoadEMShower(), MadBase::LoadEMShower(), and ~NtpEMRecord().

TClonesArray* NtpEMRecord::slc
 

Definition at line 49 of file NtpEMRecord.h.

Referenced by Clear(), NtpEMModule::FillNtpSlice(), Init(), and ~NtpEMRecord().

TClonesArray* NtpEMRecord::stp
 

Definition at line 48 of file NtpEMRecord.h.

Referenced by Clear(), NtpEMModule::FillNtpStrip(), Init(), and ~NtpEMRecord().


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