B1SD.hh 608 Bytes
Newer Older
1 2 3 4 5
#ifndef B1SD_h
#define B1SD_h 1

#include "G4VSensitiveDetector.hh"
#include "B1Hits.hh"
6
#include <vector>
7 8 9 10 11 12

class G4Step;
class G4HCofThisEvent;
class G4TouchableHistory;
class B1Hits;

13
using namespace std;
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
class B1SD: public G4VSensitiveDetector
{
public:
  //construtor
  B1SD(G4String SDname);
  //destrutor
  ~B1SD();

  G4bool ProcessHits(G4Step* step, G4TouchableHistory* ROhist);

  void Initialize(G4HCofThisEvent* HCE);
  //void EndOfEvent(G4HCofThisEvent* HCE);

private:
  B1HitsCollection* hitCollection;
  G4int HCID;
30
  std::vector<G4int> tracks;
31
  G4int track_id;
32
  G4String sdname;
33 34 35
};

#endif