36#ifndef BesCgemDigitizer_h
37#define BesCgemDigitizer_h 1
39class BesCgemDigitizerMessenger;
49#include "GaudiKernel/NTuple.h"
50#include "GaudiKernel/INTupleSvc.h"
55#include "G4VDigitizerModule.hh"
74 void DoLorentzDiffusion(
const G4int f_ID_layer, G4ThreeVector &f_XYZ_pre, G4ThreeVector &f_XYZ_post,
const int f_F_print=0);
83 void GetIDFromXYZ(
const G4int f_ID_layer,
const G4ThreeVector f_XYZ,
84 G4double &f_x, G4double &f_v, G4int &f_ID_sheet, G4int &f_ID_x, G4int &f_ID_v);
88 const G4int f_ID_x_post,
const G4int f_ID_v_post,
89 G4int &f_N_hit_strip_x , G4int &f_N_hit_strip_v,
90 G4int &f_ID_x_start , G4int &f_ID_v_start );
94 const G4int f_ID_sheet_pre ,
const G4double f_x_pre ,
const G4double f_v_pre ,
95 const G4int f_ID_sheet_post,
const G4double f_x_post,
const G4double f_v_post,
96 G4int &f_ID_sheet_mid_pre , G4int &f_ID_x_mid_pre , G4int &f_ID_v_mid_pre,
97 G4int &f_ID_sheet_mid_post , G4int &f_ID_x_mid_post , G4int &f_ID_v_mid_post);
106 G4int m_DigitizerVer;
108 G4double m_E_threshold;
113 G4int m_F_hit[3][2][2][1500];
116 G4int m_F_printStrip;
117 G4int m_F_printHitStrip;
121 NTuple::Tuple* m_nt1;
122 NTuple::Item<int> m_evt;
123 NTuple::Item<int> m_nhit;
124 NTuple::Array<int> m_layer;
125 NTuple::Array<int> m_sheet;
126 NTuple::Array<double> m_phi;
127 NTuple::Array<double> m_v;
G4TDigiCollection< BesCgemDigi > BesCgemDigisCollection
BesCgemDigitizer(G4String modName)
void GetIDFromXYZ(const G4int f_ID_layer, const G4ThreeVector f_XYZ, G4double &f_x, G4double &f_v, G4int &f_ID_sheet, G4int &f_ID_x, G4int &f_ID_v)
void DoLorentzDiffusion(const G4int f_ID_layer, G4ThreeVector &f_XYZ_pre, G4ThreeVector &f_XYZ_post, const int f_F_print=0)
void GetIDFromSegmentInSameSheet(const G4int f_ID_x_pre, const G4int f_ID_v_pre, const G4int f_ID_x_post, const G4int f_ID_v_post, G4int &f_N_hit_strip_x, G4int &f_N_hit_strip_v, G4int &f_ID_x_start, G4int &f_ID_v_start)
void GetMiddleIDFromSegmentCrossedSheet(const G4int f_ID_layer, const G4int f_ID_sheet_pre, const G4double f_x_pre, const G4double f_v_pre, const G4int f_ID_sheet_post, const G4double f_x_post, const G4double f_v_post, G4int &f_ID_sheet_mid_pre, G4int &f_ID_x_mid_pre, G4int &f_ID_v_mid_pre, G4int &f_ID_sheet_mid_post, G4int &f_ID_x_mid_post, G4int &f_ID_v_mid_post)