Skip to content

Commit

Permalink
Code style changes, to please the cmsbuild bot.
Browse files Browse the repository at this point in the history
  • Loading branch information
lowette committed May 30, 2024
1 parent 20cf058 commit 8e4943c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
1 change: 0 additions & 1 deletion SimG4Core/CustomPhysics/src/CMSAntiSQ.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CMSAntiSQ* CMSAntiSQ::Definition(double mass) {
return theInstance;
}


CMSAntiSQ* CMSAntiSQ::AntiSQ(double mass) {
return Definition(mass * GeV); // will use correct mass if instance exists
}
1 change: 0 additions & 1 deletion SimG4Core/CustomPhysics/src/CMSSQ.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CMSSQ* CMSSQ::Definition(double mass) {
return theInstance;
}


CMSSQ* CMSSQ::SQ(double mass) {
return Definition(mass * GeV); // will use correct mass if instance exists
}
4 changes: 3 additions & 1 deletion SimG4Core/CustomPhysics/src/CMSSQInelasticCrossSection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ G4bool CMSSQInelasticCrossSection::IsElementApplicable(const G4DynamicParticle*
return true;
}

G4double CMSSQInelasticCrossSection::GetElementCrossSection(const G4DynamicParticle* aPart, G4int Z, const G4Material*) {
G4double CMSSQInelasticCrossSection::GetElementCrossSection(const G4DynamicParticle* aPart,
G4int Z,
const G4Material*) {
// return zero for particle instead of antiparticle
// sexaquark interaction with matter expected really tiny
if (aPart->GetDefinition() != theAntiSQ)
Expand Down
8 changes: 4 additions & 4 deletions SimG4Core/CustomPhysics/src/CMSSQLoopProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ G4VParticleChange* CMSSQLoopProcess::AlongStepDoIt(const G4Track& track, const G
}

G4double CMSSQLoopProcess::AlongStepGetPhysicalInteractionLength(const G4Track& track,
G4double previousStepSize,
G4double currentMinimumStep,
G4double& proposedSafety,
G4GPILSelection* selection) {
G4double previousStepSize,
G4double currentMinimumStep,
G4double& proposedSafety,
G4GPILSelection* selection) {
return 1. * centimeter;
}

Expand Down
4 changes: 2 additions & 2 deletions SimG4Core/CustomPhysics/src/CMSSQLoopProcessDiscr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ G4VParticleChange* CMSSQLoopProcessDiscr::PostStepDoIt(const G4Track& track, con
}

G4double CMSSQLoopProcessDiscr::PostStepGetPhysicalInteractionLength(const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition) {
G4double previousStepSize,
G4ForceCondition* condition) {
*condition = NotForced;
G4double intLength =
DBL_MAX; //by default the interaction length is super large, only when outside tracker make it 0 to be sure it will do the reset to the original position
Expand Down
8 changes: 5 additions & 3 deletions SimG4Core/CustomPhysics/src/CMSSQNeutronAnnih.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ G4HadFinalState* CMSSQNeutronAnnih::ApplyYourself(const G4HadProjectile& aTrack,
// << " A= " << A << " N= " << N;

G4LorentzVector lv1 = aParticle->Get4Momentum();
edm::LogVerbatim("CMSSWNeutronAnnih") << "The neutron Fermi momentum (mag, x, y, z) " << targetNucleus.GetFermiMomentum().mag() / MeV << " "
<< targetNucleus.GetFermiMomentum().x() / MeV << " " << targetNucleus.GetFermiMomentum().y() / MeV << " "
<< targetNucleus.GetFermiMomentum().z() / MeV;
edm::LogVerbatim("CMSSWNeutronAnnih") << "The neutron Fermi momentum (mag, x, y, z) "
<< targetNucleus.GetFermiMomentum().mag() / MeV << " "
<< targetNucleus.GetFermiMomentum().x() / MeV << " "
<< targetNucleus.GetFermiMomentum().y() / MeV << " "
<< targetNucleus.GetFermiMomentum().z() / MeV;

//calculate fermi momentum

Expand Down
12 changes: 6 additions & 6 deletions SimG4Core/CustomPhysics/test/Sexaquark_RunIIFall18GenSim_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
process.load('RecoVertex.BeamSpotProducer.BeamSpot_cfi')

# Lengthy message logs - uncomment to debug
#process.MessageLogger = cms.Service("MessageLogger",
# destinations = cms.untracked.vstring('cout'),
# cout = cms.untracked.PSet(
# threshold = cms.untracked.string('INFO')
# )
#)
process.MessageLogger = cms.Service("MessageLogger",
destinations = cms.untracked.vstring('cout'),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('INFO')
)
)

process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(options.maxEvents)
Expand Down

0 comments on commit 8e4943c

Please sign in to comment.