CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Static Private Attributes
EcalTBHodoscopeGeometry Class Reference

#include <EcalTBHodoscopeGeometry.h>

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.

10 {};
EcalTBHodoscopeGeometry::~EcalTBHodoscopeGeometry ( )
inline

Definition at line 11 of file EcalTBHodoscopeGeometry.h.

11 {};

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().

14  {
15  if (plane < nPlanes_ && fibre < nFibres_ )
16  return fibrePos_[plane][fibre].lp;
17  else
18  return -99999.;
19  }
static const fibre_pos fibrePos_[nPlanes_][nFibres_]
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().

22  {
23  if (plane < nPlanes_ && fibre < nFibres_ )
24  return fibrePos_[plane][fibre].rp;
25  else
26  return -99999.;
27  }
static const fibre_pos fibrePos_[nPlanes_][nFibres_]
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_.

293 {
294  std::vector<int> firedFibres;
295 
297  return firedFibres;
298 
299  for (int i=0; i< nFibres_; ++i)
300  if ((xtr>=fibrePos_[plane][i].lp) && (xtr<=fibrePos_[plane][i].rp))
301  firedFibres.push_back(i);
302 
303  return firedFibres;
304 }
int i
Definition: DBlmapReader.cc:9
static const fibre_pos fibrePos_[nPlanes_][nFibres_]
int EcalTBHodoscopeGeometry::getNFibres ( ) const
inline

Definition at line 36 of file EcalTBHodoscopeGeometry.h.

References nFibres_.

Referenced by EcalTBHodoscopeRecInfoAlgo::reconstruct().

37  {
38  return nFibres_;
39  }
int EcalTBHodoscopeGeometry::getNPlanes ( ) const
inline

Definition at line 31 of file EcalTBHodoscopeGeometry.h.

References nPlanes_.

Referenced by EcalTBHodoscopeRecInfoAlgo::reconstruct().

32  {
33  return nPlanes_;
34  }

Member Data Documentation

const EcalTBHodoscopeGeometry::fibre_pos EcalTBHodoscopeGeometry::fibrePos_
staticprivate

Definition at line 49 of file EcalTBHodoscopeGeometry.h.

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

const int EcalTBHodoscopeGeometry::nFibres_ =64
staticprivate
const int EcalTBHodoscopeGeometry::nPlanes_ =4
staticprivate