CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
ftl::RecHitTools Class Reference

#include <RecHitTools.h>

Public Types

enum  HitType { UNKNOWN =0, LYSO =1, Silicon =2 }
 

Public Member Functions

const FlatTrd::CornersVecgetCorners (const DetId &id) const
 
void getEvent (const edm::Event &)
 
void getEventSetup (const edm::EventSetup &)
 
HitType getHitType (const DetId &id) const
 
const GlobalPointgetPosition (const DetId &id) const
 
 RecHitTools ()
 
 ~RecHitTools ()
 

Private Attributes

const FastTimeDDDConstantsddd_
 
const FastTimeGeometrygeom_
 

Detailed Description

Definition at line 14 of file RecHitTools.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
LYSO 
Silicon 

Definition at line 19 of file RecHitTools.h.

Constructor & Destructor Documentation

ftl::RecHitTools::RecHitTools ( )
inline

Definition at line 16 of file RecHitTools.h.

16 : geom_(nullptr), ddd_(nullptr) {}
const FastTimeGeometry * geom_
Definition: RecHitTools.h:30
const FastTimeDDDConstants * ddd_
Definition: RecHitTools.h:31
ftl::RecHitTools::~RecHitTools ( )
inline

Definition at line 17 of file RecHitTools.h.

17 {}

Member Function Documentation

const FlatTrd::CornersVec & RecHitTools::getCorners ( const DetId id) const

Definition at line 29 of file RecHitTools.cc.

References geom_, CaloCellGeometry::getCorners(), and FastTimeGeometry::getGeometry().

29  {
30  return geom_->getGeometry(id)->getCorners();
31 }
const CaloCellGeometry * getGeometry(const DetId &id) const override
Get the cell geometry of a given detector id. Should return false if not found.
const FastTimeGeometry * geom_
Definition: RecHitTools.h:30
CornersVec const & getCorners() const
Returns the corner points of this cell&#39;s volume.
void ftl::RecHitTools::getEvent ( const edm::Event )
void ftl::RecHitTools::getEventSetup ( const edm::EventSetup )
RecHitTools::HitType RecHitTools::getHitType ( const DetId id) const

Definition at line 33 of file RecHitTools.cc.

References FastTimeDetId::type().

33  {
34  FastTimeDetId fid(id);
35  return (HitType)fid.type();
36 }
const GlobalPoint& ftl::RecHitTools::getPosition ( const DetId id) const

Member Data Documentation

const FastTimeDDDConstants* ftl::RecHitTools::ddd_
private

Definition at line 31 of file RecHitTools.h.

const FastTimeGeometry* ftl::RecHitTools::geom_
private

Definition at line 30 of file RecHitTools.h.

Referenced by getCorners().