Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:04

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