00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // ---------------------------------------------------------------------- 00030 // Class G4CellScoreComposer 00031 // 00032 // Class description: 00033 // This class will be created for every cell standard 00034 // scoring should be applied. It does the actual scoring. 00035 // GetStandardCellScoreValues() delivers the struct 00036 // G4CellScoreValues does calculations based on the 00037 // sums of scores and delivers the results in 00038 // G4CellScoreValues. 00039 // 00040 00041 // Author: Michael Dressel (Michael.Dressel@cern.ch) 00042 // ---------------------------------------------------------------------- 00043 00044 #ifndef G4CellScoreComposer_hh 00045 #define G4CellScoreComposer_hh G4CellScoreComposer_hh 00046 00047 #include "G4CellScoreValues.hh" 00048 00049 class G4Step; 00050 00051 class G4CellScoreComposer { 00052 public: // with description 00053 00054 G4CellScoreComposer(); 00055 00056 ~G4CellScoreComposer(); 00057 00058 void EstimatorCalculation(const G4Step &step); 00059 // get values for estimators based on 00060 // track length 00061 00062 void TrackEnters(); 00063 // to be called if a track enters the cell 00064 00065 void NewTrackPopedUp(); 00066 // to be caled if the cell popultion is increased 00067 00068 void SetCollisionWeight(G4double weight); 00069 // to be called for every collision 00070 // in the cell with the weight of the colliding particle 00071 00072 void SetImportnace(G4double importance); 00073 // informs G4CellScoreComposer about the importance of the cell 00074 00075 const G4CellScoreValues &GetStandardCellScoreValues() const; 00076 // return scores in G4CellScoreValues 00077 00078 private: 00079 mutable G4CellScoreValues fSCScoreValues; 00080 }; 00081 00082 std::ostream& operator<<(std::ostream &out, 00083 const G4CellScoreComposer &ps); 00084 00085 00086 00087 #endif 00088