source: trunk/source/digits_hits/utils/test/test2/include/Test2PhantomSD.hh@ 1358

Last change on this file since 1358 was 1350, checked in by garnier, 15 years ago

update to last version 4.9.4

File size: 2.8 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26
27#ifndef Test2PhantomSD_h
28#define Test2PhantomSD_h 1
29
30#include "G4VSensitiveDetector.hh"
31#include "Test2PhantomHit.hh"
32#include "G4StepStatus.hh"
33#include "G4Track.hh"
34#include "G4VSolid.hh"
35#include "G4VPhysicalVolume.hh"
36#include "G4VPVParameterisation.hh"
37#include "G4UnitsTable.hh"
38#include "G4GeometryTolerance.hh"
39
40class G4Step;
41class G4HCofThisEvent;
42class G4TouchableHistory;
43class G4VSolid;
44
45class Test2PhantomSD : public G4VSensitiveDetector {
46
47public:
48 Test2PhantomSD(G4String name, G4int segment[3]);
49 ~Test2PhantomSD();
50
51 void Initialize(G4HCofThisEvent * HCE);
52 G4bool ProcessHits(G4Step * aStep, G4TouchableHistory * ROhist);
53 void EndOfEvent(G4HCofThisEvent * HCE);
54 void clear();
55 void DrawAll();
56 void PrintAll();
57
58private:
59 G4VSolid* GetSolid(G4Step* aStep);
60 G4double GetVolume(G4Step* aStep);
61 G4double GetArea(G4Step* aStep);
62 G4int IsSelectedSurface(G4Step* aStep);
63 G4bool IsPassed(G4Step* aStep);
64 G4double GetAngleFactor(G4Step* aStep,G4int dirFlag);
65 G4bool IsSecondary(G4Step* aStep);
66 G4bool IsEnterOrFirstStep(G4Step* aStep);
67 G4bool IsExit(G4Step* aStep);
68
69private:
70 Test2PhantomHitsCollection * fPhantomCollection;
71 G4int nSegment[3];
72
73 G4int fCurrentTrkID;
74 G4double fCellTrack;
75
76};
77
78#endif
79
Note: See TracBrowser for help on using the repository browser.