#include <REROOT_SubVolSpec.h>
Public Member Functions | |
| REROOT_SubVolSpec (SUBVOLSPEC_DEF *) | |
| REROOT_SubVolSpec () | |
| ~REROOT_SubVolSpec () | |
| virtual void | accept (REROOT_Visitor &v) |
| void | clear () |
| void | printEvent (std::ostream &) const |
| Int_t | ID () const |
| const Char_t * | VolName () const |
| const Char_t * | Shape () const |
| const Char_t * | TMedium () const |
| Int_t | NGSVol () const |
| const Float_t * | GSVol () const |
Private Member Functions | |
| void | init () |
Private Attributes | |
| Int_t | m_ID |
| Char_t | m_VolName [5] |
| Char_t | m_Shape [5] |
| Char_t | m_TMedium [5] |
| Int_t | m_NGSVol |
| Float_t | m_GSVol [10] |
|
|
Definition at line 59 of file REROOT_SubVolSpec.cxx. References init(). 00060 {
00061 m_ID = nr->ID - 1; // C index
00062 m_NGSVol = nr->NGSVol;
00063
00064 // Fill simple arrays from SubVolSpec struct.
00065 Int_t i; // Keep this declaration here for scope outside for-loops.
00066 for (i=0; i<10; i++) {
00067 m_GSVol[i] = nr->GSVol[i];
00068 }
00069
00070 // Fill 4 vector String objects with vectors from SubVolSpec struct.
00071 for (i=0; i<4; i++) {
00072 if (nr->VolName[i]=='\0' || nr->VolName[i]==' ') break;
00073 m_VolName[i] = nr->VolName[i];
00074 }
00075 m_VolName[i] = '\0';
00076 for (i=0; i<4; i++) {
00077 if (nr->Shape[i]=='\0' || nr->Shape[i]==' ') break;
00078 m_Shape[i] = nr->Shape[i];
00079 }
00080 m_Shape[i] = '\0';
00081 for (i=0; i<4; i++) {
00082 if (nr->TMedium[i]=='\0' || nr->TMedium[i]==' ') break;
00083 m_TMedium[i] = nr->TMedium[i];
00084 }
00085 m_TMedium[i] = '\0';
00086
00087 init();
00088 }
|
|
|
Definition at line 90 of file REROOT_SubVolSpec.cxx. 00091 {
00092 }
|
|
|
Definition at line 98 of file REROOT_SubVolSpec.cxx. 00099 {
00100 }
|
|
|
Definition at line 33 of file REROOT_SubVolSpec.h. References REROOT_Visitor::visit(). 00033 { v.visit(this); }
|
|
|
Definition at line 102 of file REROOT_SubVolSpec.cxx. 00103 {
00104 }
|
|
|
Definition at line 44 of file REROOT_SubVolSpec.h. 00044 {return m_GSVol; } // GSVol[10]
|
|
|
Definition at line 39 of file REROOT_SubVolSpec.h. 00039 {return m_ID; } // ID
|
|
|
Definition at line 94 of file REROOT_SubVolSpec.cxx. 00095 {
00096 }
|
|
|
Definition at line 43 of file REROOT_SubVolSpec.h. 00043 {return m_NGSVol; } // NGSVol
|
|
|
Definition at line 106 of file REROOT_SubVolSpec.cxx. 00107 {
00108 pstream << "===================== SubVolSpec =====================\n";
00109 }
|
|
|
Definition at line 41 of file REROOT_SubVolSpec.h. 00041 {return m_Shape; } // Shape[5]
|
|
|
Definition at line 42 of file REROOT_SubVolSpec.h. 00042 {return m_TMedium; } // TMedium[5]
|
|
|
Definition at line 40 of file REROOT_SubVolSpec.h. 00040 {return m_VolName; } // VolName[5]
|
|
|
Definition at line 24 of file REROOT_SubVolSpec.h. |
|
|
Definition at line 19 of file REROOT_SubVolSpec.h. |
|
|
Definition at line 23 of file REROOT_SubVolSpec.h. |
|
|
Definition at line 21 of file REROOT_SubVolSpec.h. |
|
|
Definition at line 22 of file REROOT_SubVolSpec.h. |
|
|
Definition at line 20 of file REROOT_SubVolSpec.h. |
1.3.9.1