This repository was archived by the owner on May 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class DetectorConstruction : public G4VUserDetectorConstruction {
4646 /* *
4747 * Class destructor.
4848 */
49- ~DetectorConstruction () = default ;
49+ virtual ~DetectorConstruction () = default ;
5050
5151 /* *
5252 * Construct the detector.
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ class UserPrimaryParticleInformation
2222 /* *
2323 * Class Constructor.
2424 */
25- UserPrimaryParticleInformation () { ; }
25+ UserPrimaryParticleInformation () = default ;
2626
2727 /* *
2828 * Class destructor.
2929 */
30- virtual ~UserPrimaryParticleInformation () { ; }
30+ virtual ~UserPrimaryParticleInformation () = default ;
3131
3232 /* *
3333 * Set the HEP event status (generator status) e.g. from an LHE particle.
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class UserRegionInformation : public G4VUserRegionInformation {
2626 public:
2727 UserRegionInformation (bool storeSecondaries);
2828
29- virtual ~UserRegionInformation ();
29+ virtual ~UserRegionInformation () = default ;
3030
3131 void Print () const ;
3232
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ class UserTrackInformation : public G4VUserTrackInformation {
1818 // / Constructor
1919 UserTrackInformation () = default ;
2020
21+ virtual ~UserTrackInformation () = default ;
2122 /* *
2223 * get
2324 *
2425 * A static helper function for getting the track information
25- * from the passed G4Track. If the track doesn't have an
26+ * from the passed G4Track. If the track doesn't have an
2627 * information attached, a new one is created.
2728 *
2829 * @note The return value of this pointer is never NULL.
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ G4VBiasingOperation* DarkBrem::ProposeOccurenceBiasingOperation(
2222 callingProcess->GetWrappedProcess ()->GetProcessName ();
2323 if (currentProcess.compare (this ->getProcessToBias ()) == 0 ) {
2424 // bias only the primary particle if we don't want to bias all particles
25- if (not bias_all_ and track->GetParentID () != 0 ) return 0 ;
25+ if (not bias_all_ and track->GetParentID () != 0 ) return nullptr ;
2626
2727 G4double interactionLength =
2828 callingProcess->GetWrappedProcess ()->GetCurrentInteractionLength ();
@@ -37,8 +37,8 @@ G4VBiasingOperation* DarkBrem::ProposeOccurenceBiasingOperation(
3737 }
3838
3939 return BiasedXsec (dbXsecBiased);
40- } else
41- return nullptr ;
40+ }
41+ return nullptr ;
4242}
4343
4444void DarkBrem::RecordConfig (ldmx::RunHeader& h) const {
Original file line number Diff line number Diff line change @@ -168,8 +168,7 @@ void RunManager::TerminateOneEvent() {
168168 // reactivate any process that contains the G4DarkBremmstrahlung name
169169 // this covers both cases where the process is biased and not
170170 static auto reactivate_dark_brem = [](G4ProcessManager* pman) {
171- for (std::size_t i_proc{0 }; i_proc < pman->GetProcessList ()->size ();
172- i_proc++) {
171+ for (int i_proc{0 }; i_proc < pman->GetProcessList ()->size (); i_proc++) {
173172 G4VProcess* p{(*(pman->GetProcessList ()))[i_proc]};
174173 if (p->GetProcessName ().contains (G4DarkBremsstrahlung::PROCESS_NAME)) {
175174 pman->SetProcessActivation (p, true );
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ namespace simcore {
55UserRegionInformation::UserRegionInformation (bool aStoreSecondaries)
66 : storeSecondaries_(aStoreSecondaries) {}
77
8- UserRegionInformation::~UserRegionInformation () {}
9-
108bool UserRegionInformation::getStoreSecondaries () const {
119 return storeSecondaries_;
1210}
You can’t perform that action at this time.
0 commit comments