Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoOverlapCandidate.h
Go to the documentation of this file.
1// @(#)root/geom:$Id$
2// Author: Andrei Gheata 05/01/26
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGeoOverlapCandidate
13#define ROOT_TGeoOverlapCandidate
14
15#include "TBuffer3D.h"
16#include "TString.h"
17#include "TGeoMatrix.h"
18class TGeoShape;
19class TGeoVolume;
20
21// Lightweight description of a single overlap/extrusion check to perform
23 TString fName; ///< display name
24 TGeoVolume *fVol1 = nullptr; ///< first volume
25 TGeoVolume *fVol2 = nullptr; ///< second volume
26 TGeoHMatrix fMat1; ///< matrix for first volume
27 TGeoHMatrix fMat2; ///< matrix for second volume
28 Bool_t fIsOverlap = kTRUE; ///< kTRUE=overlap, kFALSE=extrusion
29 Double_t fOvlp = 0.0; ///< threshold for "illegal"
30};
31
32// Output of the numerical check (no ROOT object allocation inside)
34 TString fName; ///< display name
35 TGeoVolume *fVol1 = nullptr; ///< first volume
36 TGeoVolume *fVol2 = nullptr; ///< second volume
37 TGeoHMatrix fMat1; /// matrix for first volume
38 TGeoHMatrix fMat2; /// matrix for second volume
39 Bool_t fIsOverlap = kTRUE; ///< kTRUE=overlap, kFALSE=extrusion
40 Double_t fMaxOverlap = 0.0; ///< overlap distance found
41 std::vector<std::array<Double_t, 3>> fPoints; ///< up to N points (e.g. 100)
42};
43
44#endif // ROOT_TGeoOverlapWorkState
constexpr Bool_t kTRUE
Definition RtypesCore.h:107
Matrix class used for computing global transformations Should NOT be used for node definition.
Definition TGeoMatrix.h:459
Base abstract class for all shapes.
Definition TGeoShape.h:25
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Definition TGeoVolume.h:43
Basic string class.
Definition TString.h:138
TGeoHMatrix fMat2
matrix for second volume
TGeoVolume * fVol2
second volume
TGeoVolume * fVol1
first volume
TString fName
display name
Double_t fOvlp
threshold for "illegal"
Bool_t fIsOverlap
kTRUE=overlap, kFALSE=extrusion
TGeoHMatrix fMat1
matrix for first volume
TGeoVolume * fVol1
first volume
std::vector< std::array< Double_t, 3 > > fPoints
up to N points (e.g. 100)
TGeoHMatrix fMat2
matrix for first volume
TString fName
display name
TGeoVolume * fVol2
second volume
Bool_t fIsOverlap
matrix for second volume
Double_t fMaxOverlap
overlap distance found