BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/MucSim/MucSim-00-01-03/MucSim/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"
21#include "BesSensitiveDetector.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
34class BesMucSD : public BesSensitiveDetector
35{
36public:
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
void BeginOfTruthEvent(const G4Event *)
BesMucSD(G4String, BesMucConstruction *)
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
void Initialize(G4HCofThisEvent *)
void EndOfTruthEvent(const G4Event *)
void EndOfEvent(G4HCofThisEvent *)