CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
CgemSim-01-00-41/src/BesCgemDigi.cc
Go to the documentation of this file.
1//-------------------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//-------------------------------------------------------------------------------------//
4/*
5 * =====================================================================================
6 *
7 * Filename: BesCgemDigi.cc
8 * Description:
9 * Conventions:
10 * f_ : variable used in function parameter list
11 * gv_ : global variable
12 * lv_ : local variable used in function
13 * lvd_ : local variable double
14 * m_* : normal member of class
15 * sm_* : static member of class
16 * m_M_* : class data member, material of each layer
17 * m_N_* : class data member, number of layers (CgemLayer,GemFoil)
18 * m_R_* : class data member, radius of each (material) layer, and so on
19 * m_L_* : class data member, length of each layer or hole pitch
20 * m_T_* : class data member, thickness of each (material) layer
21 * m_A_* : class data member, angle of anode VStrip
22 * Version: CgemSim-01-00-00
23 * Created: 01/05/2014 09:49:21 PM
24 * Revision: CgemSim-00-00-01(in CMT version CgemBoss-0.0.1 written by xiuql)
25 * Compiler: gcc
26 * Author: [email protected]
27 * Organization: DG1,EPC,IHEP
28 * History:
29 * <Num> <Author> <Time> <Version> <remark>
30 * 0 juxd 20140105 01-00-00 created,
31 *
32 * =====================================================================================
33 */
34
35//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
36/* Header file: BOSS */
37#include "BesCgemDigi.hh"
38
39/* Header file: Geant4 */
40#include "G4UnitsTable.hh"
41#include "G4VVisManager.hh"
42#include "G4Circle.hh"
43#include "G4Colour.hh"
44#include "G4VisAttributes.hh"
45#include "GaudiKernel/IMessageSvc.h"
46#include "GaudiKernel/MsgStream.h"
47#include "GaudiKernel/ISvcLocator.h"
48#include "GaudiKernel/Bootstrap.h"
49
50/* Header file: C++ */
51#include <iostream>
52#include <iomanip>
53
54using namespace std;
55
56//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
57G4Allocator<BesCgemDigi> BesCgemDigiAllocator;
58
59//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
61{
62 m_ID_track = 0;
63 m_ID_layer = 0;
64 m_ID_sheet = 0;
65 m_F_XV = 0;
66 m_ID_strip = 0;
67 m_E_deposit = 0.;
68 m_global_time = 0.;
69}
70
71//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
73{
74}
75
76//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
78:G4VDigi()
79{
80 m_ID_track = right.m_ID_track;
81 m_ID_layer = right.m_ID_layer;
82 m_ID_sheet = right.m_ID_sheet;
83 m_F_XV = right.m_F_XV;
84 m_ID_strip = right.m_ID_strip;
85 m_E_deposit = right.m_E_deposit;
86 m_global_time = right.m_global_time;
87}
88
89//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
91{
92 m_ID_track = right.m_ID_track;
93 m_ID_layer = right.m_ID_layer;
94 m_ID_sheet = right.m_ID_sheet;
95 m_F_XV = right.m_F_XV;
96 m_ID_strip = right.m_ID_strip;
97 m_E_deposit = right.m_E_deposit;
98 m_global_time = right.m_global_time;
99
100 return *this;
101}
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104int BesCgemDigi::operator==(const BesCgemDigi& right) const
105{
106 return (this==&right) ? 1 : 0;
107}
108
109//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
111{
112 IMessageSvc* msgSvc;
113 Gaudi::svcLocator() -> service("MessageSvc", msgSvc);
114 MsgStream log(msgSvc, "BesCgemDigi::Print()");
115 log<< MSG::INFO << "INFO : BesCgemDigi:Print, Digi information: " << endreq;
116
117 log<< MSG::INFO << setw(12) << "TrackID: " << m_ID_track << endreq;
118 log<< MSG::INFO << setw(12) << "LayerID: " << m_ID_layer << endreq;
119 log<< MSG::INFO << setw(12) << "SheetID: " << m_ID_sheet << endreq;
120 log<< MSG::INFO << setw(12) << "StripType: " << m_F_XV << endreq;
121 log<< MSG::INFO << setw(12) << "StripID: " << m_ID_strip << endreq;
122 log<< MSG::INFO << setw(12) << "DepositE: " << m_E_deposit << endreq;
123 log<< MSG::INFO << setw(12) << "GlobalTime: " << m_global_time << endreq;
124}
125
126//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4Allocator< BesCgemDigi > BesCgemDigiAllocator
IMessageSvc * msgSvc()
virtual G4int operator==(const BesCgemDigi &) const
const BesCgemDigi & operator=(const BesCgemDigi &)