12#include "BesTofDigitizerEcV1.hh"
13#include "BesTofDigi.hh"
14#include "BesTofHit.hh"
15#include "G4DigiManager.hh"
16#include "BesTofGeoParameter.hh"
17#include "Randomize.hh"
33 G4cout<<
"BesTofDigitizerEcV1::Digitize"<<G4endl;
35 G4DigiManager* digiManager = G4DigiManager::GetDMpointer();
36 G4int THCID = digiManager->GetHitsCollectionID(
"BesTofHitsCollection");
40 G4int partId, scinNb, nHits;
46 for (G4int j=0;j<nHits;j++)
85 G4ThreeVector pos = hit->
GetPos();
86 G4double posx = pos.x();
87 G4double posy = pos.y();
88 G4double pathL=
abs(m_bucketPosR-sqrt(posx*posx+posy*posy));
96 m_r = sqrt(posx*posx+posy*posy);
110 for (
int i=0;i<8;i++)
115 m_TDC[0] += (pp[0]+pp[1]*m_r)/TMath::Sqrt(
m_ADC[0])+
EvtComplex exp(const EvtComplex &c)
double abs(const EvtComplex &c)
G4TDigiCollection< BesTofDigi > BesTofDigitsCollection
G4THitsCollection< BesTofHit > BesTofHitsCollection
void SetPartId(G4int partId)
void SetForwADC(G4double ADC)
void SetTrackIndex(G4int index)
void SetBackADC(G4double ADC)
void SetForwTDC(G4double TDC)
void SetScinNb(G4int scinNb)
void SetBackTDC(G4double TDC)
virtual void Digitize(ScintSingle *, BesTofDigitsCollection *)
void TofPmtAccum(BesTofHit *)
ITofCaliSvc * m_tofCaliSvc
BesTofHitsCollection * m_THC
BesTofDigitsCollection * m_besTofDigitsCollection
static BesTofGeoParameter * GetInstance()
virtual ETofCal * ETof(unsigned id) const =0
virtual const double EAtten(unsigned id)=0
vector< G4int > * GetHitIndexes()