BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcDigi.cc
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description:
5//Author: Yuan Ye([email protected])
6//Created: Oct.26, 2004
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10
11#include "BesMdcDigi.hh"
12#include "G4UnitsTable.hh"
13#include "G4VVisManager.hh"
14#include "G4Circle.hh"
15#include "G4Colour.hh"
16#include "G4VisAttributes.hh"
17
18G4Allocator<BesMdcDigi> BesMdcDigiAllocator;
19
21{
22 trackID=0;
23 layerNo=0;
24 cellNo=0;
25 edep=0;
26 driftT=0;
27}
28
30
32:G4VDigi()
33{
34 trackID = right.trackID;
35 layerNo = right.layerNo;
36 cellNo = right.cellNo;
37 edep = right.edep;
38 driftT = right.driftT;
39}
40
41
43{
44 trackID = right.trackID;
45 layerNo = right.layerNo;
46 cellNo = right.cellNo;
47 edep = right.edep;
48 driftT = right.driftT;
49 return *this;
50}
51
52
53int BesMdcDigi::operator==(const BesMdcDigi& right) const
54{
55 return (this==&right) ? 1 : 0;
56}
57
58/*
59void BesMdcDigi::Draw()
60{
61 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
62 if(pVVisManager)
63 {
64 G4Circle circle(pos);
65 circle.SetScreenSize(2.);
66 circle.SetFillStyle(G4Circle::filled);
67 G4Colour colour(1.,0.,0.);
68 G4VisAttributes attribs(colour);
69 circle.SetVisAttributes(attribs);
70 pVVisManager->Draw(circle);
71 }
72}
73*/
74
76{
77 G4cout << " trackID: " << trackID << " layerNo: " << layerNo
78 << " cellNo: " << cellNo
79 << " energy deposit: " << G4BestUnit(edep,"Energy")
80 << " driftT: " << G4BestUnit(driftT,"Time")<<G4endl;
81}
82
83
G4Allocator< BesMdcDigi > BesMdcDigiAllocator
Definition: BesMdcDigi.cc:18
virtual void Print()
Definition: BesMdcDigi.cc:75
virtual ~BesMdcDigi()
Definition: BesMdcDigi.cc:29
const BesMdcDigi & operator=(const BesMdcDigi &)
Definition: BesMdcDigi.cc:42
virtual G4int operator==(const BesMdcDigi &) const
Definition: BesMdcDigi.cc:53