65 HitLateralID =
new G4int[NbOfACDLateralTiles];
66 HitTopID =
new G4int[NbOfACDTopTiles];
74 delete [] HitLateralID;
84 for (
G4int i=0;i<NbOfACDLateralTiles;i++)
89 for (
G4int j=0;j<NbOfACDTopTiles;j++)
102 if ((edep/
keV == 0.))
return false;
116 if (ACDTileName ==
"ACT" )
120 if (HitTopID[ACDTileNumber]==-1)
128 HitTopID[ACDTileNumber] =
129 AnticoincidenceCollection->
insert(AnticoincidenceHit) -1;
133 (*AnticoincidenceCollection)
134 [HitTopID[ACDTileNumber]]->AddEnergy(edep);
138 if (ACDTileName ==
"ACL1")
142 if (HitLateralID[ACDTileNumber]==-1)
150 HitLateralID[ACDTileNumber] =
151 AnticoincidenceCollection->
insert(AnticoincidenceHit) -1;
155 (*AnticoincidenceCollection)
156 [HitLateralID[ACDTileNumber]]->AddEnergy(edep);
160 if (ACDTileName ==
"ACL2")
164 if (HitLateralID[ACDTileNumber]==-1)
172 HitLateralID[ACDTileNumber] =
173 AnticoincidenceCollection->
insert(AnticoincidenceHit) -1;
177 (*AnticoincidenceCollection)
178 [HitLateralID[ACDTileNumber]]->AddEnergy(edep);
188 static G4int HCID = -1;
195 for (
G4int i=0;i<NbOfACDLateralTiles;i++)
197 HitLateralID[i] = -1;
200 for (
G4int j=0;j<NbOfACDTopTiles;j++)
~GammaRayTelAnticoincidenceSD()
G4String SensitiveDetectorName
G4int GetNbOfACDLateralTiles()
G4int GetCollectionID(G4String colName)
G4VPhysicalVolume * GetVolume(G4int depth=0) const
void SetACDTileNumber(G4int i)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
const G4VTouchable * GetTouchable() const
G4bool ProcessHits(G4Step *astep, G4TouchableHistory *)
void EndOfEvent(G4HCofThisEvent *)
void AddEnergy(G4double de)
G4StepPoint * GetPreStepPoint() const
G4THitsCollection< GammaRayTelAnticoincidenceHit > GammaRayTelAnticoincidenceHitsCollection
void Initialize(G4HCofThisEvent *)
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
const G4String & GetName() const
const G4ThreeVector & GetPosition() const
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
GammaRayTelAnticoincidenceSD(G4String)
static G4RunManager * GetRunManager()
static G4SDManager * GetSDMpointer()
void SetPos(G4ThreeVector xyz)
virtual G4int GetCopyNo() const =0
G4CollectionNameVector collectionName
G4int GetNbOfACDTopTiles()