CandRecordSRNtuple Class Reference

#include <CandRecordSRNtuple.h>

Inheritance diagram for CandRecordSRNtuple:
NtpCandRecord RecRecordImp< RecCandHeader > RecRecord

List of all members.

Public Member Functions

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

Protected Member Functions

virtual void Init ()

Detailed Description

Definition at line 20 of file CandRecordSRNtuple.h.


Constructor & Destructor Documentation

CandRecordSRNtuple::CandRecordSRNtuple (  ) 

Definition at line 21 of file CandRecordSRNtuple.cxx.

00021                                        : NtpCandRecord() {
00022   //
00023   //  Purpose:  Default constructor.
00024   //
00025   //  Arguments: none.
00026   //
00027   //  Contact:   S. Kasahara
00028   // 
00029 
00030   this -> Init();
00031 
00032 
00033 }

CandRecordSRNtuple::CandRecordSRNtuple ( const RecCandHeader header  ) 

Definition at line 35 of file CandRecordSRNtuple.cxx.

References Init().

00035                                                                :
00036   NtpCandRecord(hdr) {
00037   //
00038   //  Purpose:  Normal constructor.
00039   //
00040   //  Arguments: header.
00041   //
00042   //  Contact:   S. Kasahara
00043   // 
00044 
00045   this -> Init();
00046 
00047 }

CandRecordSRNtuple::~CandRecordSRNtuple (  )  [virtual]

Definition at line 49 of file CandRecordSRNtuple.cxx.

00049                                         {
00050   //
00051   //  Purpose:  Destructor
00052   //
00053   //  Arguments: n/a
00054   //
00055   //  Return:  n/a
00056   //
00057   //  Contact:   S. Kasahara
00058   // 
00059 
00060 }


Member Function Documentation

void CandRecordSRNtuple::Init ( void   )  [protected, virtual]

Reimplemented from NtpCandRecord.

Definition at line 62 of file CandRecordSRNtuple.cxx.

References NtpCandRecord::fTracks, RecArrayAllocator::GetArray(), RecArrayAllocator::Instance(), and RecArrayAllocator::ReleaseArray().

Referenced by CandRecordSRNtuple().

00062                               {
00063   //
00064   //  Purpose:  Perform customized initialization appropriate for SR records
00065   //
00066   //  Arguments: none.
00067   //
00068   //  Return:  none.
00069   //
00070   //  Contact:   S. Kasahara
00071   // 
00072 
00073   // replace TClonesArray of NtpCandTrack's defined by base class
00074   // with CandTrackSRNtuple's.
00075   RecArrayAllocator& allocator = RecArrayAllocator::Instance();
00076   if ( fTracks ) allocator.ReleaseArray(fTracks);
00077   fTracks = allocator.GetArray("CandTrackSRNtuple");
00078   
00079 }

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

Definition at line 99 of file CandRecordSRNtuple.cxx.

References Print().

00099                                                                  {
00100   //
00101   //  Purpose:  Print record in form supported by TObject::Print.
00102   //
00103   //  Arguments: option (not used).
00104   //
00105   //  Return:  none.
00106   //
00107   //  Contact:   S. Kasahara
00108   // 
00109 
00110   Print(std::cout);
00111   return;
00112 
00113 }

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

Reimplemented from NtpCandRecord.

Definition at line 81 of file CandRecordSRNtuple.cxx.

Referenced by Print().

00081                                                           {
00082   //
00083   //  Purpose:  Print status of ntuple record on ostream.
00084   //
00085   //  Arguments: os ostream to display on.
00086   //
00087   //  Return:  ostream reference.
00088   //
00089   //  Contact:   S. Kasahara
00090   // 
00091 
00092   os << "CandRecordSRNtuple::Print" << endl;
00093   NtpCandRecord::Print(os);
00094 
00095   return os;
00096 
00097 }


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1