![]() |
|
|||
File indexing completed on 2025-09-15 08:59:23
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4ScoringBox 0027 // 0028 // Author: Makoto Asai 0029 // -------------------------------------------------------------------- 0030 #ifndef G4ScoringBox_h 0031 #define G4ScoringBox_h 1 0032 0033 #include "globals.hh" 0034 #include "G4VScoringMesh.hh" 0035 #include "G4RotationMatrix.hh" 0036 0037 #include <vector> 0038 0039 class G4VPhysicalVolume; 0040 class G4LogicalVolume; 0041 class G4VPrimitiveScorer; 0042 class G4VScoreColorMap; 0043 0044 class G4ScoringBox : public G4VScoringMesh 0045 { 0046 public: 0047 0048 G4ScoringBox(const G4String& wName); 0049 ~G4ScoringBox() override = default; 0050 0051 void List() const override; 0052 void Draw(RunScore* map, G4VScoreColorMap* colorMap, G4int axflg = 111) override; 0053 void DrawColumn(RunScore* map, G4VScoreColorMap* colorMap, G4int idxProj, 0054 G4int idxColumn) override; 0055 0056 // set a direction to segment this mesh 0057 inline void SetSegmentDirection(G4int dir) { fSegmentDirection = dir; } 0058 0059 protected: 0060 0061 // construct this mesh 0062 void SetupGeometry(G4VPhysicalVolume* fWorldPhys) override; 0063 0064 private: 0065 0066 // get replicated position from 3D index (x,y,z) 0067 G4ThreeVector GetReplicaPosition(G4int x, G4int y, G4int z); 0068 // get 3D index (x,y,z) from sequential index 0069 void GetXYZ(G4int index, G4int q[3]) const; 0070 // get sequential index from 3D index (x,y,z) 0071 G4int GetIndex(G4int x, G4int y, G4int z) const; 0072 0073 private: 0074 0075 G4int fSegmentDirection; // =1: x, =2: y, =3: z 0076 }; 0077 0078 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |