Skip to content
Snippets Groups Projects

Continuation of !2267 (Add Area accessor for calorimeter parts )

Merged Continuation of !2267 (Add Area accessor for calorimeter parts )
All threads resolved!
Merged Arthur Marius Hennequin requested to merge ahennequ_calo_area into master
All threads resolved!
7 files
+ 90
44
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -31,6 +31,7 @@
// ============================================================================
// Kernel/LHCbKernel
// ============================================================================
#include "Kernel/CaloCellCode.h"
#include "Kernel/CaloCellID.h"
// ============================================================================
// Calo/CaloKernel
@@ -97,6 +98,8 @@ public:
inline bool isInitialized() const { return m_initialized; }
// geometry setters (temp)
void setXSize( const double xSize ) { m_xSize = xSize; }
void setYSize( const double ySize ) { m_ySize = ySize; }
void setZSize( const double zSize ) { m_zSize = zSize; }
void setZOffset( const double zOffset ) { m_zOffset = zOffset; }
@@ -113,6 +116,8 @@ public:
//----------------------------------
// get constant access to subcalorimeters
const SubCalos& subCalos() const { return m_subCalos; }
double xSize() const { return m_xSize; };
double ySize() const { return m_ySize; };
double zSize() const { return m_zSize; };
double zOffset() const { return m_zOffset; };
unsigned int numberOfAreas() const { return m_nArea; };
@@ -256,8 +261,9 @@ public:
CaloPin caloPin( LHCb::CaloCellID id ) const { return m_pins[id]; }
CaloLed caloLed( const int led ) const { return ( led < (int)m_leds.size() ) ? m_leds[led] : -1; }
// More complex functions
LHCb::CaloCellID Cell( const Gaudi::XYZPoint& point ) const;
const CellParam* Cell_( const Gaudi::XYZPoint& point ) const;
LHCb::CaloCellID Cell( const Gaudi::XYZPoint& point ) const;
const CellParam* Cell_( const Gaudi::XYZPoint& point ) const;
CaloCellCode::CaloArea Area( const Gaudi::XYZPoint& point ) const;
// Collections
const CaloVector<CellParam>& cellParams() const { return m_cells; }
const CaloVector<CaloPin>& caloPins() const { return m_pins; }
@@ -301,6 +307,8 @@ private:
// geometry
double m_YToXSizeRatio = std::numeric_limits<double>::signaling_NaN();
double m_xSize = std::numeric_limits<double>::signaling_NaN();
double m_ySize = std::numeric_limits<double>::signaling_NaN();
double m_zSize = std::numeric_limits<double>::signaling_NaN();
double m_zOffset = std::numeric_limits<double>::signaling_NaN();
SubCalos m_subCalos;
Loading