#include <CRTCommonUtils.h>
Public Member Functions | |
CRTCommonUtils () | |
int | GetAuxDetTypeCode (size_t adid) |
char | GetAuxDetType (size_t adid) |
string | GetAuxDetRegion (size_t adid) |
int | AuxDetRegionNameToNum (string reg) |
string | GetRegionNameFromNum (int num) |
char | GetRegTypeFromRegName (string name) |
int | GetTypeCodeFromRegion (string name) |
pair< uint8_t, uint8_t > | ADToMac (size_t adid) |
int | ADToChanGroup (size_t adid) |
int | NFeb (size_t adid) |
string | MacToRegion (uint8_t mac) |
char | MacToType (uint8_t mac) |
int | MacToTypeCode (uint8_t mac) |
int | ChannelToAuxDetSensitiveID (uint8_t mac, int chan) |
size_t | MacToAuxDetID (uint8_t mac, int chan) |
TLorentzVector | AvgIDEPoint (sim::AuxDetIDE ide) |
double | LengthIDE (sim::AuxDetIDE ide) |
int | GetLayerID (sim::AuxDetSimChannel const &adsc) |
int | GetLayerID (const art::Ptr< sim::AuxDetSimChannel > adsc) |
int | GetMINOSLayerID (size_t adid) |
TVector3 | ChanToLocalCoords (const uint8_t mac, const int chan) |
TVector3 | ChanToWorldCoords (const uint8_t mac, const int chan) |
TVector3 | WorldToModuleCoords (TVector3 point, size_t adid) |
double | SimpleDCA (sbn::crt::CRTHit hit, TVector3 start, TVector3 direction) |
double | DistToCrtHit (sbn::crt::CRTHit hit, TVector3 start, TVector3 end) |
double | LineSegmentDistance (TVector3 start1, TVector3 end1, TVector3 start2, TVector3 end2) |
std::pair< TVector3, TVector3 > | CubeIntersection (TVector3 min, TVector3 max, TVector3 start, TVector3 end) |
Private Member Functions | |
void | FillFebMap () |
void | FillAuxDetMaps () |
string | AuxDetNameToRegion (string name) |
Private Attributes | |
geo::GeometryCore const * | fGeoService |
map< size_t, vector< pair < uint8_t, int > > > | fAuxDetIdToFeb |
map< uint8_t, vector< size_t > > | fFebToAuxDetId |
map< size_t, char > | fAuxDetIdToType |
map< size_t, string > | fAuxDetIdToRegion |
map< string, size_t > | fNameToAuxDetId |
map< size_t, int > | fAuxDetIdToChanGroup |
Definition at line 42 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.h.
CRTCommonUtils::CRTCommonUtils | ( | ) |
Definition at line 10 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::ADToChanGroup | ( | size_t | adid | ) |
Definition at line 156 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
pair< uint8_t, uint8_t > CRTCommonUtils::ADToMac | ( | size_t | adid | ) |
Definition at line 142 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
|
private |
Definition at line 604 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::AuxDetRegionNameToNum | ( | string | reg | ) |
Definition at line 48 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
TLorentzVector CRTCommonUtils::AvgIDEPoint | ( | sim::AuxDetIDE | ide | ) |
Definition at line 287 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::ChannelToAuxDetSensitiveID | ( | uint8_t | mac, |
int | chan | ||
) |
Definition at line 211 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
TVector3 CRTCommonUtils::ChanToLocalCoords | ( | const uint8_t | mac, |
const int | chan | ||
) |
Definition at line 489 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
TVector3 CRTCommonUtils::ChanToWorldCoords | ( | const uint8_t | mac, |
const int | chan | ||
) |
Definition at line 509 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
std::pair< TVector3, TVector3 > CRTCommonUtils::CubeIntersection | ( | TVector3 | min, |
TVector3 | max, | ||
TVector3 | start, | ||
TVector3 | end | ||
) |
Definition at line 770 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
double CRTCommonUtils::DistToCrtHit | ( | sbn::crt::CRTHit | hit, |
TVector3 | start, | ||
TVector3 | end | ||
) |
Definition at line 677 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
|
private |
Definition at line 577 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
|
private |
Definition at line 530 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
string CRTCommonUtils::GetAuxDetRegion | ( | size_t | adid | ) |
Definition at line 39 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
char CRTCommonUtils::GetAuxDetType | ( | size_t | adid | ) |
Definition at line 18 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::GetAuxDetTypeCode | ( | size_t | adid | ) |
Definition at line 27 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::GetLayerID | ( | sim::AuxDetSimChannel const & | adsc | ) |
Definition at line 309 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::GetLayerID | ( | const art::Ptr< sim::AuxDetSimChannel > | adsc | ) |
Definition at line 371 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::GetMINOSLayerID | ( | size_t | adid | ) |
Definition at line 432 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
string CRTCommonUtils::GetRegionNameFromNum | ( | int | num | ) |
Definition at line 69 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
char CRTCommonUtils::GetRegTypeFromRegName | ( | string | name | ) |
Definition at line 105 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::GetTypeCodeFromRegion | ( | string | name | ) |
Definition at line 125 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
double CRTCommonUtils::LengthIDE | ( | sim::AuxDetIDE | ide | ) |
Definition at line 300 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
double CRTCommonUtils::LineSegmentDistance | ( | TVector3 | start1, |
TVector3 | end1, | ||
TVector3 | start2, | ||
TVector3 | end2 | ||
) |
Definition at line 715 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
size_t CRTCommonUtils::MacToAuxDetID | ( | uint8_t | mac, |
int | chan | ||
) |
Definition at line 222 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
string CRTCommonUtils::MacToRegion | ( | uint8_t | mac | ) |
Definition at line 174 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
char CRTCommonUtils::MacToType | ( | uint8_t | mac | ) |
Definition at line 183 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::MacToTypeCode | ( | uint8_t | mac | ) |
Definition at line 193 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
int CRTCommonUtils::NFeb | ( | size_t | adid | ) |
Definition at line 165 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
double CRTCommonUtils::SimpleDCA | ( | sbn::crt::CRTHit | hit, |
TVector3 | start, | ||
TVector3 | direction | ||
) |
Definition at line 666 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
TVector3 CRTCommonUtils::WorldToModuleCoords | ( | TVector3 | point, |
size_t | adid | ||
) |
Definition at line 631 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.cc.
|
private |
Definition at line 93 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.h.
|
private |
Definition at line 88 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.h.
|
private |
Definition at line 91 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.h.
|
private |
Definition at line 90 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.h.
|
private |
Definition at line 89 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.h.
|
private |
Definition at line 87 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.h.
|
private |
Definition at line 92 of file icaruscode/icaruscode/CRT/CRTUtils/CRTCommonUtils.h.