BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/EmcSim/include/EmcSim/BesEmcSD.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oreiented Simulation Tool //
3//---------------------------------------------------------------------------//
4// Descpirtion: EMC detector
5// Author: Fu Chengdong
6// Created: Sep 4, 2003
7// Comment:
8//---------------------------------------------------------------------------//
9//
10#ifndef BesEmcSD_h
11#define BesEmcSD_h 1
12
13#include "EmcSim/BesEmcHit.hh"
14#include "TruSim/BesSensitiveDetector.hh"
15#include "globals.hh"
16#include <vector>
17using namespace std;
18
20class BesEmcGeometry;
22class G4HCofThisEvent;
23class G4Step;
24
25//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
26
27class BesEmcSD : public BesSensitiveDetector {
28public:
31
32 void Initialize( G4HCofThisEvent* );
33 G4bool ProcessHits( G4Step*, G4TouchableHistory* );
34 void EndOfEvent( G4HCofThisEvent* );
35 void clear();
36 void DrawAll();
37 void PrintAll();
38 void BeginOfTruthEvent( const G4Event* );
39 void EndOfTruthEvent( const G4Event* );
40 void ComputeThetaPhi( G4int, G4int, G4int );
41 G4int EndPhiNumberForGDML( G4int );
42 G4int ComputeEndCopyNb( G4int );
43
44private:
45 BesEmcHitsCollection* CalCollection;
46 BesEmcTruthHitsCollection* CalTruthList;
47 BesEmcHitsCollection* CalList;
48 BesEmcConstruction* Detector;
49 BesEmcGeometry* fBesEmcGeometry;
50 G4int* HitID;
51 G4int nHit;
52 G4int m_trackIndex;
53 G4int PartId;
54 G4int CryNumberTheta;
55 G4int CryNumberPhi;
56};
57
58#endif
G4THitsCollection< BesEmcTruthHit > BesEmcTruthHitsCollection
G4THitsCollection< BesEmcHit > BesEmcHitsCollection
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
void BeginOfTruthEvent(const G4Event *)
void clear()
G4int ComputeEndCopyNb(G4int)
void EndOfEvent(G4HCofThisEvent *)
void PrintAll()
void ComputeThetaPhi(G4int, G4int, G4int)
G4int EndPhiNumberForGDML(G4int)
void Initialize(G4HCofThisEvent *)
BesEmcSD(G4String, BesEmcConstruction *, BesEmcGeometry *)
void DrawAll()
void EndOfTruthEvent(const G4Event *)