style: change include G4class

This commit is contained in:
liuyihui 2023-04-09 22:30:59 +08:00
parent cf74c63e6b
commit 584c38c0ff
21 changed files with 118 additions and 111 deletions

View File

@ -1,5 +1,5 @@
#ifndef GENEANALYSISMANAGER_HH #ifndef GeneAnalysisManager_hh
#define GENEANALYSISMANAGER_HH 1 #define GeneAnalysisManager_hh 1
#include "TFile.h" #include "TFile.h"
#include "TROOT.h" #include "TROOT.h"

View File

@ -1,11 +1,11 @@
#ifndef GeneDetectorConstruction_H #ifndef GeneDetectorConstruction_hh
#define GeneDetectorConstruction_H 1 #define GeneDetectorConstruction_hh 1
class G4LogicalVolume; class G4LogicalVolume;
class G4VPhysicalVolume; class G4VPhysicalVolume;
class GeneDetectorConstructionMessenger; class GeneDetectorConstructionMessenger;
#include <G4VUserDetectorConstruction.hh> #include "G4VUserDetectorConstruction.hh"
#include <globals.hh> #include <globals.hh>
class GeneDetectorConstruction : public G4VUserDetectorConstruction { class GeneDetectorConstruction : public G4VUserDetectorConstruction {

View File

@ -1,7 +1,7 @@
#ifndef GeneDetectorConstructionMessenger_h #ifndef GeneDetectorConstructionMessenger_hh
#define GeneDetectorConstructionMessenger_h 1 #define GeneDetectorConstructionMessenger_hh 1
#include <G4UImessenger.hh> #include "G4UImessenger.hh"
#include <globals.hh> #include <globals.hh>
class GeneDetectorConstruction; class GeneDetectorConstruction;

View File

@ -1,7 +1,7 @@
#ifndef GeneEventAction_HH #ifndef GeneEventAction_hh
#define GeneEventAction_HH 1 #define GeneEventAction_hh 1
#include <G4UserEventAction.hh> #include "G4UserEventAction.hh"
#include <globals.hh> #include <globals.hh>
class GeneEventAction : public G4UserEventAction { class GeneEventAction : public G4UserEventAction {

View File

@ -1,10 +1,10 @@
#ifndef GeneHe3detHit_h #ifndef GeneHe3detHit_hh
#define GeneHe3detHit_h 1 #define GeneHe3detHit_hh 1
#include <G4Allocator.hh> #include "G4Allocator.hh"
#include <G4THitsCollection.hh> #include "G4THitsCollection.hh"
#include <G4ThreeVector.hh> #include "G4ThreeVector.hh"
#include <G4VHit.hh> #include "G4VHit.hh"
class GeneHe3detHit : public G4VHit { class GeneHe3detHit : public G4VHit {
public: public:

View File

@ -1,8 +1,8 @@
#ifndef GeneHe3detSD_HH #ifndef GeneHe3detSD_hh
#define GeneHe3detSD_HH 1 #define GeneHe3detSD_hh 1
#include "G4VSensitiveDetector.hh"
#include "GeneHe3detHit.hh" #include "GeneHe3detHit.hh"
#include <G4VSensitiveDetector.hh>
#include <globals.hh> #include <globals.hh>
class G4Step; class G4Step;

View File

@ -0,0 +1,7 @@
#ifndef GENEPHYSICSLIST_HH
#define GENEPHYSICSLIST_HH 1
#include "G4VUserPhysicsList.hh"
#include "globals.hh"
#endif

View File

@ -1,7 +1,7 @@
#ifndef GenePrimaryGeneratorAction_H #ifndef GenePrimaryGeneratorAction_hh
#define GenePrimaryGeneratorAction_H 1 #define GenePrimaryGeneratorAction_hh 1
#include <G4VUserPrimaryGeneratorAction.hh> #include "G4VUserPrimaryGeneratorAction.hh"
#include <globals.hh> #include <globals.hh>
class G4ParticleGun; class G4ParticleGun;

View File

@ -1,7 +1,7 @@
#ifndef GenePrimaryGeneratorActionMessenger_h #ifndef GenePrimaryGeneratorActionMessenger_hh
#define GenePrimaryGeneratorActionMessenger_h 1 #define GenePrimaryGeneratorActionMessenger_hh 1
#include <G4UImessenger.hh> #include "G4UImessenger.hh"
#include <globals.hh> #include <globals.hh>
class GenePrimaryGeneratorAction; class GenePrimaryGeneratorAction;

View File

@ -1,7 +1,7 @@
#ifndef GeneRunAction_HH #ifndef GeneRunAction_hh
#define GeneRunAction_HH 1 #define GeneRunAction_hh 1
#include <G4UserRunAction.hh> #include "G4UserRunAction.hh"
#include <globals.hh> #include <globals.hh>
class G4String; class G4String;

View File

@ -1,7 +1,7 @@
#ifndef GeneRunActionMessenger_h #ifndef GeneRunActionMessenger_hh
#define GeneRunActionMessenger_h 1 #define GeneRunActionMessenger_hh 1
#include <G4UImessenger.hh> #include "G4UImessenger.hh"
#include <globals.hh> #include <globals.hh>
class GeneRunAction; class GeneRunAction;

View File

@ -1,20 +1,20 @@
#include <TROOT.h> #include "TROOT.h"
#include <time.h> #include "time.h"
#include "G4RunManager.hh"
#include "G4SystemOfUnits.hh"
#include "G4UIExecutive.hh"
#include "G4UImanager.hh"
#include "G4UItcsh.hh"
#include "G4UIterminal.hh"
#include "G4UnitsTable.hh"
#include "G4VisExecutive.hh"
#include "GeneDetectorConstruction.hh" #include "GeneDetectorConstruction.hh"
#include "GeneEventAction.hh" #include "GeneEventAction.hh"
#include "GenePrimaryGeneratorAction.hh" #include "GenePrimaryGeneratorAction.hh"
#include "GeneRunAction.hh" #include "GeneRunAction.hh"
#include <G4RunManager.hh> #include "QGSP_BERT_HP.hh"
#include <G4SystemOfUnits.hh> #include "Randomize.hh"
#include <G4UIExecutive.hh>
#include <G4UImanager.hh>
#include <G4UItcsh.hh>
#include <G4UIterminal.hh>
#include <G4UnitsTable.hh>
#include <G4VisExecutive.hh>
#include <QGSP_BERT_HP.hh>
#include <Randomize.hh>
int main(int argc, char **argv) { int main(int argc, char **argv) {
G4UIExecutive *ui = nullptr; G4UIExecutive *ui = nullptr;

View File

@ -1,23 +1,23 @@
#include "GeneDetectorConstruction.hh" #include "GeneDetectorConstruction.hh"
#include "G4Box.hh"
#include "G4Colour.hh"
#include "G4LogicalBorderSurface.hh"
#include "G4LogicalVolume.hh"
#include "G4Material.hh"
#include "G4NistManager.hh"
#include "G4OpticalSurface.hh"
#include "G4PVPlacement.hh"
#include "G4PhysicalConstants.hh"
#include "G4RotationMatrix.hh"
#include "G4SDManager.hh"
#include "G4SubtractionSolid.hh"
#include "G4SystemOfUnits.hh"
#include "G4ThreeVector.hh"
#include "G4Tubs.hh"
#include "G4VisAttributes.hh"
#include "GeneDetectorConstructionMessenger.hh" #include "GeneDetectorConstructionMessenger.hh"
#include "GeneHe3detSD.hh" #include "GeneHe3detSD.hh"
#include <G4Box.hh>
#include <G4Colour.hh>
#include <G4LogicalBorderSurface.hh>
#include <G4LogicalVolume.hh>
#include <G4Material.hh>
#include <G4NistManager.hh>
#include <G4OpticalSurface.hh>
#include <G4PVPlacement.hh>
#include <G4PhysicalConstants.hh>
#include <G4RotationMatrix.hh>
#include <G4SDManager.hh>
#include <G4SubtractionSolid.hh>
#include <G4SystemOfUnits.hh>
#include <G4ThreeVector.hh>
#include <G4Tubs.hh>
#include <G4VisAttributes.hh>
#include <globals.hh> #include <globals.hh>
GeneDetectorConstruction::GeneDetectorConstruction() { GeneDetectorConstruction::GeneDetectorConstruction() {
@ -142,11 +142,11 @@ G4VPhysicalVolume* GeneDetectorConstruction::Construct() {
ej_200_OpticalSurface->SetModel(glisur); ej_200_OpticalSurface->SetModel(glisur);
// ********** Geometry ********** // ********** Geometry **********
// world // World
G4double world_xyz = 2. * m; G4double world_xyz = 2. * m;
G4Box* solidWorld = new G4Box("world", 0.5 * world_xyz, 0.5 * world_xyz, 0.5 * world_xyz); G4Box* solidWorld = new G4Box("World", 0.5 * world_xyz, 0.5 * world_xyz, 0.5 * world_xyz);
logicalWorld = new G4LogicalVolume(solidWorld, mat_Air, "world", 0, 0, 0); logicalWorld = new G4LogicalVolume(solidWorld, mat_Air, "World", 0, 0, 0);
physicalWorld = new G4PVPlacement(0, G4ThreeVector(), "world", logicalWorld, physicalWorld = new G4PVPlacement(0, G4ThreeVector(), "World", logicalWorld,
NULL, // mother volume NULL, // mother volume
false, // no boolean operation false, // no boolean operation
0); // copy number 0); // copy number

View File

@ -1,10 +1,10 @@
#include "GeneDetectorConstructionMessenger.hh" #include "GeneDetectorConstructionMessenger.hh"
#include "G4UIcmdWithADouble.hh"
#include "G4UIcmdWithADoubleAndUnit.hh"
#include "G4UIcmdWithAString.hh"
#include "G4UIdirectory.hh"
#include "GeneDetectorConstruction.hh" #include "GeneDetectorConstruction.hh"
#include <G4UIcmdWithADouble.hh>
#include <G4UIcmdWithADoubleAndUnit.hh>
#include <G4UIcmdWithAString.hh>
#include <G4UIdirectory.hh>
GeneDetectorConstructionMessenger::GeneDetectorConstructionMessenger(GeneDetectorConstruction* pDets) GeneDetectorConstructionMessenger::GeneDetectorConstructionMessenger(GeneDetectorConstruction* pDets)
: pDetectorConstruction(pDets) { : pDetectorConstruction(pDets) {

View File

@ -1,20 +1,20 @@
#include "GeneEventAction.hh" #include "GeneEventAction.hh"
#include "G4Event.hh"
#include "G4EventManager.hh"
#include "G4HCofThisEvent.hh"
#include "G4SDManager.hh"
#include "G4SystemOfUnits.hh"
#include "G4Trajectory.hh"
#include "G4TrajectoryContainer.hh"
#include "G4UImanager.hh"
#include "G4UnitsTable.hh"
#include "G4VHitsCollection.hh"
#include "G4VVisManager.hh"
#include "G4ios.hh"
#include "GeneAnalysisManager.hh" #include "GeneAnalysisManager.hh"
#include "GeneHe3detHit.hh" #include "GeneHe3detHit.hh"
#include "Randomize.hh" #include "Randomize.hh"
#include <G4Event.hh>
#include <G4EventManager.hh>
#include <G4HCofThisEvent.hh>
#include <G4SDManager.hh>
#include <G4SystemOfUnits.hh>
#include <G4Trajectory.hh>
#include <G4TrajectoryContainer.hh>
#include <G4UImanager.hh>
#include <G4UnitsTable.hh>
#include <G4VHitsCollection.hh>
#include <G4VVisManager.hh>
#include <G4ios.hh>
GeneEventAction::GeneEventAction() : GeneHe3detSDCollID(-1), drawFlag("non") {} GeneEventAction::GeneEventAction() : GeneHe3detSDCollID(-1), drawFlag("non") {}

View File

@ -1,10 +1,10 @@
#include "GeneHe3detHit.hh" #include "GeneHe3detHit.hh"
#include <G4Circle.hh> #include "G4Circle.hh"
#include <G4Colour.hh> #include "G4Colour.hh"
#include <G4UnitsTable.hh> #include "G4UnitsTable.hh"
#include <G4VVisManager.hh> #include "G4VVisManager.hh"
#include <G4VisAttributes.hh> #include "G4VisAttributes.hh"
#include <iomanip> #include <iomanip>

View File

@ -1,14 +1,14 @@
#include "GeneHe3detSD.hh" #include "GeneHe3detSD.hh"
#include "G4HCofThisEvent.hh"
#include "G4Ions.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTypes.hh"
#include "G4SDManager.hh"
#include "G4Step.hh"
#include "G4VPhysicalVolume.hh"
#include "G4ios.hh"
#include "GeneHe3detHit.hh" #include "GeneHe3detHit.hh"
#include <G4HCofThisEvent.hh>
#include <G4Ions.hh>
#include <G4ParticleDefinition.hh>
#include <G4ParticleTypes.hh>
#include <G4SDManager.hh>
#include <G4Step.hh>
#include <G4VPhysicalVolume.hh>
#include <G4ios.hh>
GeneHe3detSD::GeneHe3detSD(G4String name) : G4VSensitiveDetector(name) { GeneHe3detSD::GeneHe3detSD(G4String name) : G4VSensitiveDetector(name) {
G4String HCname = "GeneHe3detHitCollection"; G4String HCname = "GeneHe3detHitCollection";

View File

@ -1,16 +1,16 @@
#include "GenePrimaryGeneratorAction.hh"
#include "TGraph.h" #include "TGraph.h"
#include "TH1F.h" #include "TH1F.h"
#include "G4Event.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleGun.hh"
#include "G4ParticleTable.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
#include "GeneAnalysisManager.hh" #include "GeneAnalysisManager.hh"
#include "GenePrimaryGeneratorAction.hh"
#include "GenePrimaryGeneratorActionMessenger.hh" #include "GenePrimaryGeneratorActionMessenger.hh"
#include "Randomize.hh" #include "Randomize.hh"
#include <G4Event.hh>
#include <G4ParticleDefinition.hh>
#include <G4ParticleGun.hh>
#include <G4ParticleTable.hh>
#include <G4PhysicalConstants.hh>
#include <G4SystemOfUnits.hh>
#include <globals.hh> #include <globals.hh>
#include "fstream" #include "fstream"

View File

@ -1,10 +1,10 @@
#include "GenePrimaryGeneratorActionMessenger.hh" #include "GenePrimaryGeneratorActionMessenger.hh"
#include "G4SystemOfUnits.hh"
#include "G4UIcmdWithADoubleAndUnit.hh"
#include "G4UIcmdWithAString.hh"
#include "G4UIdirectory.hh"
#include "GenePrimaryGeneratorAction.hh" #include "GenePrimaryGeneratorAction.hh"
#include <G4SystemOfUnits.hh>
#include <G4UIcmdWithADoubleAndUnit.hh>
#include <G4UIcmdWithAString.hh>
#include <G4UIdirectory.hh>
GenePrimaryGeneratorActionMessenger::GenePrimaryGeneratorActionMessenger(GenePrimaryGeneratorAction* pPrimary) GenePrimaryGeneratorActionMessenger::GenePrimaryGeneratorActionMessenger(GenePrimaryGeneratorAction* pPrimary)
: pPrimaryGeneratorAction(pPrimary) { : pPrimaryGeneratorAction(pPrimary) {

View File

@ -1,12 +1,12 @@
#include "GeneRunAction.hh" #include "GeneRunAction.hh"
#include "G4Run.hh"
#include "G4SystemOfUnits.hh"
#include "G4UImanager.hh"
#include "G4VVisManager.hh"
#include "G4ios.hh"
#include "GeneAnalysisManager.hh" #include "GeneAnalysisManager.hh"
#include "GeneRunActionMessenger.hh" #include "GeneRunActionMessenger.hh"
#include <G4Run.hh>
#include <G4SystemOfUnits.hh>
#include <G4UImanager.hh>
#include <G4VVisManager.hh>
#include <G4ios.hh>
GeneRunAction::GeneRunAction() : G4UserRunAction() { GeneRunAction::GeneRunAction() : G4UserRunAction() {
RunNo = "00"; RunNo = "00";

View File

@ -1,8 +1,8 @@
#include "GeneRunActionMessenger.hh" #include "GeneRunActionMessenger.hh"
#include "G4UIcmdWithAString.hh"
#include "G4UIdirectory.hh"
#include "GeneRunAction.hh" #include "GeneRunAction.hh"
#include <G4UIcmdWithAString.hh>
#include <G4UIdirectory.hh>
GeneRunActionMessenger::GeneRunActionMessenger(GeneRunAction* pRun) : pRunAction(pRun) { GeneRunActionMessenger::GeneRunActionMessenger(GeneRunAction* pRun) : pRunAction(pRun) {
RunDir = new G4UIdirectory("/Gene/Run/"); RunDir = new G4UIdirectory("/Gene/Run/");