CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
BesPhysicalPointer Class Reference

#include <BesPhysicalPointer.h>

+ Inheritance diagram for BesPhysicalPointer:

Public Member Functions

 BesPhysicalPointer (TGeoPhysicalNode *pointer=NULL)
 
void set (TGeoPhysicalNode *spn)
 
TGeoPhysicalNode * get () const
 
 operator TGeoPhysicalNode * () const
 
TGeoPhysicalNode * operator-> () const
 
TGeoPhysicalNode & operator* () const
 
 operator bool () const
 
TGeoPhysicalNode * operator= (TGeoPhysicalNode *pointer)
 

Protected Attributes

TGeoPhysicalNode * pNode
 

Detailed Description

Definition at line 12 of file BesPhysicalPointer.h.

Constructor & Destructor Documentation

◆ BesPhysicalPointer()

BesPhysicalPointer::BesPhysicalPointer ( TGeoPhysicalNode *  pointer = NULL)
inline

Definition at line 15 of file BesPhysicalPointer.h.

16 : pNode(pointer) {}
TGeoPhysicalNode * pNode

Member Function Documentation

◆ get()

TGeoPhysicalNode * BesPhysicalPointer::get ( ) const

Definition at line 17 of file BesPhysicalPointer.cxx.

18{
19 //std::cout << "BesPhysicalPointer::get() called" << std::endl;
20 return pNode;
21}

Referenced by TofROOTGeo::SetVisTofHits().

◆ operator bool()

BesPhysicalPointer::operator bool ( ) const

Definition at line 36 of file BesPhysicalPointer.cxx.

37{
38 if (pNode) return true;
39 else return false;
40}

◆ operator TGeoPhysicalNode *()

BesPhysicalPointer::operator TGeoPhysicalNode * ( ) const

Definition at line 22 of file BesPhysicalPointer.cxx.

23{
24 return pNode;
25}

◆ operator*()

TGeoPhysicalNode & BesPhysicalPointer::operator* ( ) const

Definition at line 31 of file BesPhysicalPointer.cxx.

32{
33 return *pNode;
34}

◆ operator->()

TGeoPhysicalNode * BesPhysicalPointer::operator-> ( ) const

Definition at line 26 of file BesPhysicalPointer.cxx.

27{
28 //std::cout << "BesPhysicalPointer::operator -> () called" << std::endl;
29 return pNode;
30}

◆ operator=()

TGeoPhysicalNode * BesPhysicalPointer::operator= ( TGeoPhysicalNode *  pointer)

Definition at line 41 of file BesPhysicalPointer.cxx.

42{
43 //std::cout << "BesPhysicalPointer::operator = () called" << std::endl;
44 pNode = pointer;
45 return pNode;
46}

◆ set()

void BesPhysicalPointer::set ( TGeoPhysicalNode *  spn)

Definition at line 12 of file BesPhysicalPointer.cxx.

13{
14 //std::cout << "BesPhysicalPointer::set() called" << std::endl;
15 pNode = spn;
16}

Member Data Documentation

◆ pNode

TGeoPhysicalNode* BesPhysicalPointer::pNode
protected

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