99 if (edep == 0.)
return false;
112 G4int PlaneNumber = 0;
119 NChannel = PlaneNumber *
NbOfCALBars + CALBarNumber;
121 if (PlaneName ==
"CALLayerX" )
140 (*CalorimeterCollection)
141 [
ChitXID[NChannel]]->AddEnergy(edep);
145 if (PlaneName ==
"CALLayerY")
163 (*CalorimeterCollection)
164 [
ChitYID[NChannel]]->AddEnergy(edep);
175 static G4int HCID = -1;
G4int GetCollectionID(G4String colName)
static G4RunManager * GetRunManager()
void EndOfEvent(G4HCofThisEvent *)
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
~GammaRayTelCalorimeterSD()
GammaRayTelDetectorConstruction * Detector
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4String SensitiveDetectorName
void insert(G4String str)
G4VPhysicalVolume * GetVolume(G4int depth=0) const
const G4ThreeVector & GetPosition() const
GammaRayTelCalorimeterHitsCollection * CalorimeterCollection
G4double GetTotalEnergyDeposit() const
virtual G4int GetCopyNo() const =0
void AddEnergy(G4double de)
static G4SDManager * GetSDMpointer()
void SetCALPlaneNumber(G4int i)
G4CollectionNameVector collectionName
void Initialize(G4HCofThisEvent *)
G4THitsCollection< GammaRayTelCalorimeterHit > GammaRayTelCalorimeterHitsCollection
G4int GetNbOfCALLayers() const
GammaRayTelCalorimeterSD(G4String)
G4bool ProcessHits(G4Step *astep, G4TouchableHistory *ROHist)
void SetPos(G4ThreeVector xyz)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
const G4String & GetName() const
void SetCALBarNumber(G4int i)
G4int GetNbOfCALBars() const