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

◆ HitType

Enumerator
UNKNOWN 
LYSO 
Silicon 

Definition at line 19 of file RecHitTools.h.

19 { UNKNOWN = 0, LYSO = 1, Silicon = 2 };

Constructor & Destructor Documentation

◆ RecHitTools()

ftl::RecHitTools::RecHitTools ( )
inline

Definition at line 16 of file RecHitTools.h.

16 : geom_(nullptr), ddd_(nullptr) {}

◆ ~RecHitTools()

ftl::RecHitTools::~RecHitTools ( )
inline

Definition at line 17 of file RecHitTools.h.

17 {}

Member Function Documentation

◆ getCorners()

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

Definition at line 26 of file RecHitTools.cc.

26 { return geom_->getGeometry(id)->getCorners(); }

References geom_, and FastTimeGeometry::getGeometry().

◆ getEvent()

void RecHitTools::getEvent ( const edm::Event ev)

Definition at line 15 of file RecHitTools.cc.

15 {}

◆ getEventSetup()

void RecHitTools::getEventSetup ( const edm::EventSetup es)

◆ getHitType()

RecHitTools::HitType RecHitTools::getHitType ( const DetId id) const

Definition at line 28 of file RecHitTools.cc.

28  {
29  FastTimeDetId fid(id);
30  return (HitType)fid.type();
31 }

References FastTimeDetId::type().

◆ getPosition()

GlobalPoint RecHitTools::getPosition ( const DetId id) const

Definition at line 24 of file RecHitTools.cc.

24 { return geom_->getGeometry(id)->getPosition(); }

References geom_, and FastTimeGeometry::getGeometry().

Member Data Documentation

◆ ddd_

const FastTimeDDDConstants* ftl::RecHitTools::ddd_
private

Definition at line 31 of file RecHitTools.h.

Referenced by getEventSetup().

◆ geom_

const FastTimeGeometry* ftl::RecHitTools::geom_
private

Definition at line 30 of file RecHitTools.h.

Referenced by getCorners(), getEventSetup(), and getPosition().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
ftl::RecHitTools::HitType
HitType
Definition: RecHitTools.h:19
ftl::RecHitTools::LYSO
Definition: RecHitTools.h:19
FastTimeTopology::dddConstants
const FastTimeDDDConstants & dddConstants() const
Definition: FastTimeTopology.h:82
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
edm::ESHandle
Definition: DTSurvey.h:22
ftl::RecHitTools::UNKNOWN
Definition: RecHitTools.h:19
get
#define get
FastTimeGeometry::getGeometry
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.
Definition: FastTimeGeometry.cc:74
ftl::RecHitTools::geom_
const FastTimeGeometry * geom_
Definition: RecHitTools.h:30
ftl::RecHitTools::Silicon
Definition: RecHitTools.h:19
FastTimeGeometry::topology
const FastTimeTopology & topology() const
Definition: FastTimeGeometry.h:93
FastTimeDetId
Definition: FastTimeDetId.h:8
FastTimeGeometryRecord
Definition: FastTimeGeometryRecord.h:11
ftl::RecHitTools::ddd_
const FastTimeDDDConstants * ddd_
Definition: RecHitTools.h:31