CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
BesPhysicalPointer.cxx
Go to the documentation of this file.
1/*
2 Author: Long Peixun
3 2019/4/11
4*/
5
6#include <iostream>
8using namespace std;
9
10//-----Base Class BesPhysicalPointer BEGIN-----
11
12void BesPhysicalPointer::set(TGeoPhysicalNode* spn)
13{
14 //std::cout << "BesPhysicalPointer::set() called" << std::endl;
15 pNode = spn;
16}
17TGeoPhysicalNode* BesPhysicalPointer::get() const
18{
19 //std::cout << "BesPhysicalPointer::get() called" << std::endl;
20 return pNode;
21}
22BesPhysicalPointer::operator TGeoPhysicalNode* () const
23{
24 return pNode;
25}
26TGeoPhysicalNode* BesPhysicalPointer::operator -> () const
27{
28 //std::cout << "BesPhysicalPointer::operator -> () called" << std::endl;
29 return pNode;
30}
31TGeoPhysicalNode& BesPhysicalPointer::operator * () const
32{
33 return *pNode;
34}
35
36BesPhysicalPointer::operator bool() const
37{
38 if (pNode) return true;
39 else return false;
40}
41TGeoPhysicalNode* BesPhysicalPointer::operator = (TGeoPhysicalNode* pointer)
42{
43 //std::cout << "BesPhysicalPointer::operator = () called" << std::endl;
44 pNode = pointer;
45 return pNode;
46}
47
48//-----Base Class BesPhysicalPointer END-----
49
50
51//-----Class MdcPhysicalPointer BEGIN-----
52
54{
55 qOverflow = sqof;
56}
58{
59 timeChannel = stc;
60}
62{
63 chargeChannel = scc;
64}
66{
67 return qOverflow;
68}
70{
71 return timeChannel;
72}
74{
75 return chargeChannel;
76}
77
79{
80 pNode = rval.pNode;
81 qOverflow = rval.qOverflow;
84 return *this;
85}
86
87//-----Class MdcPhysicalPointer END-----
88
89
90//-----Class TofPhysicalPointer BEGIN-----
91
93{
94 timeChannel = stc;
95}
97{
98 chargeChannel = scc;
99}
101{
102 return timeChannel;
103}
105{
106 return chargeChannel;
107}
108
110{
111 //std::cout << "TofPhysicalPointer::operator = () called" << std::endl;
112 pNode = rval.pNode;
115 return *this;
116}
117
118//-----Class TofPhysicalPointer END-----
TGeoPhysicalNode * operator=(TGeoPhysicalNode *pointer)
TGeoPhysicalNode * pNode
TGeoPhysicalNode * operator->() const
TGeoPhysicalNode * get() const
TGeoPhysicalNode & operator*() const
void set(TGeoPhysicalNode *spn)
Bool_t getQOverflow() const
UInt_t getTimeChannel() const
void setQOverflow(Bool_t sqof)
void setTimeChannel(UInt_t stc)
MdcPhysicalPointer & operator=(const MdcPhysicalPointer &rval)
void setChargeChannel(UInt_t scc)
UInt_t getChargeChannel() const
TofPhysicalPointer & operator=(const TofPhysicalPointer &rval)
UInt_t getTimeChannel() const
UInt_t getChargeChannel() const
void setChargeChannel(UInt_t scc)
void setTimeChannel(UInt_t stc)