SimSnarlRecord Class Reference

#include <SimSnarlRecord.h>

Inheritance diagram for SimSnarlRecord:
RecDataRecord< SimSnarlHeader > RecRecordImp< SimSnarlHeader > RecRecord

List of all members.

Public Member Functions

 SimSnarlRecord ()
 SimSnarlRecord (const SimSnarlHeader &head)
virtual ~SimSnarlRecord ()
const SimSnarlHeaderGetSimSnarlHeader () const
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (const Option_t *option="") const

Protected Member Functions

virtual TObject * FindSimComponent (const char *classname=0, const char *objectname=0) const
virtual TObject * FindSimTemporary (const char *classname=0, const char *objectname=0) const
virtual TObject * FindSimObject (const char *classname=0, const char *objectname=0) const

Friends

class PTSimModule
class PhotonTransport
class DetSim

Detailed Description

Definition at line 24 of file SimSnarlRecord.h.


Constructor & Destructor Documentation

SimSnarlRecord::SimSnarlRecord (  ) 

Definition at line 21 of file SimSnarlRecord.cxx.

00021                                {
00022    // Default constructor
00023 }

SimSnarlRecord::SimSnarlRecord ( const SimSnarlHeader head  ) 

Definition at line 26 of file SimSnarlRecord.cxx.

00026                                                         :
00027   RecDataRecord<SimSnarlHeader>(hdr) {
00028    // normal ctor
00029 }

SimSnarlRecord::~SimSnarlRecord (  )  [virtual]

Definition at line 33 of file SimSnarlRecord.cxx.

00033                                 {
00034 }


Member Function Documentation

TObject * SimSnarlRecord::FindSimComponent ( const char *  classname = 0,
const char *  objectname = 0 
) const [protected, virtual]

Definition at line 74 of file SimSnarlRecord.cxx.

References RecDataRecord< SimSnarlHeader >::FindComponent().

Referenced by FindSimObject().

00075                                                                         {
00076   //
00077   //  Purpose:  Protected method.  Return a non-const version of the
00078   //            requested object.  See RecDataRecord<T>::FindComponent
00079   //            for more details.
00080   //
00081     
00082   TObject *obj 
00083   = const_cast<TObject*>(RecDataRecord<SimSnarlHeader>::FindComponent(
00084                                                         className,objName));
00085   return obj;
00086   
00087 }

TObject * SimSnarlRecord::FindSimObject ( const char *  classname = 0,
const char *  objectname = 0 
) const [protected, virtual]

Definition at line 107 of file SimSnarlRecord.cxx.

References FindSimComponent(), and FindSimTemporary().

00108                                                                     {
00109   //
00110   //  Purpose:  Protected method.  Return a non-const version of the
00111   //            requested object. See RecDataRecord<T>::FindComponent
00112   //            or RecDataRecord<T>::FindTemporay for more details
00113   //            about argument names.
00114   //            This method checks the Components list first, and if
00115   //            no object is found, checks the Temporaries list.
00116   //
00117     
00118   TObject *obj = 0;
00119   obj = FindSimComponent(className,objName);
00120   if ( !obj ) obj = FindSimTemporary(className,objName);
00121 
00122   return obj;
00123 
00124 }

TObject * SimSnarlRecord::FindSimTemporary ( const char *  classname = 0,
const char *  objectname = 0 
) const [protected, virtual]

Definition at line 90 of file SimSnarlRecord.cxx.

References RecDataRecord< SimSnarlHeader >::FindTemporary().

Referenced by FindSimObject().

00091                                                                        {
00092   //
00093   //  Purpose:  Protected method.  Return a non-const version of the
00094   //            requested object.  See RecDataRecord<T>::FindTemporary
00095   //            for more details.
00096   //
00097     
00098   TObject *obj 
00099   = const_cast<TObject*>(RecDataRecord<SimSnarlHeader>::FindTemporary(
00100                                                         className,objName));
00101 
00102   return obj;
00103 
00104 }

const SimSnarlHeader * SimSnarlRecord::GetSimSnarlHeader (  )  const
void SimSnarlRecord::Print ( const Option_t *  option = ""  )  const [virtual]

Definition at line 59 of file SimSnarlRecord.cxx.

References Print().

00059                                                              {
00060   // 
00061   // Purpose: Print status of record in form supported by TObject::Print.
00062   //
00063   // Arguments: option (not used)
00064   //
00065   // Return: none.
00066   //
00067 
00068   Print(std::cout);
00069   return;
00070 
00071 }

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

Reimplemented from RecDataRecord< SimSnarlHeader >.

Definition at line 43 of file SimSnarlRecord.cxx.

Referenced by HepevtModule::Ana(), RerootToTruthModule::Ana(), and Print().

00043                                                       {
00044   // 
00045   // Purpose: Print status of record on ostream.
00046   //
00047   // Arguments: os ostream to display on.
00048   //
00049   // Return: ostream reference.
00050   //
00051 
00052   os << "SimSnarlRecord:" << endl;
00053   RecDataRecord<SimSnarlHeader>::Print(os);
00054   return os;
00055 
00056 }


Friends And Related Function Documentation

friend class DetSim [friend]

Definition at line 29 of file SimSnarlRecord.h.

friend class PhotonTransport [friend]

Definition at line 28 of file SimSnarlRecord.h.

friend class PTSimModule [friend]

Definition at line 27 of file SimSnarlRecord.h.


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1