BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcHit Class Reference

#include <BesMdcHit.hh>

Inheritance diagram for BesMdcHit:

Public Member Functions

 BesMdcHit ()
 ~BesMdcHit ()
 BesMdcHit (const BesMdcHit &)
const BesMdcHitoperator= (const BesMdcHit &)
int operator== (const BesMdcHit &) const
void * operator new (size_t)
void operator delete (void *)
void Draw ()
void Print ()
void SetTrackID (G4int track)
void SetLayerNo (G4int layer)
void SetCellNo (G4int cell)
void SetEdep (G4double de)
void SetPos (G4ThreeVector xyz)
void SetDriftD (G4double distance)
void SetDriftT (G4double time)
void SetGlobalT (G4double time)
void SetTheta (G4double angle)
void SetEnterAngle (G4double angle)
void SetPosFlag (G4int flag)
G4int GetTrackID ()
G4int GetLayerNo ()
G4int GetCellNo ()
G4double GetEdep ()
G4ThreeVector GetPos ()
G4double GetDriftD ()
G4double GetDriftT ()
G4double GetGlobalT ()
G4double GetTheta ()
G4double GetEnterAngle ()
G4int GetPosFlag ()
 BesMdcHit ()
 ~BesMdcHit ()
 BesMdcHit (const BesMdcHit &)
const BesMdcHitoperator= (const BesMdcHit &)
int operator== (const BesMdcHit &) const
void * operator new (size_t)
void operator delete (void *)
void Draw ()
void Print ()
void SetTrackID (G4int track)
void SetLayerNo (G4int layer)
void SetCellNo (G4int cell)
void SetEdep (G4double de)
void SetPos (G4ThreeVector xyz)
void SetDriftD (G4double distance)
void SetDriftT (G4double time)
void SetGlobalT (G4double time)
void SetTheta (G4double angle)
void SetEnterAngle (G4double angle)
void SetPosFlag (G4int flag)
G4int GetTrackID ()
G4int GetLayerNo ()
G4int GetCellNo ()
G4double GetEdep ()
G4ThreeVector GetPos ()
G4double GetDriftD ()
G4double GetDriftT ()
G4double GetGlobalT ()
G4double GetTheta ()
G4double GetEnterAngle ()
G4int GetPosFlag ()
 BesMdcHit ()
 ~BesMdcHit ()
 BesMdcHit (const BesMdcHit &)
const BesMdcHitoperator= (const BesMdcHit &)
int operator== (const BesMdcHit &) const
void * operator new (size_t)
void operator delete (void *)
void Draw ()
void Print ()
void SetTrackID (G4int track)
void SetLayerNo (G4int layer)
void SetCellNo (G4int cell)
void SetEdep (G4double de)
void SetPos (G4ThreeVector xyz)
void SetDriftD (G4double distance)
void SetDriftT (G4double time)
void SetGlobalT (G4double time)
void SetTheta (G4double angle)
void SetEnterAngle (G4double angle)
void SetPosFlag (G4int flag)
G4int GetTrackID ()
G4int GetLayerNo ()
G4int GetCellNo ()
G4double GetEdep ()
G4ThreeVector GetPos ()
G4double GetDriftD ()
G4double GetDriftT ()
G4double GetGlobalT ()
G4double GetTheta ()
G4double GetEnterAngle ()
G4int GetPosFlag ()

Detailed Description

Constructor & Destructor Documentation

◆ BesMdcHit() [1/6]

BesMdcHit::BesMdcHit ( )

Definition at line 22 of file BesMdcHit.cc.

22{}

Referenced by BesMdcHit(), operator delete(), operator=(), and operator==().

◆ ~BesMdcHit() [1/3]

BesMdcHit::~BesMdcHit ( )

Definition at line 26 of file BesMdcHit.cc.

26{}

◆ BesMdcHit() [2/6]

BesMdcHit::BesMdcHit ( const BesMdcHit & right)

Definition at line 30 of file BesMdcHit.cc.

30 : G4VHit() {
31 trackID = right.trackID;
32 layerNo = right.layerNo;
33 cellNo = right.cellNo;
34 edep = right.edep;
35 pos = right.pos;
36 driftD = right.driftD;
37 driftT = right.driftT;
38 globalT = right.globalT;
39 theta = right.theta;
40 enterAngle = right.enterAngle;
41 posFlag = right.posFlag;
42}

◆ BesMdcHit() [3/6]

BesMdcHit::BesMdcHit ( )

◆ ~BesMdcHit() [2/3]

BesMdcHit::~BesMdcHit ( )

◆ BesMdcHit() [4/6]

BesMdcHit::BesMdcHit ( const BesMdcHit & )

◆ BesMdcHit() [5/6]

BesMdcHit::BesMdcHit ( )

◆ ~BesMdcHit() [3/3]

BesMdcHit::~BesMdcHit ( )

◆ BesMdcHit() [6/6]

BesMdcHit::BesMdcHit ( const BesMdcHit & )

Member Function Documentation

◆ Draw() [1/3]

void BesMdcHit::Draw ( )

Definition at line 69 of file BesMdcHit.cc.

69 {
70 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
71 if ( pVVisManager )
72 {
73 G4Circle circle( pos );
74 circle.SetScreenSize( 2. );
75 circle.SetFillStyle( G4Circle::filled );
76 G4Colour colour( 1., 0., 0. );
77 G4VisAttributes attribs( colour );
78 circle.SetVisAttributes( attribs );
79 pVVisManager->Draw( circle );
80 }
81}

◆ Draw() [2/3]

void BesMdcHit::Draw ( )

◆ Draw() [3/3]

void BesMdcHit::Draw ( )

◆ GetCellNo() [1/3]

◆ GetCellNo() [2/3]

G4int BesMdcHit::GetCellNo ( )
inline

Definition at line 50 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

50{ return cellNo; };

◆ GetCellNo() [3/3]

G4int BesMdcHit::GetCellNo ( )
inline

Definition at line 50 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

50{ return cellNo; };

◆ GetDriftD() [1/3]

◆ GetDriftD() [2/3]

G4double BesMdcHit::GetDriftD ( )
inline

Definition at line 53 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

53{ return driftD; };

◆ GetDriftD() [3/3]

G4double BesMdcHit::GetDriftD ( )
inline

Definition at line 53 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

53{ return driftD; };

◆ GetDriftT() [1/3]

G4double BesMdcHit::GetDriftT ( )
inline

Definition at line 54 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcSim/BesMdcHit.hh.

54{ return driftT; };

Referenced by BesRootIO::SaveMdcHitRoot().

◆ GetDriftT() [2/3]

G4double BesMdcHit::GetDriftT ( )
inline

Definition at line 54 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

54{ return driftT; };

◆ GetDriftT() [3/3]

G4double BesMdcHit::GetDriftT ( )
inline

Definition at line 54 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

54{ return driftT; };

◆ GetEdep() [1/3]

◆ GetEdep() [2/3]

G4double BesMdcHit::GetEdep ( )
inline

Definition at line 51 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

51{ return edep; };

◆ GetEdep() [3/3]

G4double BesMdcHit::GetEdep ( )
inline

Definition at line 51 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

51{ return edep; };

◆ GetEnterAngle() [1/3]

G4double BesMdcHit::GetEnterAngle ( )
inline

◆ GetEnterAngle() [2/3]

G4double BesMdcHit::GetEnterAngle ( )
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

57{ return enterAngle; };

◆ GetEnterAngle() [3/3]

G4double BesMdcHit::GetEnterAngle ( )
inline

Definition at line 57 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

57{ return enterAngle; };

◆ GetGlobalT() [1/3]

G4double BesMdcHit::GetGlobalT ( )
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcSim/BesMdcHit.hh.

55{ return globalT; };

Referenced by BesRootIO::SaveMdcHitRoot(), and BesAsciiIO::SaveMdcHits().

◆ GetGlobalT() [2/3]

G4double BesMdcHit::GetGlobalT ( )
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

55{ return globalT; };

◆ GetGlobalT() [3/3]

G4double BesMdcHit::GetGlobalT ( )
inline

Definition at line 55 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

55{ return globalT; };

◆ GetLayerNo() [1/3]

◆ GetLayerNo() [2/3]

G4int BesMdcHit::GetLayerNo ( )
inline

Definition at line 49 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

49{ return layerNo; };

◆ GetLayerNo() [3/3]

G4int BesMdcHit::GetLayerNo ( )
inline

Definition at line 49 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

49{ return layerNo; };

◆ GetPos() [1/3]

◆ GetPos() [2/3]

G4ThreeVector BesMdcHit::GetPos ( )
inline

Definition at line 52 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

52{ return pos; };

◆ GetPos() [3/3]

G4ThreeVector BesMdcHit::GetPos ( )
inline

Definition at line 52 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

52{ return pos; };

◆ GetPosFlag() [1/3]

◆ GetPosFlag() [2/3]

G4int BesMdcHit::GetPosFlag ( )
inline

Definition at line 58 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

58{ return posFlag; };

◆ GetPosFlag() [3/3]

G4int BesMdcHit::GetPosFlag ( )
inline

Definition at line 58 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

58{ return posFlag; };

◆ GetTheta() [1/3]

G4double BesMdcHit::GetTheta ( )
inline

◆ GetTheta() [2/3]

G4double BesMdcHit::GetTheta ( )
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

56{ return theta; };

◆ GetTheta() [3/3]

G4double BesMdcHit::GetTheta ( )
inline

Definition at line 56 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

56{ return theta; };

◆ GetTrackID() [1/3]

◆ GetTrackID() [2/3]

G4int BesMdcHit::GetTrackID ( )
inline

Definition at line 48 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

48{ return trackID; };

◆ GetTrackID() [3/3]

G4int BesMdcHit::GetTrackID ( )
inline

Definition at line 48 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

48{ return trackID; };

◆ operator delete() [1/3]

void BesMdcHit::operator delete ( void * aHit)
inline

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcSim/BesMdcHit.hh.

90 {
91 BesMdcHitAllocator.FreeSingle( (BesMdcHit*)aHit );
92}
G4Allocator< BesMdcHit > BesMdcHitAllocator
Definition BesMdcHit.cc:18

◆ operator delete() [2/3]

void BesMdcHit::operator delete ( void * )
inline

◆ operator delete() [3/3]

void BesMdcHit::operator delete ( void * )
inline

◆ operator new() [1/3]

void * BesMdcHit::operator new ( size_t )
inline

Definition at line 82 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcSim/BesMdcHit.hh.

82 {
83 void* aHit;
84 aHit = (void*)BesMdcHitAllocator.MallocSingle();
85 return aHit;
86}

◆ operator new() [2/3]

void * BesMdcHit::operator new ( size_t )
inline

◆ operator new() [3/3]

void * BesMdcHit::operator new ( size_t )
inline

◆ operator=() [1/3]

const BesMdcHit & BesMdcHit::operator= ( const BesMdcHit & right)

Definition at line 46 of file BesMdcHit.cc.

46 {
47 trackID = right.trackID;
48 layerNo = right.layerNo;
49 cellNo = right.cellNo;
50 edep = right.edep;
51 pos = right.pos;
52 driftD = right.driftD;
53 driftT = right.driftT;
54 globalT = right.globalT;
55 theta = right.theta;
56 enterAngle = right.enterAngle;
57 posFlag = right.posFlag;
58 return *this;
59}

◆ operator=() [2/3]

const BesMdcHit & BesMdcHit::operator= ( const BesMdcHit & )

◆ operator=() [3/3]

const BesMdcHit & BesMdcHit::operator= ( const BesMdcHit & )

◆ operator==() [1/3]

int BesMdcHit::operator== ( const BesMdcHit & right) const

Definition at line 63 of file BesMdcHit.cc.

63 {
64 return ( this == &right ) ? 1 : 0;
65}

◆ operator==() [2/3]

int BesMdcHit::operator== ( const BesMdcHit & ) const

◆ operator==() [3/3]

int BesMdcHit::operator== ( const BesMdcHit & ) const

◆ Print() [1/3]

void BesMdcHit::Print ( )

Definition at line 85 of file BesMdcHit.cc.

85 {
86 G4cout << " trackID: " << trackID << " layerNo: " << layerNo << " cellNo: " << cellNo
87 << " energy deposit: " << G4BestUnit( edep, "Energy" )
88 << " position: " << G4BestUnit( pos, "Length" )
89 << " driftD: " << G4BestUnit( driftD, "Length" )
90 << " driftT: " << G4BestUnit( driftT, "Time" )
91 << " globalT: " << G4BestUnit( globalT, "Time" )
92 << " theta: " << G4BestUnit( theta, "Angle" )
93 << " enterAngle: " << G4BestUnit( enterAngle, "Angle" ) << " posFlag: " << posFlag
94 << G4endl;
95}

◆ Print() [2/3]

void BesMdcHit::Print ( )

◆ Print() [3/3]

void BesMdcHit::Print ( )

◆ SetCellNo() [1/3]

void BesMdcHit::SetCellNo ( G4int cell)
inline

◆ SetCellNo() [2/3]

void BesMdcHit::SetCellNo ( G4int cell)
inline

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

38{ cellNo = cell; };

◆ SetCellNo() [3/3]

void BesMdcHit::SetCellNo ( G4int cell)
inline

Definition at line 38 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

38{ cellNo = cell; };

◆ SetDriftD() [1/3]

void BesMdcHit::SetDriftD ( G4double distance)
inline

◆ SetDriftD() [2/3]

void BesMdcHit::SetDriftD ( G4double distance)
inline

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

41{ driftD = distance; };

◆ SetDriftD() [3/3]

void BesMdcHit::SetDriftD ( G4double distance)
inline

Definition at line 41 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

41{ driftD = distance; };

◆ SetDriftT() [1/3]

void BesMdcHit::SetDriftT ( G4double time)
inline

◆ SetDriftT() [2/3]

void BesMdcHit::SetDriftT ( G4double time)
inline

Definition at line 42 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

42{ driftT = time; };

◆ SetDriftT() [3/3]

void BesMdcHit::SetDriftT ( G4double time)
inline

Definition at line 42 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

42{ driftT = time; };

◆ SetEdep() [1/3]

void BesMdcHit::SetEdep ( G4double de)
inline

◆ SetEdep() [2/3]

void BesMdcHit::SetEdep ( G4double de)
inline

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

39{ edep = de; };

◆ SetEdep() [3/3]

void BesMdcHit::SetEdep ( G4double de)
inline

Definition at line 39 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

39{ edep = de; };

◆ SetEnterAngle() [1/3]

void BesMdcHit::SetEnterAngle ( G4double angle)
inline

◆ SetEnterAngle() [2/3]

void BesMdcHit::SetEnterAngle ( G4double angle)
inline

Definition at line 45 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

45{ enterAngle = angle; };

◆ SetEnterAngle() [3/3]

void BesMdcHit::SetEnterAngle ( G4double angle)
inline

Definition at line 45 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

45{ enterAngle = angle; };

◆ SetGlobalT() [1/3]

void BesMdcHit::SetGlobalT ( G4double time)
inline

◆ SetGlobalT() [2/3]

void BesMdcHit::SetGlobalT ( G4double time)
inline

Definition at line 43 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

43{ globalT = time; };

◆ SetGlobalT() [3/3]

void BesMdcHit::SetGlobalT ( G4double time)
inline

Definition at line 43 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

43{ globalT = time; };

◆ SetLayerNo() [1/3]

void BesMdcHit::SetLayerNo ( G4int layer)
inline

◆ SetLayerNo() [2/3]

void BesMdcHit::SetLayerNo ( G4int layer)
inline

Definition at line 37 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

37{ layerNo = layer; };

◆ SetLayerNo() [3/3]

void BesMdcHit::SetLayerNo ( G4int layer)
inline

Definition at line 37 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

37{ layerNo = layer; };

◆ SetPos() [1/3]

void BesMdcHit::SetPos ( G4ThreeVector xyz)
inline

◆ SetPos() [2/3]

void BesMdcHit::SetPos ( G4ThreeVector xyz)
inline

Definition at line 40 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

40{ pos = xyz; };

◆ SetPos() [3/3]

void BesMdcHit::SetPos ( G4ThreeVector xyz)
inline

Definition at line 40 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

40{ pos = xyz; };

◆ SetPosFlag() [1/3]

void BesMdcHit::SetPosFlag ( G4int flag)
inline

◆ SetPosFlag() [2/3]

void BesMdcHit::SetPosFlag ( G4int flag)
inline

Definition at line 46 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

46{ posFlag = flag; };

◆ SetPosFlag() [3/3]

void BesMdcHit::SetPosFlag ( G4int flag)
inline

Definition at line 46 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

46{ posFlag = flag; };

◆ SetTheta() [1/3]

void BesMdcHit::SetTheta ( G4double angle)
inline

◆ SetTheta() [2/3]

void BesMdcHit::SetTheta ( G4double angle)
inline

Definition at line 44 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

44{ theta = angle; };

◆ SetTheta() [3/3]

void BesMdcHit::SetTheta ( G4double angle)
inline

Definition at line 44 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

44{ theta = angle; };

◆ SetTrackID() [1/3]

void BesMdcHit::SetTrackID ( G4int track)
inline

◆ SetTrackID() [2/3]

void BesMdcHit::SetTrackID ( G4int track)
inline

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcSim/BesMdcHit.hh.

36{ trackID = track; };

◆ SetTrackID() [3/3]

void BesMdcHit::SetTrackID ( G4int track)
inline

Definition at line 36 of file Simulation/BOOST/MdcSim/include/MdcSim/BesMdcHit.hh.

36{ trackID = track; };

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