BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/TofSim/include/TofSim/BesTofSD.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4// Description:
5// Author: Dengzy
6// Created: Mar, 2004
7// Modified:
8// Comment:
9//---------------------------------------------------------------------------//
10// $Id: BesTofSD.hh
11
12#ifndef BesTofSD_h
13#define BesTofSD_h 1
14
15#include "BesTofHit.hh"
16#include "TruSim/BesSensitiveDetector.hh"
17#include <vector>
18using namespace std;
19
21class G4Step;
22class G4HCofThisEvent;
23class G4Event;
24class G4ElectronIonPair;
25
26class BesTofSD : public BesSensitiveDetector {
27public:
28 BesTofSD( G4String name );
29 virtual ~BesTofSD();
30
31 virtual void Initialize( G4HCofThisEvent* HCE );
32 virtual G4bool ProcessHits( G4Step* aStep, G4TouchableHistory* );
33 virtual void EndOfEvent( G4HCofThisEvent* HCE );
34
35 void BeginOfTruthEvent( const G4Event* );
36 void EndOfTruthEvent( const G4Event* );
37
38 G4int SampleNumberOfIonsAlongStep( const G4Step*, G4ElectronIonPair* );
39
40private:
41 BesTofHitsCollection* m_besTofCollection;
42 BesTofHitsCollection* m_besTofList;
43 G4int m_trackIndex;
44 vector<G4int> m_trackIndexes;
45 vector<int> m_scinIndex;
46 G4ElectronIonPair* elIonPair;
47 G4double m_event;
48 double m_fanoFactor;
49 double m_nionOff;
50};
51
52#endif
G4THitsCollection< BesTofHit > BesTofHitsCollection
void BeginOfTruthEvent(const G4Event *)
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *)
BesTofSD(G4String name)
virtual ~BesTofSD()
virtual void Initialize(G4HCofThisEvent *HCE)
void EndOfTruthEvent(const G4Event *)
G4int SampleNumberOfIonsAlongStep(const G4Step *, G4ElectronIonPair *)
virtual void EndOfEvent(G4HCofThisEvent *HCE)