|
BmnRoot
|
#include <BmnTof1GeoUtils.h>
Public Types | |
| enum | Side_t { kRight = 0 , kLeft = 1 , kInvalid = -1 , kUpper = 0 , kLower = 1 , kRight = 0 , kLeft = 1 , kInvalid = -1 , kUpper = 0 , kLower = 1 } |
| enum | Side_t { kRight = 0 , kLeft = 1 , kInvalid = -1 , kUpper = 0 , kLower = 1 , kRight = 0 , kLeft = 1 , kInvalid = -1 , kUpper = 0 , kLower = 1 } |
Public Member Functions | |
| LRectangle1 () | |
| LRectangle1 (Int_t uid, const TVector3 &a, const TVector3 &b, const TVector3 &c, const TVector3 &d, bool check=false) | |
| Double_t | GetLength () const |
| Double_t | GetWidth () const |
| void | GetInteriorAngle (int vertexIndex) const |
| TVector3 | GetCenter () const |
| bool | isInvalid () const |
| Double_t | DistanceFromPointToLineSegment (const TVector3 *pos, const TVector3 &P1, const TVector3 &P2) const |
| Double_t | DistanceFromPointToLine (const TVector3 *pos, const TVector3 &P1, const TVector3 &P2) const |
| Double_t | MinDistanceToEdge (const TVector3 *pos, Side_t &side) const |
| Double_t | MinDistanceToEdge701 (const TVector3 *pos, Side_t &side) const |
| void | Print (std::ostream &out, const TVector3 &point, const char *comment=nullptr) const |
| void | Dump (const char *comment, std::ostream &out=std::cout) const |
| void | Shift (const TVector3 &shift) |
| void | InitCenterPerp () |
| void | CalculateLengthnWidth () |
| void | CheckInValid () |
| LRectangle1 () | |
| LRectangle1 (Int_t uid, const TVector3 &a, const TVector3 &b, const TVector3 &c, const TVector3 &d, bool check=false) | |
| Double_t | GetLength () const |
| Double_t | GetWidth () const |
| void | GetInteriorAngle (int vertexIndex) const |
| TVector3 | GetCenter () const |
| bool | isInvalid () const |
| Double_t | DistanceFromPointToLineSegment (const TVector3 *pos, const TVector3 &P1, const TVector3 &P2) const |
| Double_t | DistanceFromPointToLine (const TVector3 *pos, const TVector3 &P1, const TVector3 &P2) const |
| Double_t | MinDistanceToEdge (const TVector3 *pos, Side_t &side) const |
| Double_t | MinDistanceToEdge701 (const TVector3 *pos, Side_t &side) const |
| void | Print (std::ostream &out, const TVector3 &point, const char *comment=nullptr) const |
| void | Dump (const char *comment, std::ostream &out=std::cout) const |
| void | Shift (const TVector3 &shift) |
| void | InitCenterPerp () |
| void | CalculateLengthnWidth () |
| void | CheckInValid () |
Public Attributes | |
| Int_t | volumeUID |
| Double_t | length |
| Double_t | width |
| TVector3 | A |
| TVector3 | B |
| TVector3 | C |
| TVector3 | D |
| TVector3 | center |
| TVector3 | perp |
Definition at line 12 of file BmnTof1GeoUtils.h.
| enum LRectangle1::Side_t |
| Enumerator | |
|---|---|
| kRight | |
| kLeft | |
| kInvalid | |
| kUpper | |
| kLower | |
| kRight | |
| kLeft | |
| kInvalid | |
| kUpper | |
| kLower | |
Definition at line 18 of file BmnTof1GeoUtils.h.
| enum LRectangle1::Side_t |
| Enumerator | |
|---|---|
| kRight | |
| kLeft | |
| kInvalid | |
| kUpper | |
| kLower | |
| kRight | |
| kLeft | |
| kInvalid | |
| kUpper | |
| kLower | |
Definition at line 18 of file BmnTof1GeoUtils.h.
|
inline |
Definition at line 37 of file BmnTof1GeoUtils.h.
| LRectangle1::LRectangle1 | ( | Int_t | uid, |
| const TVector3 & | a, | ||
| const TVector3 & | b, | ||
| const TVector3 & | c, | ||
| const TVector3 & | d, | ||
| bool | check = false |
||
| ) |
Definition at line 337 of file BmnTof1GeoUtils.cxx.
References CheckInValid().
|
inline |
Definition at line 37 of file BmnTof1GeoUtils.h.
| LRectangle1::LRectangle1 | ( | Int_t | uid, |
| const TVector3 & | a, | ||
| const TVector3 & | b, | ||
| const TVector3 & | c, | ||
| const TVector3 & | d, | ||
| bool | check = false |
||
| ) |
|
inline |
Definition at line 76 of file BmnTof1GeoUtils.h.
References A, B, C, length, and width.
Referenced by BmnTof1GeoUtils::ParseTGeoManager701().
|
inline |
|
inline |
Definition at line 88 of file BmnTof1GeoUtils.h.
References A, B, C, D, and Dump().
Referenced by LRectangle1().
|
inline |
| Double_t LRectangle1::DistanceFromPointToLine | ( | const TVector3 * | pos, |
| const TVector3 & | P1, | ||
| const TVector3 & | P2 | ||
| ) | const |
Definition at line 354 of file BmnTof1GeoUtils.cxx.
| Double_t LRectangle1::DistanceFromPointToLine | ( | const TVector3 * | pos, |
| const TVector3 & | P1, | ||
| const TVector3 & | P2 | ||
| ) | const |
| Double_t LRectangle1::DistanceFromPointToLineSegment | ( | const TVector3 * | pos, |
| const TVector3 & | P1, | ||
| const TVector3 & | P2 | ||
| ) | const |
Definition at line 361 of file BmnTof1GeoUtils.cxx.
References v.
Referenced by MinDistanceToEdge(), and MinDistanceToEdge701().
| Double_t LRectangle1::DistanceFromPointToLineSegment | ( | const TVector3 * | pos, |
| const TVector3 & | P1, | ||
| const TVector3 & | P2 | ||
| ) | const |
| void LRectangle1::Dump | ( | const char * | comment, |
| std::ostream & | out = std::cout |
||
| ) | const |
Definition at line 417 of file BmnTof1GeoUtils.cxx.
References A, B, C, D, Print(), and volumeUID.
Referenced by CheckInValid(), and LStrip1::Dump().
| void LRectangle1::Dump | ( | const char * | comment, |
| std::ostream & | out = std::cout |
||
| ) | const |
|
inline |
|
inline |
|
inline |
Definition at line 50 of file BmnTof1GeoUtils.h.
|
inline |
Definition at line 50 of file BmnTof1GeoUtils.h.
|
inline |
Definition at line 48 of file BmnTof1GeoUtils.h.
References length.
Referenced by BmnTOF1Detector::SetGeo().
|
inline |
Definition at line 48 of file BmnTof1GeoUtils.h.
References length.
|
inline |
Definition at line 49 of file BmnTof1GeoUtils.h.
References width.
|
inline |
Definition at line 49 of file BmnTof1GeoUtils.h.
References width.
|
inline |
Definition at line 70 of file BmnTof1GeoUtils.h.
References A, B, C, center, D, and perp.
Referenced by BmnTof1GeoUtils::ParseTGeoManager(), and BmnTof1GeoUtils::ParseTGeoManager701().
|
inline |
|
inline |
Definition at line 52 of file BmnTof1GeoUtils.h.
|
inline |
Definition at line 52 of file BmnTof1GeoUtils.h.
| Double_t LRectangle1::MinDistanceToEdge | ( | const TVector3 * | pos, |
| Side_t & | side | ||
| ) | const |
Definition at line 380 of file BmnTof1GeoUtils.cxx.
References A, B, C, D, DistanceFromPointToLineSegment(), kLeft, and kRight.
Referenced by BmnTof1HitProducer::Exec().
| Double_t LRectangle1::MinDistanceToEdge | ( | const TVector3 * | pos, |
| Side_t & | side | ||
| ) | const |
| Double_t LRectangle1::MinDistanceToEdge701 | ( | const TVector3 * | pos, |
| Side_t & | side | ||
| ) | const |
Definition at line 395 of file BmnTof1GeoUtils.cxx.
References A, B, C, D, DistanceFromPointToLineSegment(), kLower, and kUpper.
Referenced by BmnTof1HitProducer::Exec().
| Double_t LRectangle1::MinDistanceToEdge701 | ( | const TVector3 * | pos, |
| Side_t & | side | ||
| ) | const |
| void LRectangle1::Print | ( | std::ostream & | out, |
| const TVector3 & | point, | ||
| const char * | comment = nullptr |
||
| ) | const |
Definition at line 410 of file BmnTof1GeoUtils.cxx.
Referenced by Dump().
| void LRectangle1::Print | ( | std::ostream & | out, |
| const TVector3 & | point, | ||
| const char * | comment = nullptr |
||
| ) | const |
|
inline |
|
inline |
| TVector3 LRectangle1::A |
Definition at line 35 of file BmnTof1GeoUtils.h.
Referenced by CalculateLengthnWidth(), CheckInValid(), LStrip1::Distance(), LStrip1::Distance701(), Dump(), GetCenter(), InitCenterPerp(), MinDistanceToEdge(), MinDistanceToEdge701(), BmnTof1GeoUtils::ParseTGeoManager(), BmnTof1GeoUtils::ParseTGeoManager701(), BmnTOF1Detector::SetGeo(), and Shift().
| TVector3 LRectangle1::B |
Definition at line 35 of file BmnTof1GeoUtils.h.
Referenced by CalculateLengthnWidth(), CheckInValid(), LStrip1::Distance(), LStrip1::Distance701(), Dump(), GetCenter(), InitCenterPerp(), MinDistanceToEdge(), MinDistanceToEdge701(), BmnTof1GeoUtils::ParseTGeoManager(), BmnTof1GeoUtils::ParseTGeoManager701(), BmnTOF1Detector::SetGeo(), and Shift().
| TVector3 LRectangle1::C |
Definition at line 35 of file BmnTof1GeoUtils.h.
Referenced by CalculateLengthnWidth(), CheckInValid(), LStrip1::Distance(), LStrip1::Distance701(), Dump(), GetCenter(), InitCenterPerp(), MinDistanceToEdge(), MinDistanceToEdge701(), BmnTof1GeoUtils::ParseTGeoManager(), BmnTof1GeoUtils::ParseTGeoManager701(), BmnTOF1Detector::SetGeo(), and Shift().
| TVector3 LRectangle1::center |
Definition at line 35 of file BmnTof1GeoUtils.h.
Referenced by BmnTof1HitProducer::Exec(), InitCenterPerp(), BmnTof1GeoUtils::ParseTGeoManager(), BmnTof1GeoUtils::ParseTGeoManager701(), and BmnTOF1Detector::SetGeo().
| TVector3 LRectangle1::D |
Definition at line 35 of file BmnTof1GeoUtils.h.
Referenced by CheckInValid(), LStrip1::Distance(), LStrip1::Distance701(), Dump(), GetCenter(), InitCenterPerp(), MinDistanceToEdge(), MinDistanceToEdge701(), BmnTof1GeoUtils::ParseTGeoManager(), BmnTof1GeoUtils::ParseTGeoManager701(), BmnTOF1Detector::SetGeo(), and Shift().
| Double_t LRectangle1::length |
Definition at line 33 of file BmnTof1GeoUtils.h.
Referenced by CalculateLengthnWidth(), and GetLength().
| TVector3 LRectangle1::perp |
Definition at line 35 of file BmnTof1GeoUtils.h.
Referenced by InitCenterPerp().
| Int_t LRectangle1::volumeUID |
Definition at line 32 of file BmnTof1GeoUtils.h.
Referenced by Dump(), BmnTof1GeoUtils::FindNeighborStrips(), BmnTof1GeoUtils::FindNeighborStrips701(), LStrip1::LStrip1(), and LStrip1::SetIDs().
| Double_t LRectangle1::width |
Definition at line 33 of file BmnTof1GeoUtils.h.
Referenced by CalculateLengthnWidth(), and GetWidth().