Belle II Software  release-08-01-10
SensitiveDetector.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <simulation/kernel/SensitiveDetectorBase.h>
12 
13 #include <TVector3.h>
14 
15 namespace Belle2 {
21  namespace bgo {
22 
25  public:
30 
32  int saveSimHit(
33  const G4int cellId,
34  const G4int trackID,
35  const G4int pid,
36  const G4double tof,
37  const G4double edep,
38  G4ThreeVector mom,
39  TVector3 WightedPos
40  );
41  protected:
46  bool step(G4Step* step, G4TouchableHistory*) override;
47 
48  private:
49 
51  //G4double m_thresholdEnergyDeposit;/** Energy Deposit threshold */
52  //G4double m_thresholdKineticEnergy;/** Kinetic Energy threshold */
53  int m_hitNum;
56  int m_trackID;
57  G4ThreeVector m_startPos;
58  G4ThreeVector m_endPos;
59  TVector3 m_WightedPos;
60  G4ThreeVector m_momentum;
61  double m_startTime;
62  double m_endTime;
63  double m_WightedTime;
64  double m_startEnergy;
65  double m_energyDeposit;
66  double m_trackLength;
68  //int ECLHitIndex[8736][80]; /** Hit index of StoreArray */
69  int iECLCell;
70  int TimeIndex;
71  TVector3 PosCell;
72  TVector3 VecCell;
73  double local_pos;
74  double T_ave;
75  int firstcall;
76  int m_phiID;
77  int m_thetaID;
78  int m_cellID;
79  };
80 
81  } //bgo namespace
83 } //Belle2 namespace
Base class for all Sensitive Detectors to create hits during simulation.
Sensitive Detector implementation of the BGO detector.
int m_thetaID
The current phi ID in an event.
double m_energyDeposit
particle energy at the entrance in volume
int m_EvnetNumber
The current number of created hits in an event.
int TimeIndex
Hit Energy of StoreArray.
int m_trackID
The current number of created hits in an event.
TVector3 m_WightedPos
Position of poststep.
int m_hitNum
members of SensitiveDetector
int firstcall
flight time to diode sensor
double T_ave
position alongthe vector of crystal axis
double local_pos
vector of crystal axis
G4ThreeVector m_momentum
Wighted step Position.
int m_cellID
The current theta ID in an event.
double m_startTime
momentum of track
int iECLCell
length of the track in the volume
double m_trackLength
energy deposited in volume
int m_oldEvnetNumber
The current number of created hits in an event.
TVector3 VecCell
center of crystal position
G4ThreeVector m_startPos
track id
G4ThreeVector m_endPos
Position of prestep.
int m_phiID
flag of first call
bool step(G4Step *step, G4TouchableHistory *) override
Step processing method.
int saveSimHit(const G4int cellId, const G4int trackID, const G4int pid, const G4double tof, const G4double edep, G4ThreeVector mom, TVector3 WightedPos)
Save BgoSimHit into datastore.
TVector3 PosCell
Hit Time of StoreArray.
Abstract base class for different kinds of events.