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

FlatTrd::CornersVec getCorners (const DetId &id) const
 
void getEvent (const edm::Event &)
 
void getEventSetup (const edm::EventSetup &)
 
HitType getHitType (const DetId &id) const
 
GlobalPoint getPosition (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

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

Definition at line 29 of file RecHitTools.cc.

References geom_, and FastTimeGeometry::getGeometry().

29  {
30  return geom_->getGeometry(id)->getCorners();
31 }
const FastTimeGeometry * geom_
Definition: RecHitTools.h:30
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const override
Get the cell geometry of a given detector id. Should return false if not found.
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 }
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().