Import Geant4 9.2.0 source tree
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4DefaultLinearColorMap.hh,v 1.1 2007/11/04 04:06:08 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
|
||||
#ifndef G4DefaultLinearColorMap_h
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ScoreLogColorMap.hh,v 1.1 2008/03/25 02:18:39 akimura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
|
||||
#ifndef G4ScoreLogColorMap_h
|
||||
#define G4ScoreLogColorMap_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VScoreColorMap.hh"
|
||||
|
||||
class G4ScoreLogColorMap : public G4VScoreColorMap
|
||||
{
|
||||
public:
|
||||
G4ScoreLogColorMap(G4String mName);
|
||||
virtual ~G4ScoreLogColorMap();
|
||||
|
||||
public:
|
||||
virtual void GetMapColor(G4double val, G4double color[4]);
|
||||
|
||||
// draw a color chart
|
||||
virtual void DrawColorChartBar(G4int nPoint);
|
||||
virtual void DrawColorChartText(G4int nPoint);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ScoreQuantityMessenger.hh,v 1.4 2007/11/06 17:17:14 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
// (HISTORY)
|
||||
// 03-Sep-2007 T.Aso Command definitions are introduced.
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ScoringBox.hh,v 1.18 2007/11/06 09:41:34 akimura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
|
||||
#ifndef G4ScoringBox_h
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ScoringCylinder.hh,v 1.2 2008/03/23 14:32:12 akimura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
|
||||
#ifndef G4ScoringCylinder_h
|
||||
#define G4ScoringCylinder_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VScoringMesh.hh"
|
||||
class G4VPhysicalVolume;
|
||||
class G4LogicalVolume;
|
||||
class G4VPrimitiveScorer;
|
||||
|
||||
#include <vector>
|
||||
|
||||
class G4ScoringCylinder : public G4VScoringMesh
|
||||
{
|
||||
public:
|
||||
G4ScoringCylinder(G4String wName);
|
||||
~G4ScoringCylinder();
|
||||
|
||||
public:
|
||||
virtual void Construct(G4VPhysicalVolume* fWorldPhys);
|
||||
virtual void List() const;
|
||||
virtual void Draw(std::map<G4int, G4double*> * map, G4VScoreColorMap* colorMap, G4int axflg=111);
|
||||
virtual void DrawColumn(std::map<G4int, G4double*> * map, G4VScoreColorMap* colorMap,
|
||||
G4int idxProj, G4int idxColumn);
|
||||
|
||||
|
||||
void SetRMinMax(G4double rMinMax[2]) {
|
||||
for(int i = 0; i < 2; i++) fSize[i] = rMinMax[i];
|
||||
}
|
||||
void SetRMin(G4double rMin) {fSize[0] = rMin;}
|
||||
void SetRMax(G4double rMax) {fSize[1] = rMax;}
|
||||
void SetZSize(G4double zSize) {fSize[2] = zSize;}
|
||||
|
||||
void SetSegmentDirection(G4int dir) {fSegmentDirection = dir;} // supports the r-direction only at present.
|
||||
|
||||
void RegisterPrimitives(std::vector<G4VPrimitiveScorer *> & vps);
|
||||
|
||||
// get 3D index (r,z,phi) from sequential index
|
||||
void GetRZPhi(G4int index, G4int q[3]) const;
|
||||
|
||||
private:
|
||||
G4int fSegmentDirection; // =1: r, =2: phi, =3: z
|
||||
G4LogicalVolume * fMeshElementLogical;
|
||||
|
||||
void SetupGeometry(G4VPhysicalVolume * fWorldPhys);
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ScoringManager.hh,v 1.23 2007/11/14 20:41:17 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
|
||||
#ifndef G4ScoringManager_h
|
||||
|
||||
@@ -24,12 +24,14 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ScoringMessenger.hh,v 1.21 2007/11/07 04:12:07 akimura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// $Id: G4ScoringMessenger.hh,v 1.22 2008/02/29 12:23:14 akimura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
// (HISTORY)
|
||||
// 03-Sep-2007 T.Aso Command definitions are introduced.
|
||||
// 01-Nov-2007 M.Asai Class is splitted into two.
|
||||
// 18-Feb-2008 T.Aso Command for cylindrical scorer.
|
||||
// 18-Feb-2008 T.Aso Command for color chart display.
|
||||
|
||||
|
||||
#ifndef G4ScoringMessenger_h
|
||||
@@ -88,7 +90,7 @@ class G4ScoringMessenger: public G4UImessenger
|
||||
//
|
||||
G4UIdirectory* meshCreateDir;
|
||||
G4UIcmdWithAString* meshBoxCreateCmd;
|
||||
// G4UIcmdWithAString* meshTubsCreateCmd;
|
||||
G4UIcmdWithAString* meshCylinderCreateCmd;
|
||||
// G4UIcmdWithAString* meshSphereCreateCmd;
|
||||
//
|
||||
// Mesh commands
|
||||
@@ -100,8 +102,8 @@ class G4ScoringMessenger: public G4UImessenger
|
||||
//
|
||||
// Size commands
|
||||
G4UIcmdWith3VectorAndUnit* mBoxSizeCmd;
|
||||
G4UIcmdWith3VectorAndUnit* mTubsSizeCmd;
|
||||
G4UIcmdWith3VectorAndUnit* mSphereSizeCmd;
|
||||
G4UIcommand* mCylinderSizeCmd;
|
||||
// G4UIcmdWith3VectorAndUnit* mSphereSizeCmd;
|
||||
//
|
||||
// Division command
|
||||
G4UIcommand* mBinCmd;
|
||||
@@ -123,6 +125,7 @@ class G4ScoringMessenger: public G4UImessenger
|
||||
G4UIcmdWithoutParameter * listColorMapCmd;
|
||||
G4UIcmdWithAString * floatMinMaxCmd;
|
||||
G4UIcommand * colorMapMinMaxCmd;
|
||||
G4UIcommand * chartCmd;
|
||||
//
|
||||
// Dump scoring result to file
|
||||
G4UIcommand * dumpQtyToFileCmd;
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VScoreColorMap.hh,v 1.3 2007/11/06 17:17:14 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// $Id: G4VScoreColorMap.hh,v 1.5 2008/08/29 02:50:05 akimura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
|
||||
#ifndef G4VScoreColorMap_h
|
||||
@@ -33,6 +33,8 @@
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VVisManager;
|
||||
|
||||
class G4VScoreColorMap
|
||||
{
|
||||
public:
|
||||
@@ -51,22 +53,31 @@ class G4VScoreColorMap
|
||||
{ return ifFloat; }
|
||||
inline void SetMinMax(G4double minVal, G4double maxVal)
|
||||
{
|
||||
if(fMinVal >= fMaxVal)
|
||||
{ G4cerr << "G4VScoreColoMap::SetMinMax() : minimum is larger than maximum. Verify values you set, ["
|
||||
<< fMinVal << ", " << fMaxVal << "]" << G4endl; }
|
||||
else
|
||||
{ fMinVal = minVal; fMaxVal = maxVal; }
|
||||
if(minVal >= maxVal)
|
||||
{ G4cerr << "WARNING: G4VScoreColoMap::SetMinMax() : minimum is larger than or equal to maximum. Verify values you set, ["
|
||||
<< minVal << ", " << maxVal << "]" << G4endl;
|
||||
fMinVal = maxVal; fMaxVal = minVal;
|
||||
}
|
||||
else {
|
||||
fMinVal = minVal; fMaxVal = maxVal;
|
||||
}
|
||||
}
|
||||
inline G4double GetMin() const
|
||||
{ return fMinVal; }
|
||||
inline G4double GetMax() const
|
||||
{ return fMaxVal; }
|
||||
|
||||
// draw a color chart
|
||||
virtual void DrawColorChart(G4int nPoint = 5);
|
||||
virtual void DrawColorChartBar(G4int nPoint);
|
||||
virtual void DrawColorChartText(G4int nPoint);
|
||||
|
||||
protected:
|
||||
G4String fName;
|
||||
G4bool ifFloat;
|
||||
G4double fMinVal;
|
||||
G4double fMaxVal;
|
||||
G4VVisManager * fVisManager;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VScoreWriter.hh,v 1.2 2007/11/06 09:41:34 akimura Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
|
||||
#ifndef G4VScoreWriter_h
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VScoringMesh.hh,v 1.27 2007/11/06 17:17:14 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
//
|
||||
|
||||
#ifndef G4VScoringMesh_h
|
||||
|
||||
Reference in New Issue
Block a user