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"
18#include <array>
19#include <vector>
20
21class TGeoShape;
22class TGeoVolume;
23
24// Lightweight description of a single overlap/extrusion check to perform
26 TString fName; ///< display name
27 TGeoVolume *fVol1 = nullptr; ///< first volume
28 TGeoVolume *fVol2 = nullptr; ///< second volume
29 TGeoHMatrix fMat1; ///< matrix for first volume
30 TGeoHMatrix fMat2; ///< matrix for second volume
31 Bool_t fIsOverlap = kTRUE; ///< kTRUE=overlap, kFALSE=extrusion
32 Double_t fOvlp = 0.0; ///< threshold for "illegal"
33};
34
35// Output of the numerical check (no ROOT object allocation inside)
37 TString fName; ///< display name
38 TGeoVolume *fVol1 = nullptr; ///< first volume
39 TGeoVolume *fVol2 = nullptr; ///< second volume
40 TGeoHMatrix fMat1; /// matrix for first volume
41 TGeoHMatrix fMat2; /// matrix for second volume
42 Bool_t fIsOverlap = kTRUE; ///< kTRUE=overlap, kFALSE=extrusion
43 Double_t fMaxOverlap = 0.0; ///< overlap distance found
44 std::vector<std::array<Double_t, 3>> fPoints; ///< up to N points (e.g. 100)
45};
46
47#endif // ROOT_TGeoOverlapWorkState
constexpr Bool_t kTRUE
Definition RtypesCore.h:108
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:45
Basic string class.
Definition TString.h:137
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