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 | // Authors: S. Guatelli and M. G. Pia, INFN Genova, Italy |
---|
28 | // |
---|
29 | // Based on code developed by the undergraduate student G. Guerrieri |
---|
30 | // Note: this is a preliminary beta-version of the code; an improved |
---|
31 | // version will be distributed in the next Geant4 public release, compliant |
---|
32 | // with the design in a forthcoming publication, and subject to a |
---|
33 | // design and code review. |
---|
34 | // |
---|
35 | |
---|
36 | #ifdef G4ANALYSIS_USE |
---|
37 | #ifndef G4HUMANPHANTOMANALYSISMANAGER_HH |
---|
38 | #define G4HUMANPHANTOMANALYSISMANAGER_HH 1 |
---|
39 | |
---|
40 | #include "globals.hh" |
---|
41 | #include <vector> |
---|
42 | #include "G4ThreeVector.hh" |
---|
43 | #include <AIDA/AIDA.h> |
---|
44 | |
---|
45 | namespace AIDA |
---|
46 | { |
---|
47 | class ITree; |
---|
48 | class IHistogramFactory; |
---|
49 | class ITupleFactory; |
---|
50 | class ITuple; |
---|
51 | class IAnalysisFactory; |
---|
52 | class ITreeFactory; |
---|
53 | }; |
---|
54 | |
---|
55 | class G4HumanPhantomAnalysisManager { |
---|
56 | |
---|
57 | public: |
---|
58 | ~G4HumanPhantomAnalysisManager(); |
---|
59 | static G4HumanPhantomAnalysisManager* getInstance(); |
---|
60 | |
---|
61 | void book(); |
---|
62 | void bodyPartEnergyDeposit(G4int,G4double); |
---|
63 | void voxelLeftBreastEnergyDeposit(G4int, G4int, G4double); |
---|
64 | void voxelRightBreastEnergyDeposit(G4int, G4int, G4double); |
---|
65 | void finish(); |
---|
66 | |
---|
67 | private: |
---|
68 | static G4HumanPhantomAnalysisManager* instance; |
---|
69 | G4HumanPhantomAnalysisManager(); |
---|
70 | |
---|
71 | AIDA::IAnalysisFactory* aFact; |
---|
72 | AIDA::ITreeFactory* treeFact; |
---|
73 | AIDA::ITree* theTree; |
---|
74 | AIDA::IHistogramFactory* histogramFactory; |
---|
75 | AIDA::ITupleFactory *tupFact; |
---|
76 | AIDA::ITuple *ntuple; |
---|
77 | AIDA::IHistogram2D* voxelLeftBreast; |
---|
78 | AIDA::IHistogram2D* voxelRightBreast; |
---|
79 | }; |
---|
80 | #endif |
---|
81 | #endif |
---|
82 | |
---|
83 | |
---|
84 | |
---|
85 | |
---|