36#ifndef BesCgemDigitizer_h
37#define BesCgemDigitizer_h 1
39class BesCgemDigitizerMessenger;
46#include "CgemGeomSvc/CgemGeomSvc.h"
48#include "GaudiKernel/NTuple.h"
49#include "GaudiKernel/INTupleSvc.h"
50#include "CgemDigitizerSvc/CgemDigitizerSvc.h"
54#include "G4VDigitizerModule.hh"
73 void DoLorentzDiffusion(
const G4int f_ID_layer, G4ThreeVector &f_XYZ_pre, G4ThreeVector &f_XYZ_post,
const int f_F_print=0);
82 void GetIDFromXYZ(
const G4int f_ID_layer,
const G4ThreeVector f_XYZ,
83 G4double &f_x, G4double &f_v, G4int &f_ID_sheet, G4int &f_ID_x, G4int &f_ID_v);
87 const G4int f_ID_x_post,
const G4int f_ID_v_post,
88 G4int &f_N_hit_strip_x , G4int &f_N_hit_strip_v,
89 G4int &f_ID_x_start , G4int &f_ID_v_start );
93 const G4int f_ID_sheet_pre ,
const G4double f_x_pre ,
const G4double f_v_pre ,
94 const G4int f_ID_sheet_post,
const G4double f_x_post,
const G4double f_v_post,
95 G4int &f_ID_sheet_mid_pre , G4int &f_ID_x_mid_pre , G4int &f_ID_v_mid_pre,
96 G4int &f_ID_sheet_mid_post , G4int &f_ID_x_mid_post , G4int &f_ID_v_mid_post);
105 G4int m_DigitizerVer;
107 G4double m_E_threshold;
112 G4int m_F_hit[3][2][2][1500];
114 G4int m_F_printStrip;
115 G4int m_F_printHitStrip;
119 NTuple::Tuple* m_nt1;
120 NTuple::Item<int> m_evt;
121 NTuple::Item<int> m_nhit;
122 NTuple::Array<int> m_layer;
123 NTuple::Array<int> m_sheet;
124 NTuple::Array<double> m_phi;
125 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)