![]() |
|
|||
File indexing completed on 2025-10-20 08:50:10
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 // G4ScoringCylinder 0027 // 0028 // Author: Makoto Asai 0029 // -------------------------------------------------------------------- 0030 #ifndef G4ScoringCylinder_h 0031 #define G4ScoringCylinder_h 1 0032 0033 #include "globals.hh" 0034 #include "G4VScoringMesh.hh" 0035 0036 #include <vector> 0037 0038 class G4VPhysicalVolume; 0039 class G4LogicalVolume; 0040 class G4VPrimitiveScorer; 0041 0042 class G4ScoringCylinder : public G4VScoringMesh 0043 { 0044 public: 0045 0046 G4ScoringCylinder(const G4String& wName); 0047 ~G4ScoringCylinder() override = default; 0048 0049 void List() const override; 0050 void Draw(RunScore* map, G4VScoreColorMap* colorMap, 0051 G4int axflg = 111) override; 0052 void DrawColumn(RunScore* map, G4VScoreColorMap* colorMap, 0053 G4int idxProj, G4int idxColumn) override; 0054 0055 void SetRMin(G4double rMin) { fSize[0] = rMin; } 0056 void SetRMax(G4double rMax) { fSize[1] = rMax; } 0057 void SetZSize(G4double zSize) { fSize[2] = zSize; } // half height 0058 0059 void RegisterPrimitives(std::vector<G4VPrimitiveScorer*>& vps); 0060 0061 // get 3D index (z,phi,r) from sequential index 0062 void GetRZPhi(G4int index, G4int q[3]) const; 0063 0064 protected: 0065 0066 void SetupGeometry(G4VPhysicalVolume* fWorldPhys) override; 0067 0068 private: 0069 0070 // Xin Dong 09302011 for Scorers 0071 enum IDX 0072 { 0073 IZ, 0074 IPHI, 0075 IR 0076 }; 0077 0078 void DumpVolumes(); 0079 void DumpSolids(G4int); 0080 void DumpLogVols(G4int); 0081 void DumpPhysVols(G4int); 0082 }; 0083 0084 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |