Skip to content

Commit

Permalink
Merge pull request #255 from gonzaponte/deprecated
Browse files Browse the repository at this point in the history
Warn users of deprecated classes
  • Loading branch information
paolafer authored Apr 24, 2024
2 parents 1f5e72e + 43b9af7 commit d08e319
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 10 deletions.
4 changes: 4 additions & 0 deletions source/physics/ELLookupTable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
//
// This class describes the generation of the EL light.
//
// ****************************** WARNING *******************************
// ******************* This class has been deprecated *******************
// **********************************************************************
//
// The NEXT Collaboration
// ----------------------------------------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions source/physics/ELLookupTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
//
// This class describes the generation of the EL light.
//
// ****************************** WARNING *******************************
// ******************* This class has been deprecated *******************
// **********************************************************************
//
// The NEXT Collaboration
// ----------------------------------------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions source/physics/RadiusDependentDriftField.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
//
// Drift field varying with radial coordinate.
//
// ****************************** WARNING *******************************
// ***************** This class has not been implemented ****************
// **********************************************************************
//
// The NEXT Collaboration
// ----------------------------------------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions source/physics/RadiusDependentDriftField.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
//
// Drift field varying with radial coordinate.
//
// ****************************** WARNING *******************************
// ***************** This class has not been implemented ****************
// **********************************************************************
//
// The NEXT Collaboration
// ----------------------------------------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions source/physics/WavelengthShifting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
// from a wls_absorption length property but through a probability property,
// thus independent from the material thickness.
//
// ****************************** WARNING *******************************
// ******************* This class has been deprecated *******************
// **********************************************************************
//
// The NEXT Collaboration
// ----------------------------------------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions source/physics/WavelengthShifting.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
// from a wls_absorption length property but through a probability property,
// thus independent from the material thickness.
//
// ****************************** WARNING *******************************
// ******************* This class has been deprecated *******************
// **********************************************************************
//
// The NEXT Collaboration
// ----------------------------------------------------------------------------

Expand Down
10 changes: 0 additions & 10 deletions source/physics_lists/NexusPhysics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "IonizationClustering.h"
#include "IonizationDrift.h"
#include "Electroluminescence.h"
#include "WavelengthShifting.h"
#include "OpPhotoelectricEffect.h"

#include <G4GenericMessenger.hh>
Expand Down Expand Up @@ -75,15 +74,6 @@ namespace nexus {
{
G4ProcessManager* pmanager = 0;

// Add our own wavelength shifting process for the optical photon
pmanager = G4OpticalPhoton::Definition()->GetProcessManager();
if (!pmanager) {
G4Exception("[NexusPhysics]", "ConstructProcess()", FatalException,
"G4OpticalPhoton without a process manager.");
}
WavelengthShifting* wls = new WavelengthShifting();
pmanager->AddDiscreteProcess(wls);

pmanager = IonizationElectron::Definition()->GetProcessManager();
if (!pmanager) {
G4Exception("[NexusPhysics]", "ConstructProcess()", FatalException,
Expand Down

0 comments on commit d08e319

Please sign in to comment.