NtpCluster3DRecord Class Reference

#include <NtpCluster3DRecord.h>

Inheritance diagram for NtpCluster3DRecord:
RecRecordImp< RecCandHeader > RecRecord

List of all members.

Public Member Functions

 NtpCluster3DRecord ()
 NtpCluster3DRecord (const RecCandHeader &header)
virtual ~NtpCluster3DRecord ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (const Option_t *option="") const

Public Attributes

NtpCluster3DSummary hdr3D
TClonesArray * clu3D

Private Member Functions

void Init ()

Detailed Description

Definition at line 24 of file NtpCluster3DRecord.h.


Constructor & Destructor Documentation

NtpCluster3DRecord::NtpCluster3DRecord (  ) 

Definition at line 18 of file NtpCluster3DRecord.cxx.

00018                                        : RecRecordImp<RecCandHeader>(),clu3D(0) {
00019   // Purpose: Default constructor
00020 
00021   this -> Init();  
00022 }

NtpCluster3DRecord::NtpCluster3DRecord ( const RecCandHeader header  ) 

Definition at line 24 of file NtpCluster3DRecord.cxx.

References Init().

00024                                                                : 
00025      RecRecordImp<RecCandHeader>(hdr),clu3D(0) {
00026   // Purpose: Normal constructor
00027 
00028   this -> Init(); 
00029 }

NtpCluster3DRecord::~NtpCluster3DRecord (  )  [virtual]

Definition at line 31 of file NtpCluster3DRecord.cxx.

References clu3D, RecArrayAllocator::Instance(), and RecArrayAllocator::ReleaseArray().

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 ( clu3D ) { allocator.ReleaseArray(clu3D); clu3D = 0; }
00038    
00039 }


Member Function Documentation

void NtpCluster3DRecord::Init ( void   )  [private]

Definition at line 41 of file NtpCluster3DRecord.cxx.

References clu3D, RecArrayAllocator::GetArray(), and RecArrayAllocator::Instance().

Referenced by NtpCluster3DRecord().

00041                               {
00042   // 
00043   // Purpose: Initialize ntuple TClonesArrays
00044   //
00045 
00046   RecArrayAllocator& allocator = RecArrayAllocator::Instance();
00047   if ( !clu3D ) clu3D = allocator.GetArray("NtpCluster3D");
00048 
00049 }

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

Definition at line 63 of file NtpCluster3DRecord.cxx.

References Print().

00063                                                                  {
00064   //
00065   // Purpose: Print record in form supported by TObject::Print
00066   //
00067 
00068   Print(std::cout);
00069   return;
00070 
00071 }

std::ostream & NtpCluster3DRecord::Print ( std::ostream &  os  )  const [virtual]

Reimplemented from RecRecordImp< RecCandHeader >.

Definition at line 51 of file NtpCluster3DRecord.cxx.

Referenced by Print().

00051                                                           {
00052   //
00053   // Purpose: Print status of ntuple record on ostream
00054   //
00055 
00056   os << "NtpCluster3DRecord::Print" << endl;
00057   RecRecordImp<RecCandHeader>::Print(os);
00058 
00059   return os;
00060 
00061 }


Member Data Documentation

Definition at line 47 of file NtpCluster3DRecord.h.

Referenced by NtpCluster3DModule::FillNtpClusterSummary().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1