Files
geant4/examples/novice/N05/include/ExN05CalorimeterSD.hh
T
2016-06-08 15:28:20 +02:00

47 lines
1.0 KiB
C++

// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN05CalorimeterSD.hh,v 1.1.10.1 1999/12/07 20:47:33 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef ExN05CalorimeterSD_h
#define ExN05CalorimeterSD_h 1
#include "ExN05CalorimeterHit.hh"
#include "G4VSensitiveDetector.hh"
#include "G4Step.hh"
class ExN05CalorimeterSD : public G4VSensitiveDetector
{
public:
ExN05CalorimeterSD(G4String name, G4int nCells, G4String colName);
~ExN05CalorimeterSD();
void Initialize(G4HCofThisEvent*HCE);
G4bool ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist);
void EndOfEvent(G4HCofThisEvent*HCE);
void clear();
void DrawAll();
void PrintAll();
private:
ExN05CalorimeterHitsCollection *CalCollection;
int* CellID;
int numberOfCells;
int HCID;
};
#endif