44 fNumberOfCells(nCells),
49 fCellID =
new G4int[fNumberOfCells];
61 for(
G4int j=0;j<fNumberOfCells;j++)
70 if(edep<=0.)
return false;
76 if(fCellID[copyID]==-1)
86 fCellID[copyID] = icell - 1;
88 {
G4cout <<
" New Calorimeter Hit on CellID " << copyID <<
G4endl; }
92 (*fCalCollection)[fCellID[copyID]]->AddEdep( edep );
94 {
G4cout <<
" Energy added to CellID " << copyID <<
G4endl; }
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4THitsCollection< Par01CalorimeterHit > Par01CalorimeterHitsCollection
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)
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)