Skip to content
Snippets Groups Projects
Commit bf27e169 authored by Adam Edward Barton's avatar Adam Edward Barton :speech_balloon:
Browse files

Address MR Feedback

parent 431e04ab
No related branches found
No related tags found
No related merge requests found
...@@ -22,9 +22,9 @@ class BeamSpotCondAlg : public AthAlgorithm ...@@ -22,9 +22,9 @@ class BeamSpotCondAlg : public AthAlgorithm
virtual ~BeamSpotCondAlg(); virtual ~BeamSpotCondAlg();
//IS EXECUTED: //IS EXECUTED:
virtual StatusCode initialize(); //once, before any input is loaded virtual StatusCode initialize() override; //once, before any input is loaded
virtual StatusCode execute(); //per event virtual StatusCode execute() override; //per event
virtual StatusCode finalize(); //once, after all events processed virtual StatusCode finalize() override; //once, after all events processed
static const EventIDRange alwaysValid; static const EventIDRange alwaysValid;
......
#include "GaudiKernel/DeclareFactoryEntries.h"
#include "../BeamSpotCondAlg.h" #include "../BeamSpotCondAlg.h"
......
#include "GaudiKernel/LoadFactoryEntries.h"
LOAD_FACTORY_ENTRIES(BeamSpotConditions)
...@@ -16,21 +16,32 @@ ...@@ -16,21 +16,32 @@
namespace InDet namespace InDet
{ {
class BeamSpotData class BeamSpotData final //Class declared as final because no virtual destructor is used
//if you want to inherit, remove final keyword and add virtual destructor
{ {
public: public:
BeamSpotData(int status, float posX, float posY, float posZ, BeamSpotData(int status, float posX, float posY, float posZ,
float sigmaX, float sigmaY, float sigmaZ, float sigmaX, float sigmaY, float sigmaZ,
float tiltX, float tiltY, float sigmaXY); float tiltX, float tiltY, float sigmaXY);
virtual ~BeamSpotData() { } BeamSpotData() = delete; //Forbid undefined behaviour
const Amg::Vector3D& beamPos() const; const Amg::Vector3D& beamPos() const;
/**
* @brief Returns the beam sigma for the i-th error matrix element
* @return The matrix element as float
* @param i the requested index
*/
float beamSigma(int i) const; float beamSigma(int i) const;
float beamSigmaXY() const; float beamSigmaXY() const;
/**
* @brief Returns the beam sigma for the i+3-th error matrix element (the 'tilt')
* @return The (i + 3)th element as float
* @param i the requested index after the addition of 3
*/
float beamTilt(int i) const; float beamTilt(int i) const;
int beamStatus() const; int beamStatus() const;
......
...@@ -150,12 +150,9 @@ StatusCode SiTrackerSpacePointFinder::initialize() ...@@ -150,12 +150,9 @@ StatusCode SiTrackerSpacePointFinder::initialize()
ATH_CHECK(m_SiSpacePointMakerTool.retrieve()); ATH_CHECK(m_SiSpacePointMakerTool.retrieve());
if (!m_overrideBS){ if (!m_overrideBS){
if (m_beamSpotKey.initialize().isFailure()) { ATH_CHECK(m_beamSpotKey.initialize());
m_overrideBS = true; }else{
ATH_MSG_WARNING( "Could not retrieve Beam Conditions Service. " ); // m_beamSpotKey = "";//Remove request for condition object
ATH_MSG_WARNING( "Using instead pre-set beam spot at ( " << m_xVertex
<<" , "<< m_yVertex << " , " << m_yVertex<< " ) " );
}
} }
ATH_CHECK(m_SpacePointCache_SCTKey.initialize(!m_SpacePointCache_SCTKey.key().empty())); ATH_CHECK(m_SpacePointCache_SCTKey.initialize(!m_SpacePointCache_SCTKey.key().empty()));
......
...@@ -102,7 +102,7 @@ StatusCode InDetIterativePriVxFinderTool::initialize() ...@@ -102,7 +102,7 @@ StatusCode InDetIterativePriVxFinderTool::initialize()
{ {
if (m_createSplitVertices==true && m_useBeamConstraint==true) if (m_createSplitVertices==true && m_useBeamConstraint==true)
{ {
msg(MSG::FATAL) << " Split vertices cannot be obtained if beam spot constraint is true! Change settings..." << endmsg; ATH_MSG_FATAL(" Split vertices cannot be obtained if beam spot constraint is true! Change settings...");
return StatusCode::FAILURE; return StatusCode::FAILURE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment