BmnRoot
Loading...
Searching...
No Matches
LStrip1 Class Reference

#include <BmnTof1GeoUtils.h>

Inheritance diagram for LStrip1:
[legend]
Collaboration diagram for LStrip1:
[legend]

Public Member Functions

 LStrip1 ()
 
 LStrip1 (Int_t uid, Int_t sector, Int_t box, Int_t detector, Int_t strip)
 
void SetIDs (Int_t uid, Int_t sector, Int_t box, Int_t detector, Int_t strip)
 
void SetIsKilled (bool status)
 
bool GetIsKilled () const
 
bool IsSameDetector (const LStrip1 &strip) const
 
bool operator== (const LStrip1 &rhs)
 
bool operator!= (const LStrip1 &rhs)
 
void Dump (const char *comment=nullptr, std::ostream &out=std::cout) const
 
Double_t Distance (Side_t side, const LStrip1 &strip)
 
Double_t Distance701 (Side_t side, const LStrip1 &strip)
 
 LStrip1 ()
 
 LStrip1 (Int_t uid, Int_t sector, Int_t box, Int_t detector, Int_t strip)
 
void SetIDs (Int_t uid, Int_t sector, Int_t box, Int_t detector, Int_t strip)
 
void SetIsKilled (bool status)
 
bool GetIsKilled () const
 
bool IsSameDetector (const LStrip1 &strip) const
 
bool operator== (const LStrip1 &rhs)
 
bool operator!= (const LStrip1 &rhs)
 
void Dump (const char *comment=nullptr, std::ostream &out=std::cout) const
 
Double_t Distance (Side_t side, const LStrip1 &strip)
 
Double_t Distance701 (Side_t side, const LStrip1 &strip)
 
- Public Member Functions inherited from LRectangle1
 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

Bool_t isKilled = false
 
Int_t sectorID
 
Int_t boxID
 
Int_t detectorID
 
Int_t stripID
 
Int_t neighboring [2]
 
- Public Attributes inherited from LRectangle1
Int_t volumeUID
 
Double_t length
 
Double_t width
 
TVector3 A
 
TVector3 B
 
TVector3 C
 
TVector3 D
 
TVector3 center
 
TVector3 perp
 

Additional Inherited Members

- Public Types inherited from LRectangle1
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
}
 

Detailed Description

Definition at line 108 of file BmnTof1GeoUtils.h.

Constructor & Destructor Documentation

◆ LStrip1() [1/4]

LStrip1::LStrip1 ( )

◆ LStrip1() [2/4]

LStrip1::LStrip1 ( Int_t  uid,
Int_t  sector,
Int_t  box,
Int_t  detector,
Int_t  strip 
)

◆ LStrip1() [3/4]

LStrip1::LStrip1 ( )

◆ LStrip1() [4/4]

LStrip1::LStrip1 ( Int_t  uid,
Int_t  sector,
Int_t  box,
Int_t  detector,
Int_t  strip 
)

Member Function Documentation

◆ Distance() [1/2]

Double_t LStrip1::Distance ( Side_t  side,
const LStrip1 strip 
)

◆ Distance() [2/2]

Double_t LStrip1::Distance ( Side_t  side,
const LStrip1 strip 
)

◆ Distance701() [1/2]

Double_t LStrip1::Distance701 ( Side_t  side,
const LStrip1 strip 
)

◆ Distance701() [2/2]

Double_t LStrip1::Distance701 ( Side_t  side,
const LStrip1 strip 
)

◆ Dump() [1/2]

void LStrip1::Dump ( const char *  comment = nullptr,
std::ostream &  out = std::cout 
) const

Definition at line 450 of file BmnTof1GeoUtils.cxx.

References boxID, detectorID, LRectangle1::Dump(), GetIsKilled(), sectorID, and stripID.

◆ Dump() [2/2]

void LStrip1::Dump ( const char *  comment = nullptr,
std::ostream &  out = std::cout 
) const

◆ GetIsKilled() [1/2]

bool LStrip1::GetIsKilled ( ) const
inline

Definition at line 128 of file BmnTof1GeoUtils.h.

References isKilled.

Referenced by Dump(), and BmnTof1HitProducer::Exec().

◆ GetIsKilled() [2/2]

bool LStrip1::GetIsKilled ( ) const
inline

Definition at line 128 of file BmnTof1GeoUtils.h.

References isKilled.

◆ IsSameDetector() [1/2]

bool LStrip1::IsSameDetector ( const LStrip1 strip) const
inline

Definition at line 129 of file BmnTof1GeoUtils.h.

References boxID, detectorID, and sectorID.

Referenced by Distance(), and Distance701().

◆ IsSameDetector() [2/2]

bool LStrip1::IsSameDetector ( const LStrip1 strip) const
inline

Definition at line 129 of file BmnTof1GeoUtils.h.

References boxID, detectorID, and sectorID.

◆ operator!=() [1/2]

bool LStrip1::operator!= ( const LStrip1 rhs)
inline

Definition at line 138 of file BmnTof1GeoUtils.h.

◆ operator!=() [2/2]

bool LStrip1::operator!= ( const LStrip1 rhs)
inline

Definition at line 138 of file BmnTof1GeoUtils.h.

◆ operator==() [1/2]

bool LStrip1::operator== ( const LStrip1 rhs)
inline

Definition at line 133 of file BmnTof1GeoUtils.h.

References boxID, detectorID, sectorID, and stripID.

◆ operator==() [2/2]

bool LStrip1::operator== ( const LStrip1 rhs)
inline

Definition at line 133 of file BmnTof1GeoUtils.h.

References boxID, detectorID, sectorID, and stripID.

◆ SetIDs() [1/2]

void LStrip1::SetIDs ( Int_t  uid,
Int_t  sector,
Int_t  box,
Int_t  detector,
Int_t  strip 
)
inline

Definition at line 118 of file BmnTof1GeoUtils.h.

References boxID, detectorID, sectorID, stripID, and LRectangle1::volumeUID.

◆ SetIDs() [2/2]

void LStrip1::SetIDs ( Int_t  uid,
Int_t  sector,
Int_t  box,
Int_t  detector,
Int_t  strip 
)
inline

Definition at line 118 of file BmnTof1GeoUtils.h.

References boxID, detectorID, sectorID, stripID, and LRectangle1::volumeUID.

◆ SetIsKilled() [1/2]

void LStrip1::SetIsKilled ( bool  status)
inline

Definition at line 127 of file BmnTof1GeoUtils.h.

References isKilled.

Referenced by BmnTof1GeoUtils::ParseTGeoManager701().

◆ SetIsKilled() [2/2]

void LStrip1::SetIsKilled ( bool  status)
inline

Definition at line 127 of file BmnTof1GeoUtils.h.

References isKilled.

Member Data Documentation

◆ boxID

Int_t LStrip1::boxID

Definition at line 112 of file BmnTof1GeoUtils.h.

Referenced by Dump(), IsSameDetector(), operator==(), and SetIDs().

◆ detectorID

Int_t LStrip1::detectorID

Definition at line 112 of file BmnTof1GeoUtils.h.

Referenced by Dump(), IsSameDetector(), operator==(), and SetIDs().

◆ isKilled

Bool_t LStrip1::isKilled = false

Definition at line 111 of file BmnTof1GeoUtils.h.

Referenced by GetIsKilled(), and SetIsKilled().

◆ neighboring

◆ sectorID

Int_t LStrip1::sectorID

Definition at line 112 of file BmnTof1GeoUtils.h.

Referenced by Dump(), IsSameDetector(), operator==(), and SetIDs().

◆ stripID

Int_t LStrip1::stripID

Definition at line 112 of file BmnTof1GeoUtils.h.

Referenced by Dump(), operator==(), and SetIDs().


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