REROOT_GAFKey Class Reference

#include <REROOT_GAFKey.h>

List of all members.

Public Member Functions

 REROOT_GAFKey (GAFKEY_DEF *)
 REROOT_GAFKey ()
 ~REROOT_GAFKey ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
const Char_t * Type () const
Int_t Version () const
Int_t RunNo () const
Int_t EventNo () const
const Char_t * Name () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Char_t m_Type [5]
Int_t m_Version
Int_t m_RunNo
Int_t m_EventNo
Char_t m_Name [33]

Detailed Description

Definition at line 16 of file REROOT_GAFKey.h.


Constructor & Destructor Documentation

REROOT_GAFKey::REROOT_GAFKey ( GAFKEY_DEF nr  ) 

Definition at line 61 of file REROOT_GAFKey.cxx.

References init().

00062 {
00063   m_ID      = nr->ID - 1;                                     // C index
00064   m_Version = nr->Version;
00065   m_RunNo   = nr->RunNo;
00066   m_EventNo = nr->EventNo;
00067 
00068 // Fill String objects for char vectors from GAFKey struct.
00069   Int_t i;    // Keep this declaration here for scope outside for-loops.
00070   for (i=0; i<4; i++)  {
00071         if (nr->Type[i]=='\0' || nr->Type[i]==' ') break;
00072         m_Type[i] = nr->Type[i];
00073   }
00074   m_Type[i] = '\0';
00075 
00076   for (i=0; i<32; i++)  {
00077         if (nr->Name[i]=='\0' || nr->Name[i]==' ') break;
00078         m_Name[i] = nr->Name[i];
00079   }
00080   m_Name[i] = '\0';
00081 
00082   init();
00083 }

REROOT_GAFKey::REROOT_GAFKey (  ) 

Definition at line 85 of file REROOT_GAFKey.cxx.

00086 {
00087 }

REROOT_GAFKey::~REROOT_GAFKey (  ) 

Definition at line 93 of file REROOT_GAFKey.cxx.

00094 {
00095 }


Member Function Documentation

virtual void REROOT_GAFKey::accept ( REROOT_Visitor v  )  [inline, virtual]

Definition at line 34 of file REROOT_GAFKey.h.

References REROOT_Visitor::visit().

00034 { v.visit(this); }

void REROOT_GAFKey::clear (  ) 

Definition at line 97 of file REROOT_GAFKey.cxx.

00098 {
00099 }

Int_t REROOT_GAFKey::EventNo (  )  const [inline]

Definition at line 44 of file REROOT_GAFKey.h.

References m_EventNo.

Referenced by printEvent(), and MINFast::ProcessEvent().

00044 {return m_EventNo;  }            // EventNo

Int_t REROOT_GAFKey::ID (  )  const [inline]

Definition at line 40 of file REROOT_GAFKey.h.

References m_ID.

Referenced by printEvent().

00040 {return m_ID;  }                      // ID

void REROOT_GAFKey::init ( void   )  [private]

Definition at line 89 of file REROOT_GAFKey.cxx.

00090 {
00091 }

const Char_t* REROOT_GAFKey::Name ( void   )  const [inline]

Definition at line 45 of file REROOT_GAFKey.h.

References m_Name.

Referenced by printEvent().

00045 {return m_Name;  }              // Name[33]

void REROOT_GAFKey::printEvent ( std::ostream &  pstream  )  const

Definition at line 102 of file REROOT_GAFKey.cxx.

References EventNo(), ID(), Name(), RunNo(), Type(), and Version().

Referenced by REROOT_UserVisitor::visit().

00103 {
00104   pstream << "======================= GAFKey ======================\n";
00105   pstream << "GAFKey.ID            = " << ID()                 << "\n";
00106   pstream << "GAFKey.vType()       = " << Type()               << "\n";
00107   pstream << "GAFKey.Version       = " << Version()            << "\n";
00108   pstream << "GAFKey.RunNo         = " << RunNo()              << "\n";
00109   pstream << "GAFKey.EventNo       = " << EventNo()            << "\n";
00110   pstream << "GAFKey.vName()       = " << Name()               << "\n";
00111 }

Int_t REROOT_GAFKey::RunNo (  )  const [inline]

Definition at line 43 of file REROOT_GAFKey.h.

References m_RunNo.

Referenced by printEvent(), and MINFast::ProcessEvent().

00043 {return m_RunNo;  }                // RunNo

const Char_t* REROOT_GAFKey::Type (  )  const [inline]

Definition at line 41 of file REROOT_GAFKey.h.

References m_Type.

Referenced by printEvent().

00041 {return m_Type;  }               // Type[5]

Int_t REROOT_GAFKey::Version (  )  const [inline]

Definition at line 42 of file REROOT_GAFKey.h.

References m_Version.

Referenced by RerootExodus::PEC_pack(), and printEvent().

00042 {return m_Version;  }            // Version


Member Data Documentation

Int_t REROOT_GAFKey::m_EventNo [private]

Definition at line 23 of file REROOT_GAFKey.h.

Referenced by EventNo().

Int_t REROOT_GAFKey::m_ID [private]

Definition at line 19 of file REROOT_GAFKey.h.

Referenced by ID().

Char_t REROOT_GAFKey::m_Name[33] [private]

Definition at line 24 of file REROOT_GAFKey.h.

Referenced by Name().

Int_t REROOT_GAFKey::m_RunNo [private]

Definition at line 22 of file REROOT_GAFKey.h.

Referenced by RunNo().

Char_t REROOT_GAFKey::m_Type[5] [private]

Definition at line 20 of file REROOT_GAFKey.h.

Referenced by Type().

Int_t REROOT_GAFKey::m_Version [private]

Definition at line 21 of file REROOT_GAFKey.h.

Referenced by Version().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1