EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
richgeo::ReadoutGeo Class Reference

#include <ReadoutGeo.h>

Public Member Functions

 ReadoutGeo (std::string detName_, std::string readoutClass_, gsl::not_null< const dd4hep::Detector * > det_, gsl::not_null< const dd4hep::rec::CellIDPositionConverter * > conv_, std::shared_ptr< spdlog::logger > log_)
 
 ~ReadoutGeo ()
 
CellIDType cellIDEncoding (int isec, int ipdu, int isipm, int x, int y)
 
void VisitAllReadoutPixels (std::function< void(CellIDType)> lambda)
 
void VisitAllRngPixels (std::function< void(CellIDType)> lambda, float p)
 
bool PixelGapMask (CellIDType cellID, dd4hep::Position pos_hit_global) const
 
dd4hep::Position GetSensorLocalPosition (CellIDType id, dd4hep::Position pos) const
 
void SetSeed (unsigned long seed)
 

Protected Attributes

std::shared_ptr< spdlog::logger > m_log
 
std::string m_detName
 
std::string m_readoutClass
 
gsl::not_null< const dd4hep::Detector * > m_det
 
gsl::not_null< const dd4hep::rec::CellIDPositionConverter * > m_conv
 
dd4hep::DetElement m_detRich
 
dd4hep::BitFieldCoder * m_readoutCoder
 
int m_systemID
 
int m_num_sec
 
int m_num_pdus
 
int m_num_sipms_per_pdu
 
int m_num_px
 
double m_pixel_size
 
std::function< void(std::function< void(CellIDType)>)> m_loopCellIDs
 
std::function< void(std::function< void(CellIDType)>, float)> m_rngCellIDs
 

Constructor & Destructor Documentation

◆ ReadoutGeo()

richgeo::ReadoutGeo::ReadoutGeo ( std::string  detName_,
std::string  readoutClass_,
gsl::not_null< const dd4hep::Detector * >  det_,
gsl::not_null< const dd4hep::rec::CellIDPositionConverter * >  conv_,
std::shared_ptr< spdlog::logger >  log_ 
)

◆ ~ReadoutGeo()

richgeo::ReadoutGeo::~ReadoutGeo ( )
inline

Member Function Documentation

◆ cellIDEncoding()

CellIDType richgeo::ReadoutGeo::cellIDEncoding ( int  isec,
int  ipdu,
int  isipm,
int  x,
int  y 
)
inline

◆ GetSensorLocalPosition()

dd4hep::Position richgeo::ReadoutGeo::GetSensorLocalPosition ( CellIDType  id,
dd4hep::Position  pos 
) const

◆ PixelGapMask()

bool richgeo::ReadoutGeo::PixelGapMask ( CellIDType  cellID,
dd4hep::Position  pos_hit_global 
) const

◆ SetSeed()

void richgeo::ReadoutGeo::SetSeed ( unsigned long  seed)
inline

◆ VisitAllReadoutPixels()

void richgeo::ReadoutGeo::VisitAllReadoutPixels ( std::function< void(CellIDType)>  lambda)
inline

◆ VisitAllRngPixels()

void richgeo::ReadoutGeo::VisitAllRngPixels ( std::function< void(CellIDType)>  lambda,
float  p 
)
inline

Member Data Documentation

◆ m_conv

gsl::not_null<const dd4hep::rec::CellIDPositionConverter*> richgeo::ReadoutGeo::m_conv
protected

◆ m_det

gsl::not_null<const dd4hep::Detector*> richgeo::ReadoutGeo::m_det
protected

◆ m_detName

std::string richgeo::ReadoutGeo::m_detName
protected

◆ m_detRich

dd4hep::DetElement richgeo::ReadoutGeo::m_detRich
protected

◆ m_log

std::shared_ptr<spdlog::logger> richgeo::ReadoutGeo::m_log
protected

◆ m_loopCellIDs

std::function<void(std::function<void(CellIDType)>)> richgeo::ReadoutGeo::m_loopCellIDs
protected

◆ m_num_pdus

int richgeo::ReadoutGeo::m_num_pdus
protected

◆ m_num_px

int richgeo::ReadoutGeo::m_num_px
protected

◆ m_num_sec

int richgeo::ReadoutGeo::m_num_sec
protected

◆ m_num_sipms_per_pdu

int richgeo::ReadoutGeo::m_num_sipms_per_pdu
protected

◆ m_pixel_size

double richgeo::ReadoutGeo::m_pixel_size
protected

◆ m_readoutClass

std::string richgeo::ReadoutGeo::m_readoutClass
protected

◆ m_readoutCoder

dd4hep::BitFieldCoder* richgeo::ReadoutGeo::m_readoutCoder
protected

◆ m_rngCellIDs

std::function<void(std::function<void(CellIDType)>, float)> richgeo::ReadoutGeo::m_rngCellIDs
protected

◆ m_systemID

int richgeo::ReadoutGeo::m_systemID
protected

The documentation for this class was generated from the following files: