[814] | 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 | // $Id: G4CellScoreComposer.hh,v 1.2 2006/06/29 18:05:06 gunter Exp $ |
---|
[1012] | 28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
[814] | 29 | // |
---|
| 30 | // ---------------------------------------------------------------------- |
---|
| 31 | // Class G4CellScoreComposer |
---|
| 32 | // |
---|
| 33 | // Class description: |
---|
| 34 | // This class will be created for every cell standard |
---|
| 35 | // scoring should be applied. It does the actual scoring. |
---|
| 36 | // GetStandardCellScoreValues() delivers the struct |
---|
| 37 | // G4CellScoreValues does calculations based on the |
---|
| 38 | // sums of scores and delivers the results in |
---|
| 39 | // G4CellScoreValues. |
---|
| 40 | // |
---|
| 41 | |
---|
| 42 | // Author: Michael Dressel (Michael.Dressel@cern.ch) |
---|
| 43 | // ---------------------------------------------------------------------- |
---|
| 44 | |
---|
| 45 | #ifndef G4CellScoreComposer_hh |
---|
| 46 | #define G4CellScoreComposer_hh G4CellScoreComposer_hh |
---|
| 47 | |
---|
| 48 | #include "G4CellScoreValues.hh" |
---|
| 49 | |
---|
| 50 | class G4Step; |
---|
| 51 | |
---|
| 52 | class G4CellScoreComposer { |
---|
| 53 | public: // with description |
---|
| 54 | |
---|
| 55 | G4CellScoreComposer(); |
---|
| 56 | |
---|
| 57 | ~G4CellScoreComposer(); |
---|
| 58 | |
---|
| 59 | void EstimatorCalculation(const G4Step &step); |
---|
| 60 | // get values for estimators based on |
---|
| 61 | // track length |
---|
| 62 | |
---|
| 63 | void TrackEnters(); |
---|
| 64 | // to be called if a track enters the cell |
---|
| 65 | |
---|
| 66 | void NewTrackPopedUp(); |
---|
| 67 | // to be caled if the cell popultion is increased |
---|
| 68 | |
---|
| 69 | void SetCollisionWeight(G4double weight); |
---|
| 70 | // to be called for every collision |
---|
| 71 | // in the cell with the weight of the colliding particle |
---|
| 72 | |
---|
| 73 | void SetImportnace(G4double importance); |
---|
| 74 | // informs G4CellScoreComposer about the importance of the cell |
---|
| 75 | |
---|
| 76 | const G4CellScoreValues &GetStandardCellScoreValues() const; |
---|
| 77 | // return scores in G4CellScoreValues |
---|
| 78 | |
---|
| 79 | private: |
---|
| 80 | mutable G4CellScoreValues fSCScoreValues; |
---|
| 81 | }; |
---|
| 82 | |
---|
| 83 | std::ostream& operator<<(std::ostream &out, |
---|
| 84 | const G4CellScoreComposer &ps); |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | #endif |
---|
| 89 | |
---|