New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended test on Geant4 geometry #27592
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,12 +52,20 @@ | |
PhysicsTablesDirectory = cms.string('PhysicsTables'), | ||
StorePhysicsTables = cms.bool(False), | ||
RestorePhysicsTables = cms.bool(False), | ||
CheckOverlap = cms.untracked.bool(False), | ||
CheckGeometry = cms.bool(False), | ||
G4CheckOverlap = cms.PSet( | ||
Tolerance = cms.untracked.double(0.0), | ||
Resolution = cms.untracked.int32(10000), | ||
RegionFlag = cms.untracked.bool(True), # if true - selection by G4Region name | ||
gdmlFlag = cms.untracked.bool(True), # if true - dump gdml file | ||
OutputBaseName = cms.string('2017'), | ||
MaterialFlag = cms.bool(True), | ||
GeomFlag = cms.bool(True), | ||
OverlapFlag = cms.bool(False), | ||
RegionFlag = cms.bool(True), # if true - selection by G4Region name | ||
gdmlFlag = cms.bool(False), # if true - dump gdml file | ||
Verbose = cms.bool(True), | ||
Tolerance = cms.double(0.0), | ||
Resolution = cms.int32(10000), | ||
ErrorThreshold = cms.int32(1), | ||
Level = cms.int32(1), | ||
Depth = cms.int32(3), # -1 means check whatever depth | ||
PVname = cms.string(''), | ||
LVname = cms.string(''), | ||
NodeNames = cms.vstring('World') | ||
|
@@ -68,9 +76,9 @@ | |
VerboseEvents = cms.vint32(), | ||
VertexNumber = cms.vint32(), | ||
VerboseTracks = cms.vint32(), | ||
FileNameField = cms.untracked.string(''), | ||
FileNameGDML = cms.untracked.string(''), | ||
FileNameRegions = cms.untracked.string(''), | ||
FileNameField = cms.string(''), | ||
FileNameGDML = cms.string(''), | ||
FileNameRegions = cms.string(''), | ||
Watchers = cms.VPSet(), | ||
HepMCProductLabel = cms.InputTag("generatorSmeared"), | ||
theLHCTlinkTag = cms.InputTag("LHCTransport"), | ||
|
@@ -81,7 +89,7 @@ | |
), | ||
MagneticField = cms.PSet( | ||
UseLocalMagFieldManager = cms.bool(False), | ||
Verbosity = cms.untracked.bool(False), | ||
Verbosity = cms.bool(False), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @civanch similar question here for instance |
||
ConfGlobalMFM = cms.PSet( | ||
Volume = cms.string('OCMS'), | ||
OCMS = cms.PSet( | ||
|
@@ -118,7 +126,7 @@ | |
type = cms.string('SimG4Core/Physics/FTFP_BERT_EMM'), | ||
DummyEMPhysics = cms.bool(False), | ||
CutsPerRegion = cms.bool(True), | ||
CutsOnProton = cms.untracked.bool(True), | ||
CutsOnProton = cms.bool(True), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @civanch this I understand more |
||
DefaultCutValue = cms.double(1.0), ## cuts in cm | ||
G4BremsstrahlungThreshold = cms.double(0.5), ## cut in GeV | ||
Verbosity = cms.untracked.int32(0), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef SimG4Core_CMSG4CheckOverlap_H | ||
#define SimG4Core_CMSG4CheckOverlap_H | ||
|
||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include <fstream> | ||
|
||
class CustomUIsession; | ||
class G4VPhysicalVolume; | ||
|
||
class CMSG4CheckOverlap { | ||
public: | ||
CMSG4CheckOverlap(edm::ParameterSet const& p, std::string& regFile, CustomUIsession*, G4VPhysicalVolume* world); | ||
~CMSG4CheckOverlap(); | ||
|
||
private: | ||
void makeReportForMaterials(std::ofstream& fout); | ||
void makeReportForGeometry(std::ofstream& fout, G4VPhysicalVolume* world); | ||
void makeReportForOverlaps(std::ofstream& fout, const edm::ParameterSet& p); | ||
}; | ||
|
||
#endif |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef SimG4Core_CMSG4RegionReporter_H | ||
#define SimG4Core_CMSG4RegionReporter_H | ||
|
||
#include <string> | ||
|
||
class CMSG4RegionReporter { | ||
public: | ||
CMSG4RegionReporter(); | ||
|
||
~CMSG4RegionReporter(); | ||
|
||
void ReportRegions(const std::string& ss); | ||
}; | ||
|
||
#endif |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@civanch why this and other verbosity flags are moved from untracked to tracked? What is the rationale behind it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabiocos, "verbosity" parameters were added by different peoples and historically some are tracked, another untracked. The way how these parameters are used is well defined: only for debuging. They mainly are inside this base python file. Likely some may be removed, another may stay "tracked".