TGeoOverlap Class Reference

#include <TGeoOverlap.h>

Inheritance diagram for TGeoOverlap:

TAtt3D TAttFill TAttLine TNamed TAtt3D TAttFill TAttLine TNamed List of all members.

Public Types

enum  EOverlapType
enum  EOverlapType

Public Member Functions

 TGeoOverlap ()
 TGeoOverlap (const char *name, TGeoVolume *vol1, TGeoVolume *vol2, const TGeoMatrix *matrix1, const TGeoMatrix *matrix2, Bool_t isovlp=kTRUE, Double_t ovlp=0.01)
virtual ~TGeoOverlap ()
void Browse (TBrowser *b)
virtual Int_t Compare (const TObject *obj) const
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
TPolyMarker3DGetPolyMarker () const
TGeoVolumeGetFirstVolume () const
TGeoVolumeGetSecondVolume () const
TGeoHMatrixGetFirstMatrix () const
TGeoHMatrixGetSecondMatrix () const
Double_t GetOverlap () const
Bool_t IsExtrusion () const
Bool_t IsOverlap () const
Bool_t IsFolder () const
virtual Bool_t IsSortable () const
virtual void Paint (Option_t *option="")
virtual void Print (Option_t *option="") const
virtual void PrintInfo () const
virtual void Sizeof3D () const
void SampleOverlap (Int_t npoints=1000000)
void SetIsExtrusion (Bool_t flag=kTRUE)
void SetIsOverlap (Bool_t flag=kTRUE)
void SetNextPoint (Double_t x, Double_t y, Double_t z)
void SetFirstVolume (TGeoVolume *vol)
void SetSecondVolume (TGeoVolume *vol)
void SetFirstMatrix (TGeoMatrix *matrix)
void SetSecondMatrix (TGeoMatrix *matrix)
void SetOverlap (Double_t ovlp)
void Validate () const
 TGeoOverlap ()
 TGeoOverlap (const char *name, TGeoVolume *vol1, TGeoVolume *vol2, const TGeoMatrix *matrix1, const TGeoMatrix *matrix2, Bool_t isovlp=kTRUE, Double_t ovlp=0.01)
virtual ~TGeoOverlap ()
void Browse (TBrowser *b)
virtual Int_t Compare (const TObject *obj) const
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
TPolyMarker3DGetPolyMarker () const
TGeoVolumeGetFirstVolume () const
TGeoVolumeGetSecondVolume () const
TGeoHMatrixGetFirstMatrix () const
TGeoHMatrixGetSecondMatrix () const
Double_t GetOverlap () const
Bool_t IsExtrusion () const
Bool_t IsOverlap () const
Bool_t IsFolder () const
virtual Bool_t IsSortable () const
virtual void Paint (Option_t *option="")
virtual void Print (Option_t *option="") const
virtual void PrintInfo () const
virtual void Sizeof3D () const
void SampleOverlap (Int_t npoints=1000000)
void SetIsExtrusion (Bool_t flag=kTRUE)
void SetIsOverlap (Bool_t flag=kTRUE)
void SetNextPoint (Double_t x, Double_t y, Double_t z)
void SetFirstVolume (TGeoVolume *vol)
void SetSecondVolume (TGeoVolume *vol)
void SetFirstMatrix (TGeoMatrix *matrix)
void SetSecondMatrix (TGeoMatrix *matrix)
void SetOverlap (Double_t ovlp)
void Validate () const

Protected Attributes

Double_t fOverlap
TGeoVolumefVolume1
TGeoVolumefVolume2
TGeoHMatrixfMatrix1
TGeoHMatrixfMatrix2
TPolyMarker3DfMarker
TGeoVolumefVolume1
TGeoVolumefVolume2
TGeoHMatrixfMatrix1
TGeoHMatrixfMatrix2
TPolyMarker3DfMarker

Private Member Functions

 TGeoOverlap (const TGeoOverlap &)
TGeoOverlapoperator= (const TGeoOverlap &)
 TGeoOverlap (const TGeoOverlap &)
TGeoOverlapoperator= (const TGeoOverlap &)

Detailed Description

Definition at line 47 of file TGeoOverlap.h.


Member Enumeration Documentation

enum TGeoOverlap::EOverlapType

Definition at line 53 of file TGeoOverlap.h.

enum TGeoOverlap::EOverlapType

Definition at line 53 of file TGeoOverlap.h.


Constructor & Destructor Documentation

TGeoOverlap::TGeoOverlap ( const TGeoOverlap  )  [private]

TGeoOverlap::TGeoOverlap (  ) 

Referenced by G__G__GeomPainter_105_0_4().

TGeoOverlap::TGeoOverlap ( const char *  name,
TGeoVolume vol1,
TGeoVolume vol2,
const TGeoMatrix matrix1,
const TGeoMatrix matrix2,
Bool_t  isovlp = kTRUE,
Double_t  ovlp = 0.01 
)

Definition at line 47 of file TGeoOverlap.cxx.

References fMarker, fMatrix1, fMatrix2, fOverlap, fVolume1, fVolume2, SetIsOverlap(), TAttMarker::SetMarkerColor(), and TAttMarker::SetMarkerStyle().

TGeoOverlap::~TGeoOverlap (  )  [virtual]

Definition at line 68 of file TGeoOverlap.cxx.

References fMarker, fMatrix1, and fMatrix2.

TGeoOverlap::TGeoOverlap ( const TGeoOverlap  )  [private]

TGeoOverlap::TGeoOverlap (  ) 

TGeoOverlap::TGeoOverlap ( const char *  name,
TGeoVolume vol1,
TGeoVolume vol2,
const TGeoMatrix matrix1,
const TGeoMatrix matrix2,
Bool_t  isovlp = kTRUE,
Double_t  ovlp = 0.01 
)

virtual TGeoOverlap::~TGeoOverlap (  )  [virtual]


Member Function Documentation

TGeoOverlap& TGeoOverlap::operator= ( const TGeoOverlap  )  [private]

void TGeoOverlap::Browse ( TBrowser b  )  [virtual]

Reimplemented from TObject.

Definition at line 77 of file TGeoOverlap.cxx.

References b, and Draw().

Int_t TGeoOverlap::Compare ( const TObject obj  )  const [virtual]

Reimplemented from TNamed.

Definition at line 85 of file TGeoOverlap.cxx.

References TObject::Error(), GetOverlap(), and IsExtrusion().

Int_t TGeoOverlap::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

Definition at line 107 of file TGeoOverlap.cxx.

References TVirtualGeoPainter::DistanceToPrimitiveVol(), fVolume1, TGeoVolume::GetGeoManager(), and TGeoManager::GetGeomPainter().

void TGeoOverlap::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 114 of file TGeoOverlap.cxx.

References TVirtualGeoPainter::DrawOverlap(), fVolume1, TGeoVolume::GetGeoManager(), TGeoManager::GetGeomPainter(), and PrintInfo().

Referenced by Browse(), and SampleOverlap().

void TGeoOverlap::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

Definition at line 123 of file TGeoOverlap.cxx.

References TVirtualGeoPainter::ExecuteVolumeEvent(), fVolume1, TGeoVolume::GetGeoManager(), and TGeoManager::GetGeomPainter().

TPolyMarker3D* TGeoOverlap::GetPolyMarker (  )  const [inline]

Definition at line 82 of file TGeoOverlap.h.

References fMarker.

Referenced by TGeoChecker::CheckOverlapsBySampling(), TGeoPainter::DrawOverlap(), and G__G__GeomPainter_105_0_10().

TGeoVolume* TGeoOverlap::GetFirstVolume (  )  const [inline]

Definition at line 83 of file TGeoOverlap.h.

References fVolume1.

Referenced by TGeoPainter::DistanceToPrimitiveVol(), G__G__GeomPainter_105_0_11(), TGeoPainter::GetVolumeInfo(), and TGeoPainter::PaintOverlap().

TGeoVolume* TGeoOverlap::GetSecondVolume (  )  const [inline]

Definition at line 84 of file TGeoOverlap.h.

References fVolume2.

Referenced by TGeoPainter::DistanceToPrimitiveVol(), G__G__GeomPainter_105_0_12(), TGeoPainter::GetVolumeInfo(), and TGeoPainter::PaintOverlap().

TGeoHMatrix* TGeoOverlap::GetFirstMatrix (  )  const [inline]

Definition at line 85 of file TGeoOverlap.h.

References fMatrix1.

Referenced by TGeoPainter::DistanceToPrimitiveVol(), G__G__GeomPainter_105_0_13(), and TGeoPainter::PaintOverlap().

TGeoHMatrix* TGeoOverlap::GetSecondMatrix (  )  const [inline]

Definition at line 86 of file TGeoOverlap.h.

References fMatrix2.

Referenced by TGeoPainter::DistanceToPrimitiveVol(), G__G__GeomPainter_105_0_14(), and TGeoPainter::PaintOverlap().

Double_t TGeoOverlap::GetOverlap (  )  const [inline]

Definition at line 87 of file TGeoOverlap.h.

References fOverlap.

Referenced by TGeoChecker::CheckOverlapsBySampling(), Compare(), G__G__GeomPainter_105_0_15(), TGeoPainter::GetVolumeInfo(), and TGeoChecker::MakeCheckOverlap().

Bool_t TGeoOverlap::IsExtrusion (  )  const [inline]

Definition at line 88 of file TGeoOverlap.h.

References kGeoExtrusion, and TObject::TestBit().

Referenced by Compare(), G__G__GeomPainter_105_0_16(), TGeoPainter::GetVolumeInfo(), and Validate().

Bool_t TGeoOverlap::IsOverlap (  )  const [inline]

Definition at line 89 of file TGeoOverlap.h.

References kGeoOverlap, and TObject::TestBit().

Referenced by G__G__GeomPainter_105_0_17(), and SampleOverlap().

Bool_t TGeoOverlap::IsFolder (  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 90 of file TGeoOverlap.h.

References kFALSE.

virtual Bool_t TGeoOverlap::IsSortable (  )  const [inline, virtual]

Reimplemented from TNamed.

Definition at line 91 of file TGeoOverlap.h.

References kTRUE.

void TGeoOverlap::Paint ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 130 of file TGeoOverlap.cxx.

References fVolume1, TGeoVolume::GetGeoManager(), TGeoManager::GetGeomPainter(), and TVirtualGeoPainter::PaintOverlap().

void TGeoOverlap::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

Definition at line 137 of file TGeoOverlap.cxx.

References fMatrix1, fMatrix2, fVolume1, fVolume2, TNamed::GetName(), TGeoVolume::InspectShape(), TGeoMatrix::Print(), and PrintInfo().

void TGeoOverlap::PrintInfo (  )  const [virtual]

Definition at line 150 of file TGeoOverlap.cxx.

References fOverlap, TNamed::GetName(), and TNamed::GetTitle().

Referenced by Draw(), G__G__GeomPainter_105_0_22(), and Print().

void TGeoOverlap::Sizeof3D (  )  const [virtual]

Reimplemented from TAtt3D.

Definition at line 220 of file TGeoOverlap.cxx.

References fVolume1, fVolume2, TGeoVolume::GetShape(), and TGeoShape::Sizeof3D().

Referenced by G__G__GeomPainter_221_0_29().

void TGeoOverlap::SampleOverlap ( Int_t  npoints = 1000000  ) 

Definition at line 164 of file TGeoOverlap.cxx.

References box(), TGeoShape::Capacity(), TGeoVolume::Contains(), Draw(), TObject::Error(), fMatrix1, fMatrix2, fVolume1, fVolume2, TNamed::GetName(), TGeoVolume::GetShape(), gPad, gRandom, TObject::Info(), IsOverlap(), kRed, TGeoMatrix::LocalToMaster(), marker, TGeoMatrix::MasterToLocal(), TRandom::Rndm(), and TMath::Sqrt().

Referenced by G__G__GeomPainter_105_0_24().

void TGeoOverlap::SetIsExtrusion ( Bool_t  flag = kTRUE  )  [inline]

Definition at line 97 of file TGeoOverlap.h.

References flag, kGeoExtrusion, kGeoOverlap, and TObject::SetBit().

Referenced by G__G__GeomPainter_105_0_25().

void TGeoOverlap::SetIsOverlap ( Bool_t  flag = kTRUE  )  [inline]

Definition at line 98 of file TGeoOverlap.h.

References flag, kGeoExtrusion, kGeoOverlap, and TObject::SetBit().

Referenced by G__G__GeomPainter_105_0_26(), and TGeoOverlap().

void TGeoOverlap::SetNextPoint ( Double_t  x,
Double_t  y,
Double_t  z 
)

Definition at line 157 of file TGeoOverlap.cxx.

References fMarker, and TPolyMarker3D::SetNextPoint().

Referenced by TGeoChecker::CheckOverlapsBySampling(), G__G__GeomPainter_105_0_27(), and TGeoChecker::MakeCheckOverlap().

void TGeoOverlap::SetFirstVolume ( TGeoVolume vol  )  [inline]

Definition at line 100 of file TGeoOverlap.h.

References fVolume1.

Referenced by G__G__GeomPainter_105_0_28().

void TGeoOverlap::SetSecondVolume ( TGeoVolume vol  )  [inline]

Definition at line 101 of file TGeoOverlap.h.

References fVolume2.

Referenced by G__G__GeomPainter_105_0_29().

void TGeoOverlap::SetFirstMatrix ( TGeoMatrix matrix  )  [inline]

Definition at line 102 of file TGeoOverlap.h.

References fMatrix1.

Referenced by G__G__GeomPainter_105_0_30().

void TGeoOverlap::SetSecondMatrix ( TGeoMatrix matrix  )  [inline]

Definition at line 103 of file TGeoOverlap.h.

References fMatrix2.

Referenced by G__G__GeomPainter_105_0_31().

void TGeoOverlap::SetOverlap ( Double_t  ovlp  )  [inline]

Definition at line 104 of file TGeoOverlap.h.

References fOverlap.

Referenced by TGeoChecker::CheckOverlapsBySampling(), G__G__GeomPainter_105_0_32(), and TGeoChecker::MakeCheckOverlap().

void TGeoOverlap::Validate (  )  const

Definition at line 228 of file TGeoOverlap.cxx.

References fMarker, fMatrix1, fMatrix2, fVolume1, fVolume2, TPolyMarker3D::GetN(), TPolyMarker3D::GetPoint(), TGeoVolume::GetShape(), i, IsExtrusion(), kFALSE, kTRUE, local, TGeoMatrix::MasterToLocal(), and TGeoShape::Safety().

Referenced by G__G__GeomPainter_105_0_33().

TGeoOverlap& TGeoOverlap::operator= ( const TGeoOverlap  )  [private]

void TGeoOverlap::Browse ( TBrowser b  )  [virtual]

Reimplemented from TObject.

virtual Int_t TGeoOverlap::Compare ( const TObject obj  )  const [virtual]

Reimplemented from TNamed.

virtual Int_t TGeoOverlap::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

virtual void TGeoOverlap::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

virtual void TGeoOverlap::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

TPolyMarker3D* TGeoOverlap::GetPolyMarker (  )  const [inline]

Definition at line 82 of file TGeoOverlap.h.

References fMarker.

TGeoVolume* TGeoOverlap::GetFirstVolume (  )  const [inline]

Definition at line 83 of file TGeoOverlap.h.

References fVolume1.

TGeoVolume* TGeoOverlap::GetSecondVolume (  )  const [inline]

Definition at line 84 of file TGeoOverlap.h.

References fVolume2.

TGeoHMatrix* TGeoOverlap::GetFirstMatrix (  )  const [inline]

Definition at line 85 of file TGeoOverlap.h.

References fMatrix1.

TGeoHMatrix* TGeoOverlap::GetSecondMatrix (  )  const [inline]

Definition at line 86 of file TGeoOverlap.h.

References fMatrix2.

Double_t TGeoOverlap::GetOverlap (  )  const [inline]

Definition at line 87 of file TGeoOverlap.h.

References fOverlap.

Bool_t TGeoOverlap::IsExtrusion (  )  const [inline]

Definition at line 88 of file TGeoOverlap.h.

References kGeoExtrusion, and TObject::TestBit().

Bool_t TGeoOverlap::IsOverlap (  )  const [inline]

Definition at line 89 of file TGeoOverlap.h.

References kGeoOverlap, and TObject::TestBit().

Bool_t TGeoOverlap::IsFolder (  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 90 of file TGeoOverlap.h.

References kFALSE.

virtual Bool_t TGeoOverlap::IsSortable (  )  const [inline, virtual]

Reimplemented from TNamed.

Definition at line 91 of file TGeoOverlap.h.

References kTRUE.

virtual void TGeoOverlap::Paint ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

virtual void TGeoOverlap::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

virtual void TGeoOverlap::PrintInfo (  )  const [virtual]

virtual void TGeoOverlap::Sizeof3D (  )  const [virtual]

Reimplemented from TAtt3D.

void TGeoOverlap::SampleOverlap ( Int_t  npoints = 1000000  ) 

void TGeoOverlap::SetIsExtrusion ( Bool_t  flag = kTRUE  )  [inline]

Definition at line 97 of file TGeoOverlap.h.

References flag, kGeoExtrusion, kGeoOverlap, and TObject::SetBit().

void TGeoOverlap::SetIsOverlap ( Bool_t  flag = kTRUE  )  [inline]

Definition at line 98 of file TGeoOverlap.h.

References flag, kGeoExtrusion, kGeoOverlap, and TObject::SetBit().

void TGeoOverlap::SetNextPoint ( Double_t  x,
Double_t  y,
Double_t  z 
)

void TGeoOverlap::SetFirstVolume ( TGeoVolume vol  )  [inline]

Definition at line 100 of file TGeoOverlap.h.

References fVolume1.

void TGeoOverlap::SetSecondVolume ( TGeoVolume vol  )  [inline]

Definition at line 101 of file TGeoOverlap.h.

References fVolume2.

void TGeoOverlap::SetFirstMatrix ( TGeoMatrix matrix  )  [inline]

Definition at line 102 of file TGeoOverlap.h.

References fMatrix1.

void TGeoOverlap::SetSecondMatrix ( TGeoMatrix matrix  )  [inline]

Definition at line 103 of file TGeoOverlap.h.

References fMatrix2.

void TGeoOverlap::SetOverlap ( Double_t  ovlp  )  [inline]

Definition at line 104 of file TGeoOverlap.h.

References fOverlap.

void TGeoOverlap::Validate (  )  const


Member Data Documentation

Double_t TGeoOverlap::fOverlap [protected]

Definition at line 63 of file TGeoOverlap.h.

Referenced by GetOverlap(), PrintInfo(), SetOverlap(), and TGeoOverlap().

TGeoVolume* TGeoOverlap::fVolume1 [protected]

Definition at line 64 of file TGeoOverlap.h.

Referenced by DistancetoPrimitive(), Draw(), ExecuteEvent(), GetFirstVolume(), Paint(), Print(), SampleOverlap(), SetFirstVolume(), Sizeof3D(), TGeoOverlap(), and Validate().

TGeoVolume* TGeoOverlap::fVolume2 [protected]

Definition at line 65 of file TGeoOverlap.h.

Referenced by GetSecondVolume(), Print(), SampleOverlap(), SetSecondVolume(), Sizeof3D(), TGeoOverlap(), and Validate().

TGeoHMatrix* TGeoOverlap::fMatrix1 [protected]

Definition at line 66 of file TGeoOverlap.h.

Referenced by GetFirstMatrix(), Print(), SampleOverlap(), SetFirstMatrix(), TGeoOverlap(), Validate(), and ~TGeoOverlap().

TGeoHMatrix* TGeoOverlap::fMatrix2 [protected]

Definition at line 67 of file TGeoOverlap.h.

Referenced by GetSecondMatrix(), Print(), SampleOverlap(), SetSecondMatrix(), TGeoOverlap(), Validate(), and ~TGeoOverlap().

TPolyMarker3D* TGeoOverlap::fMarker [protected]

Definition at line 68 of file TGeoOverlap.h.

Referenced by GetPolyMarker(), SetNextPoint(), TGeoOverlap(), Validate(), and ~TGeoOverlap().

TGeoVolume* TGeoOverlap::fVolume1 [protected]

Definition at line 64 of file TGeoOverlap.h.

TGeoVolume* TGeoOverlap::fVolume2 [protected]

Definition at line 65 of file TGeoOverlap.h.

TGeoHMatrix* TGeoOverlap::fMatrix1 [protected]

Definition at line 66 of file TGeoOverlap.h.

TGeoHMatrix* TGeoOverlap::fMatrix2 [protected]

Definition at line 67 of file TGeoOverlap.h.

TPolyMarker3D* TGeoOverlap::fMarker [protected]

Definition at line 68 of file TGeoOverlap.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:03 2011 for ROOT_528-00b_version by  doxygen 1.5.1