Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,046 changes: 2,046 additions & 0 deletions UVS_45total.txt

Large diffs are not rendered by default.

40 changes: 25 additions & 15 deletions include/qsimDetectorConstruction.hh
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@

//From brads_qsim branch
#ifndef qsimDetectorConstruction_h
#define qsimDetectorConstruction_h 1

#include "globals.hh"
#include "G4SubtractionSolid.hh"
#include "G4VUserDetectorConstruction.hh"

#include <iostream>
#include <fstream>
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

class qsimDetectorConstruction : public G4VUserDetectorConstruction
{
public:
qsimDetectorConstruction();
~qsimDetectorConstruction();
//void StandModeSet();
void DetModeSet(G4int );
void StandModeSet(G4int );
public:
void DetModeSet(G4int );
void StandModeSet(G4int );
void LGReflectivitySet(G4double );
public:
G4VPhysicalVolume* Construct();

private:
G4int fDetMode;
G4int fStandMode;
G4double det_x;
G4double det_y;
G4double det_z;

G4double quartz_x;
G4double quartz_y;
G4double quartz_z;
//G4int fStandMode;
G4int fDetMode;
G4int fStandMode;

G4double quartz_zPos;

Expand All @@ -40,12 +45,17 @@ class qsimDetectorConstruction : public G4VUserDetectorConstruction
G4double rout;
G4double lngth;

public:
G4double fDetAngle, fQuartzPolish;
// POSSCAN
G4double fDetPosX, fDetPosY;


std::ifstream myfile;
std::ofstream outfile;
std::ifstream myfile2;

public:
G4int gasType;
G4double beam_angle;
G4double fDetAngle, fQuartzPolish;
G4double fLGReflectivity;
// POSSCAN
G4double fDetPosX, fDetPosY;
};

//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Expand Down
6 changes: 6 additions & 0 deletions include/qsimMessenger.hh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class qsimDetectorConstruction;
class qsimEventAction;
class qsimPrimaryGeneratorAction;
class qsimSteppingAction;
class qsimOpticalPhysics;

class G4UIcmdWithAnInteger;
class G4UIcmdWithADoubleAndUnit;
Expand All @@ -31,6 +32,7 @@ class qsimMessenger : public G4UImessenger {

void SetIO( qsimIO *io ){ fIO = io; }
void SetPriGen( qsimPrimaryGeneratorAction *pg ){ fprigen = pg; }
void SetOptPhys( qsimOpticalPhysics *op ){ foptical = op; }
void SetDetCon( qsimDetectorConstruction *dc ){ fdetcon= dc; }
void SetEvAct( qsimEventAction *ev ){ fevact = ev; }
void SetStepAct( qsimSteppingAction *st ){ fStepAct = st; }
Expand All @@ -43,16 +45,20 @@ class qsimMessenger : public G4UImessenger {
qsimEventAction *fevact;
qsimPrimaryGeneratorAction *fprigen;
qsimSteppingAction *fStepAct;
qsimOpticalPhysics *foptical;

G4UIdirectory *fRemollDir;

G4UIcmdWithAnInteger *seedCmd;
G4UIcmdWithAString *fileCmd;
//
G4UIcmdWithABool *fAllowCerenkovCmd;
G4UIcmdWithABool *fAllowScintillationCmd;
//G4UIcmdWithAnInteger *fStandModeCmd;
G4UIcmdWithAnInteger *fDetModeCmd;
G4UIcmdWithAnInteger *fStandModeCmd;
G4UIcmdWithAnInteger *fSourceModeCmd;
G4UIcmdWithADouble *fLGReflectivityCmd;
G4UIcmdWithADouble *fQuartzPolishCmd;
G4UIcmdWithADoubleAndUnit *fDetAngleCmd;
// POSSCAN
Expand Down
10 changes: 9 additions & 1 deletion include/qsimOpticalPhysics.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ class qsimOpticalPhysics : public G4VPhysicsConstructor
{
public:

qsimOpticalPhysics();
qsimOpticalPhysics(G4bool toggle=true);
virtual ~qsimOpticalPhysics();
~qsimOpticalPhysics();
//virtual ~qsimOpticalPhysics();

virtual void ConstructParticle();
virtual void ConstructProcess();
Expand All @@ -32,6 +34,9 @@ class qsimOpticalPhysics : public G4VPhysicsConstructor
G4OpMieHG* GetMieHGScatteringProcess() {return theMieHGScatteringProcess;}
G4OpBoundaryProcess* GetBoundaryProcess() { return theBoundaryProcess;}

void AllowCerenkovSet(G4bool );
void AllowScintillationSet(G4bool );

void SetNbOfPhotonsCerenkov(G4int);

private:
Expand All @@ -43,6 +48,9 @@ private:
G4OpRayleigh* theRayleighScattering;
G4OpMieHG* theMieHGScatteringProcess;
G4OpBoundaryProcess* theBoundaryProcess;

bool fAllowCerenkov;
bool fAllowScintillation;

G4bool AbsorptionOn;

Expand Down
Loading