BOSS 8.0.0
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(yuany@mail.ihep.ac.cn)
6// Created: 4 Dec, 2003
7// Modified:
8// Comment:
9//---------------------------------------------------------------------------//
10
11#include "MdcSim/BesMdcHit.hh"
12#include "G4Circle.hh"
13#include "G4Colour.hh"
14#include "G4UnitsTable.hh"
15#include "G4VVisManager.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
30BesMdcHit::BesMdcHit( const BesMdcHit& right ) : 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}
43
44//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
45
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}
60
61//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
62
63int BesMdcHit::operator==( const BesMdcHit& right ) const {
64 return ( this == &right ) ? 1 : 0;
65}
66
67//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
68
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}
82
83//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
84
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}
96
97//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4Allocator< BesMdcHit > BesMdcHitAllocator
Definition BesMdcHit.cc:18
void Print()
Definition BesMdcHit.cc:85
void Draw()
Definition BesMdcHit.cc:69
int operator==(const BesMdcHit &) const
Definition BesMdcHit.cc:63
const BesMdcHit & operator=(const BesMdcHit &)
Definition BesMdcHit.cc:46