REROOT_CoilTube Class Reference

#include <REROOT_CoilTube.h>

List of all members.

Public Member Functions

 REROOT_CoilTube (COILTUBE_DEF *)
 REROOT_CoilTube ()
 ~REROOT_CoilTube ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
Int_t ISuper () const
const Char_t * Name () const
Int_t ICopy () const
Int_t ITreeDepth () const
TVector3 XYZ1 () const
TVector3 XYZ2 () const
Float_t OuterRadius () const
Float_t InnerRadius () const
const Char_t * ShapeName () const
Int_t IRotm () const
const Char_t * TMedium () const
Float_t Zmin () const
Float_t Zmax () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Int_t m_ISuper
Char_t m_Name [5]
Int_t m_ICopy
Int_t m_ITreeDepth
Float_t m_XYZ1 [3]
Float_t m_XYZ2 [3]
Float_t m_OuterRadius
Float_t m_InnerRadius
Char_t m_ShapeName [5]
Int_t m_IRotm
Char_t m_TMedium [5]
Float_t m_Zmin
Float_t m_Zmax

Detailed Description

Definition at line 18 of file REROOT_CoilTube.h.


Constructor & Destructor Documentation

REROOT_CoilTube::REROOT_CoilTube ( COILTUBE_DEF nr  ) 

Definition at line 58 of file REROOT_CoilTube.cxx.

References init().

00059 {
00060   m_ID          = nr->ID - 1;                                 // C index
00061   m_ISuper      = nr->ISuper - 1;                             // C index
00062   m_ICopy       = nr->ICopy - 1;                              // C index
00063   m_ITreeDepth  = nr->ITreeDepth;
00064   m_OuterRadius = nr->OuterRadius;
00065   m_InnerRadius = nr->InnerRadius;
00066   if (nr->IRotm != 2147483647) m_IRotm = nr->IRotm - 1;       // C index
00067   else                         m_IRotm = -1;                  // C index
00068   m_Zmin        = nr->Zmin;
00069   m_Zmax        = nr->Zmax;
00070 
00071 // Fill simple arrays from CoilTube struct.
00072   Int_t i;    // Keep this declaration here for scope outside for-loops.
00073   for (i=0; i<3; i++) {
00074         m_XYZ1[i] = nr->XYZ1[i];
00075         m_XYZ2[i] = nr->XYZ2[i];
00076   }
00077 
00078 // Fill String objects for char vectors from CoilTube struct.
00079   for (i=0; i<4; i++) {
00080         if (nr->Name[i]=='\0' || nr->Name[i]==' ') break;
00081         m_Name[i] = nr->Name[i];
00082   }
00083   m_Name[i] = '\0';
00084   for (i=0; i<4; i++) {
00085         if (nr->ShapeName[i]=='\0' || nr->ShapeName[i]==' ') break;
00086         m_ShapeName[i] = nr->ShapeName[i];
00087   }
00088   m_ShapeName[i] = '\0';
00089   for (i=0; i<4; i++) {
00090         if (nr->TMedium[i]=='\0' || nr->TMedium[i]==' ') break;
00091         m_TMedium[i] = nr->TMedium[i];
00092   }
00093   m_TMedium[i] = '\0';
00094 
00095   init();
00096 }

REROOT_CoilTube::REROOT_CoilTube (  ) 

Definition at line 99 of file REROOT_CoilTube.cxx.

00100 {
00101 }

REROOT_CoilTube::~REROOT_CoilTube (  ) 

Definition at line 109 of file REROOT_CoilTube.cxx.

00110 {
00111 }


Member Function Documentation

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

Definition at line 44 of file REROOT_CoilTube.h.

References REROOT_Visitor::visit().

00044 {v.visit(this);}

void REROOT_CoilTube::clear (  ) 

Definition at line 114 of file REROOT_CoilTube.cxx.

00115 {
00116 }

Int_t REROOT_CoilTube::ICopy (  )  const [inline]

Definition at line 53 of file REROOT_CoilTube.h.

References m_ICopy.

00053 {return m_ICopy;}             // ICopy

Int_t REROOT_CoilTube::ID (  )  const [inline]

Definition at line 50 of file REROOT_CoilTube.h.

References m_ID.

00050 {return m_ID;}                   // ID

void REROOT_CoilTube::init ( void   )  [private]

Definition at line 104 of file REROOT_CoilTube.cxx.

00105 {
00106 }

Float_t REROOT_CoilTube::InnerRadius (  )  const [inline]

Definition at line 64 of file REROOT_CoilTube.h.

References m_InnerRadius.

00064 {return m_InnerRadius;} // InnerRadius

Int_t REROOT_CoilTube::IRotm (  )  const [inline]

Definition at line 66 of file REROOT_CoilTube.h.

References m_IRotm.

00066 {return m_IRotm;}             // IRotm

Int_t REROOT_CoilTube::ISuper (  )  const [inline]

Definition at line 51 of file REROOT_CoilTube.h.

References m_ISuper.

00051 {return m_ISuper;}           // ISuper

Int_t REROOT_CoilTube::ITreeDepth (  )  const [inline]

Definition at line 54 of file REROOT_CoilTube.h.

References m_ITreeDepth.

00054 {return m_ITreeDepth;}   // ITreeDepth

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

Definition at line 52 of file REROOT_CoilTube.h.

References m_Name.

00052 {return m_Name;}            // Name[5]

Float_t REROOT_CoilTube::OuterRadius (  )  const [inline]

Definition at line 63 of file REROOT_CoilTube.h.

References m_OuterRadius.

00063 {return m_OuterRadius;} // OuterRadius

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

Definition at line 119 of file REROOT_CoilTube.cxx.

00120 {
00121   pstream << "======================= CoilTube =====================\n";
00122 }

const Char_t* REROOT_CoilTube::ShapeName (  )  const [inline]

Definition at line 65 of file REROOT_CoilTube.h.

References m_ShapeName.

00065 {return m_ShapeName;}  // ShapeName[5]

const Char_t* REROOT_CoilTube::TMedium (  )  const [inline]

Definition at line 67 of file REROOT_CoilTube.h.

References m_TMedium.

00067 {return m_TMedium;}      // TMedium[5]

TVector3 REROOT_CoilTube::XYZ1 (  )  const [inline]

Definition at line 59 of file REROOT_CoilTube.h.

References m_XYZ1, and zoffset_REROOT().

00060      { return TVector3(m_XYZ1[0],m_XYZ1[1],m_XYZ1[2]+zoffset_REROOT()); }

TVector3 REROOT_CoilTube::XYZ2 (  )  const [inline]

Definition at line 61 of file REROOT_CoilTube.h.

References m_XYZ2, and zoffset_REROOT().

00062      { return TVector3(m_XYZ2[0],m_XYZ2[1],m_XYZ2[2]+zoffset_REROOT()); }

Float_t REROOT_CoilTube::Zmax (  )  const [inline]

Definition at line 69 of file REROOT_CoilTube.h.

References m_Zmax, and zoffset_REROOT().

00069 {return m_Zmax + zoffset_REROOT();} // Zmax

Float_t REROOT_CoilTube::Zmin (  )  const [inline]

Definition at line 68 of file REROOT_CoilTube.h.

References m_Zmin, and zoffset_REROOT().

00068 {return m_Zmin + zoffset_REROOT();} // Zmin


Member Data Documentation

Int_t REROOT_CoilTube::m_ICopy [private]

Definition at line 24 of file REROOT_CoilTube.h.

Referenced by ICopy().

Int_t REROOT_CoilTube::m_ID [private]

Definition at line 21 of file REROOT_CoilTube.h.

Referenced by ID().

Float_t REROOT_CoilTube::m_InnerRadius [private]

Definition at line 29 of file REROOT_CoilTube.h.

Referenced by InnerRadius().

Int_t REROOT_CoilTube::m_IRotm [private]

Definition at line 31 of file REROOT_CoilTube.h.

Referenced by IRotm().

Int_t REROOT_CoilTube::m_ISuper [private]

Definition at line 22 of file REROOT_CoilTube.h.

Referenced by ISuper().

Definition at line 25 of file REROOT_CoilTube.h.

Referenced by ITreeDepth().

Char_t REROOT_CoilTube::m_Name[5] [private]

Definition at line 23 of file REROOT_CoilTube.h.

Referenced by Name().

Float_t REROOT_CoilTube::m_OuterRadius [private]

Definition at line 28 of file REROOT_CoilTube.h.

Referenced by OuterRadius().

Char_t REROOT_CoilTube::m_ShapeName[5] [private]

Definition at line 30 of file REROOT_CoilTube.h.

Referenced by ShapeName().

Char_t REROOT_CoilTube::m_TMedium[5] [private]

Definition at line 32 of file REROOT_CoilTube.h.

Referenced by TMedium().

Float_t REROOT_CoilTube::m_XYZ1[3] [private]

Definition at line 26 of file REROOT_CoilTube.h.

Referenced by XYZ1().

Float_t REROOT_CoilTube::m_XYZ2[3] [private]

Definition at line 27 of file REROOT_CoilTube.h.

Referenced by XYZ2().

Float_t REROOT_CoilTube::m_Zmax [private]

Definition at line 34 of file REROOT_CoilTube.h.

Referenced by Zmax().

Float_t REROOT_CoilTube::m_Zmin [private]

Definition at line 33 of file REROOT_CoilTube.h.

Referenced by Zmin().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1