CMS 3D CMS Logo

Classes | Public Member Functions | Static Private Attributes

EcalTBHodoscopeGeometry Class Reference

#include <EcalTBHodoscopeGeometry.h>

List of all members.

Classes

struct  fibre_pos

Public Member Functions

 EcalTBHodoscopeGeometry ()
float getFibreLp (const int &plane, const int &fibre) const
float getFibreRp (const int &plane, const int &fibre) const
std::vector< int > getFiredFibresInPlane (const float &xtr, const int &plane) const
int getNFibres () const
int getNPlanes () const
 ~EcalTBHodoscopeGeometry ()

Static Private Attributes

static const fibre_pos fibrePos_ [nPlanes_][nFibres_]
static const int nFibres_ = 64
static const int nPlanes_ = 4

Detailed Description

Definition at line 6 of file EcalTBHodoscopeGeometry.h.


Constructor & Destructor Documentation

EcalTBHodoscopeGeometry::EcalTBHodoscopeGeometry ( ) [inline]

Definition at line 10 of file EcalTBHodoscopeGeometry.h.

{};
EcalTBHodoscopeGeometry::~EcalTBHodoscopeGeometry ( ) [inline]

Definition at line 11 of file EcalTBHodoscopeGeometry.h.

{};

Member Function Documentation

float EcalTBHodoscopeGeometry::getFibreLp ( const int &  plane,
const int &  fibre 
) const [inline]

Definition at line 13 of file EcalTBHodoscopeGeometry.h.

References fibrePos_, EcalTBHodoscopeGeometry::fibre_pos::lp, nFibres_, and nPlanes_.

Referenced by EcalTBHodoscopeRecInfoAlgo::clusterPos().

    { 
      if (plane < nPlanes_ && fibre < nFibres_ )
        return fibrePos_[plane][fibre].lp;
      else
        return -99999.;
    }
float EcalTBHodoscopeGeometry::getFibreRp ( const int &  plane,
const int &  fibre 
) const [inline]

Definition at line 21 of file EcalTBHodoscopeGeometry.h.

References fibrePos_, nFibres_, nPlanes_, and EcalTBHodoscopeGeometry::fibre_pos::rp.

Referenced by EcalTBHodoscopeRecInfoAlgo::clusterPos().

    {
      if (plane < nPlanes_ && fibre < nFibres_ )
        return fibrePos_[plane][fibre].rp;
      else
        return -99999.;
    }
std::vector< int > EcalTBHodoscopeGeometry::getFiredFibresInPlane ( const float &  xtr,
const int &  plane 
) const

Definition at line 292 of file EcalTBHodoscopeGeometry.cc.

References fibrePos_, i, nFibres_, and nPlanes_.

{
  std::vector<int> firedFibres;
  
  if (plane > EcalTBHodoscopeGeometry::nPlanes_)
    return firedFibres;
  
  for (int i=0; i< nFibres_; ++i)
    if ((xtr>=fibrePos_[plane][i].lp) &&  (xtr<=fibrePos_[plane][i].rp))
      firedFibres.push_back(i);
  
  return firedFibres;
}
int EcalTBHodoscopeGeometry::getNFibres ( ) const [inline]

Definition at line 36 of file EcalTBHodoscopeGeometry.h.

References nFibres_.

Referenced by EcalTBHodoscopeRecInfoAlgo::reconstruct().

    {
      return nFibres_;
    }
int EcalTBHodoscopeGeometry::getNPlanes ( ) const [inline]

Definition at line 31 of file EcalTBHodoscopeGeometry.h.

References nPlanes_.

Referenced by EcalTBHodoscopeRecInfoAlgo::reconstruct().

    {
      return nPlanes_;
    }

Member Data Documentation

Definition at line 49 of file EcalTBHodoscopeGeometry.h.

Referenced by getFibreLp(), getFibreRp(), and getFiredFibresInPlane().

const int EcalTBHodoscopeGeometry::nFibres_ = 64 [static, private]
const int EcalTBHodoscopeGeometry::nPlanes_ = 4 [static, private]