62 G4String colName =
"DigitsCollection";
64 Energy_Threshold = 120.*
keV;
66 ACDThreshold = 15*
keV;
85 (
"GammaRayTelDigitizer",
"DigitsCollection");
122 for (
G4int i=0;i<n_hit;i++)
124 G4double ESil = (*THC)[i]->GetEdepSil();
125 G4int NStrip = (*THC)[i]->GetNStrip();
126 G4int NPlane = (*THC)[i]->GetNSilPlane();
127 G4int IsX = (*THC)[i]->GetPlaneType();
131 if (ESil>Energy_Threshold)
139 DigitsCollection->
insert(Digi);
147 for (
G4int i=0;i<n_hit;i++)
149 TotalEnergy +=(*CHC)[i]->GetEdepCAL();
161 DigitsCollection->
insert(Digi);
170 for (
G4int i=0;i<n_hit;i++)
173 G4int type = (*AHC)[i]->GetACDTileNumber();
177 if (energy>ACDThreshold)
185 DigitsCollection->
insert(Digi);
192 G4cout <<
"Number of digits in this event = "
void SetStripNumber(G4int StripNum)
static G4DigiManager * GetDMpointer()
void SetPlaneType(G4int PlaneTyp)
GammaRayTelDigitizer(G4String name)
const G4VHitsCollection * GetHitsCollection(G4int HCID, G4int eventID=0)
G4GLOB_DLL std::ostream G4cout
G4int GetHitsCollectionID(G4String HCname)
void SetEnergy(G4double Ene)
void SetPlaneNumber(G4int PlaneNum)
G4int GetDigiCollectionID(G4String DCname)
G4double energy(const ThreeVector &p, const G4double m)
void StoreDigiCollection(G4VDigiCollection *aDC)
G4TDigiCollection< GammaRayTelDigi > GammaRayTelDigitsCollection
void SetDigiType(G4int DigiID)
std::vector< G4String > collectionName
static constexpr double keV