Belle II Software development
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#ifndef CSI_SENSITIVEDETECTOR_H
9#define CSI_SENSITIVEDETECTOR_H
10
11#include <simulation/kernel/SensitiveDetectorBase.h>
12
13namespace Belle2 {
19 namespace csi {
20
23 public:
28
29
43 int saveSimHit(
44 const G4int cellId,
45 const G4int trackID,
46 const G4int pid,
47 const G4double tof,
48 const G4double edep,
49 G4ThreeVector mom,
50 G4ThreeVector pos,
51 G4ThreeVector PosCell,
52 G4ThreeVector VecCell
53 );
54
55 protected:
60 bool step(G4Step* aStep, G4TouchableHistory*) override;
61
62
63 private:
64
66 // G4double m_thresholdEnergyDeposit;/** Energy Deposit threshold */
67 //G4double m_thresholdKineticEnergy;/** Kinetic Energy threshold */
72 G4ThreeVector m_startPos;
73 G4ThreeVector m_endPos;
74 G4ThreeVector m_WightedPos;
75 G4ThreeVector m_momentum;
76 double m_startTime;
77 double m_endTime;
83 int CsiHitIndex[18][80];
86 //TVector3 PosCell; /** center of crystal position */
87 //TVector3 VecCell; /** vector of crystal axis */
88 double local_pos;
89 double T_ave;
91 int m_phiID;
95 };
96 } //csi namespace
98} //Belle2 namespace
99
100#endif
Base class for all Sensitive Detectors to create hits during simulation.
Sensitive Detector implementation of the CSI detector.
bool step(G4Step *aStep, G4TouchableHistory *) override
Step processing method.
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.
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
Hit Time of StoreArray.
G4ThreeVector m_momentum
Wighted step Position.
int m_cellID
The current theta ID in an event.
double m_startTime
momentum of track
int CsiHitIndex[18][80]
length of the track in the volume
int iECLCell
Hit index of StoreArray.
double m_trackLength
energy deposited in volume
G4ThreeVector m_WightedPos
Position of poststep.
int m_oldEvnetNumber
The current number of created hits in an event.
G4ThreeVector m_startPos
track id
int saveSimHit(const G4int cellId, const G4int trackID, const G4int pid, const G4double tof, const G4double edep, G4ThreeVector mom, G4ThreeVector pos, G4ThreeVector PosCell, G4ThreeVector VecCell)
Save ECLSimHits of the event into datastore.
G4ThreeVector m_endPos
Position of prestep.
int m_phiID
flag of first call
Abstract base class for different kinds of events.