BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMucSD.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description: Sensitive detector of Muc
5//Author: Youzy Peking University mail: [email protected]
6//Created: Nov, 2003
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10//
11//
12// $Id: BesMucSD.hh,v 1.5 2009/08/25 13:33:54 xieyg Exp $
13// GEANT4 tag $Name: MucSim-00-01-03 $
14//
15
16#ifndef BesMucSD_h
17#define BesMucSD_h 1
18
19#include "G4Event.hh"
20#include "G4TrajectoryContainer.hh"
22#include "BesMucHit.hh"
23#include "BesMucConstruction.hh"
24#include <vector>
25#include "BesMucEfficiency.hh"
26#include "BesMucNoise.hh"
27
28using namespace std;
29
30class G4Step;
31class G4HCofThisEvent;
32class G4Svc;
33
35{
36public:
37 BesMucSD(G4String, BesMucConstruction*);
38 ~BesMucSD();
39
40 void Initialize(G4HCofThisEvent*);
41 G4bool ProcessHits(G4Step*, G4TouchableHistory*);
42 void EndOfEvent(G4HCofThisEvent*);
43 void BeginOfTruthEvent(const G4Event*);
44 void EndOfTruthEvent(const G4Event*);
45
46private:
47
48 G4Svc* m_G4Svc;
49
50 G4VTrajectory* GetTrajFromID(G4int id);
51 bool IsChildOf(G4Track *curTrack, G4int primaryG4TrackID);
52
53 BesMucHitsCollection* MucHitCollection;
54 BesMucHitsCollection* MucHitList;
55 G4int m_trackIndex;
56 vector<G4int> m_trackIndexes;
57 G4int m_prePart, m_preSeg, m_preGap, m_preStrip;
58 BesMucConstruction* detector;
59 G4int* HitID;
60 G4double TotEneDeposit;
61 G4double DeltaEnergy;
62
63 G4int m_PreviousPrimaryTrackG4Id;
64 const G4Event* m_CurEvent;
65 G4TrajectoryContainer* m_TrackCon;
66
67 BesMucEfficiency* m_effi;
68 BesMucNoise* m_noise;
69 int m_noiseMode; //0-no; 1-cnt sampling; 2-noise ratio sampling;
70
71};
72
73#endif
74
75
76
77
78
79
80
81
82
83
84
85
G4THitsCollection< BesMucHit > BesMucHitsCollection
Definition: BesMucHit.hh:104
~BesMucSD()
Definition: BesMucSD.cc:81
void BeginOfTruthEvent(const G4Event *)
Definition: BesMucSD.cc:93
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
Definition: BesMucSD.cc:117
void Initialize(G4HCofThisEvent *)
Definition: BesMucSD.cc:85
void EndOfTruthEvent(const G4Event *)
Definition: BesMucSD.cc:108
void EndOfEvent(G4HCofThisEvent *)
Definition: BesMucSD.cc:348
Definition: G4Svc.h:32