CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcHit.cc
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description: Track type hit class for BESIII MDC
5//Author: Yuan Ye([email protected])
6//Created: 4 Dec, 2003
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10
11#include "BesMdcHit.hh"
12#include "G4UnitsTable.hh"
13#include "G4VVisManager.hh"
14#include "G4Circle.hh"
15#include "G4Colour.hh"
16#include "G4VisAttributes.hh"
17
18G4Allocator<BesMdcHit> BesMdcHitAllocator;
19
20//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
21
23
24//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
25
27
28//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
29
31 : G4VHit()
32{
33 trackID = right.trackID;
34 layerNo = right.layerNo;
35 cellNo = right.cellNo;
36 edep = right.edep;
37 pos = right.pos;
38 driftD = right.driftD;
39 driftT = right.driftT;
40 globalT = right.globalT;
41 theta = right.theta;
42 enterAngle= right.enterAngle;
43 posFlag = right.posFlag;
44}
45
46//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47
49{
50 trackID = right.trackID;
51 layerNo = right.layerNo;
52 cellNo = right.cellNo;
53 edep = right.edep;
54 pos = right.pos;
55 driftD = right.driftD;
56 driftT = right.driftT;
57 globalT = right.globalT;
58 theta = right.theta;
59 enterAngle= right.enterAngle;
60 posFlag = right.posFlag;
61 return *this;
62}
63
64//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
65
66int BesMdcHit::operator==(const BesMdcHit& right) const
67{
68 return (this==&right) ? 1 : 0;
69}
70
71//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
72
74{
75 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
76 if(pVVisManager)
77 {
78 G4Circle circle(pos);
79 circle.SetScreenSize(2.);
80 circle.SetFillStyle(G4Circle::filled);
81 G4Colour colour(1.,0.,0.);
82 G4VisAttributes attribs(colour);
83 circle.SetVisAttributes(attribs);
84 pVVisManager->Draw(circle);
85 }
86}
87
88//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
89
91{
92 G4cout << " trackID: " << trackID
93 << " layerNo: " << layerNo
94 << " cellNo: " << cellNo
95 << " energy deposit: " << G4BestUnit(edep,"Energy")
96 << " position: " << G4BestUnit(pos,"Length")
97 << " driftD: " << G4BestUnit(driftD,"Length")
98 << " driftT: " << G4BestUnit(driftT,"Time")
99 << " globalT: " << G4BestUnit(globalT,"Time")
100 << " theta: " << G4BestUnit(theta,"Angle")
101 << " enterAngle: " << G4BestUnit(enterAngle,"Angle")
102 << " posFlag: " << posFlag
103 <<G4endl;
104}
105
106//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
107
G4Allocator< BesMdcHit > BesMdcHitAllocator
Definition: BesMdcHit.cc:18
void Print()
Definition: BesMdcHit.cc:90
void Draw()
Definition: BesMdcHit.cc:73
~BesMdcHit()
Definition: BesMdcHit.cc:26
int operator==(const BesMdcHit &) const
Definition: BesMdcHit.cc:66
const BesMdcHit & operator=(const BesMdcHit &)
Definition: BesMdcHit.cc:48