49 fNumberOfCells(nCells),
54 fCellID =
new G4int[fNumberOfCells];
70 for(
G4int j=0;j<fNumberOfCells;j++)
81 if(edep<=0.)
return false;
87 if(fCellID[copyID]==-1)
97 fCellID[copyID] = icell - 1;
99 {
G4cout <<
" New Calorimeter Hit on CellID " << copyID <<
G4endl; }
103 (*fCalCollection)[fCellID[copyID]]->AddEdep( edep );
105 {
G4cout <<
" Energy added to CellID " << copyID <<
G4endl; }
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4THitsCollection< Par01CalorimeterHit > Par01CalorimeterHitsCollection
Definition of the Par01CalorimeterHit class.
void SetEdep(G4double de)
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
void SetPos(G4ThreeVector xyz)
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
G4int GetReplicaNumber(G4int depth=0) const
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
Definition of the Par01CalorimeterSD class.
G4LogicalVolume * GetLogicalVolume() const
static G4SDManager * GetSDMpointer()
virtual void Initialize(G4HCofThisEvent *HCE)
const G4AffineTransform & GetTopTransform() const
G4CollectionNameVector collectionName
const G4NavigationHistory * GetHistory() const
void SetRot(G4RotationMatrix rmat)
virtual void EndOfEvent(G4HCofThisEvent *HCE)
Par01CalorimeterSD(G4String name, G4int nCells, G4String colName)