ROOT
master
Reference Guide
Loading...
Searching...
No Matches
TGeoStateInfo.cxx
Go to the documentation of this file.
1
// @(#):$Id$
2
// Author: Andrei Gheata 07/02/2012
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
#include "
TGeoStateInfo.h
"
13
14
#include "
Rtypes.h
"
15
#include "
TGeoNode.h
"
16
#include "
TGeoManager.h
"
17
#include "
TGeoPolygon.h
"
18
19
/** \class TGeoStateInfo
20
\ingroup Geometry_classes
21
Statefull info for the current geometry level.
22
*/
23
24
25
////////////////////////////////////////////////////////////////////////////////
26
/// Constructor
27
28
TGeoStateInfo::TGeoStateInfo
(
Int_t
maxdaughters
)
29
: fNode(nullptr),
30
fAsmCurrent(0),
31
fAsmNext(0),
32
fDivCurrent(0),
33
fDivNext(0),
34
fDivTrans(),
35
fDivRot(),
36
fDivCombi(),
37
fVoxNcandidates(0),
38
fVoxCurrent(0),
39
fVoxCheckList(nullptr),
40
fVoxBits1(nullptr),
41
fBoolSelected(0),
42
fXtruSeg(0),
43
fXtruIz(0),
44
fXtruXc(nullptr),
45
fXtruYc(nullptr),
46
fXtruPoly(nullptr)
47
{
48
Int_t
maxDaughters
= (
maxdaughters
> 0) ?
maxdaughters
:
TGeoManager::GetMaxDaughters
();
49
Int_t
maxXtruVert
=
TGeoManager::GetMaxXtruVert
();
50
fVoxCheckList
=
new
Int_t
[
maxDaughters
];
51
fVoxBits1
=
new
UChar_t
[2 + ((
maxDaughters
- 1) >> 3)];
52
fXtruXc
=
new
Double_t
[
maxXtruVert
];
53
fXtruYc
=
new
Double_t
[
maxXtruVert
];
54
fVoxSlices
[0] =
fVoxSlices
[1] =
fVoxSlices
[2] = -1;
55
fVoxInc
[0] =
fVoxInc
[1] =
fVoxInc
[2] = 0;
56
fVoxInvdir
[0] =
fVoxInvdir
[1] =
fVoxInvdir
[2] = 0;
57
fVoxLimits
[0] =
fVoxLimits
[1] =
fVoxLimits
[2] = 0;
58
}
59
60
////////////////////////////////////////////////////////////////////////////////
61
/// Destructor
62
63
TGeoStateInfo::~TGeoStateInfo
()
64
{
65
delete
[]
fVoxCheckList
;
66
delete
[]
fVoxBits1
;
67
delete
[]
fXtruXc
;
68
delete
[]
fXtruYc
;
69
}
UChar_t
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char)
Definition
RtypesCore.h:52
Rtypes.h
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
TGeoManager.h
TGeoNode.h
TGeoPolygon.h
TGeoStateInfo.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TGeoManager::GetMaxDaughters
static Int_t GetMaxDaughters()
Return maximum number of daughters of a volume used in the geometry.
Definition
TGeoManager.cxx:2110
TGeoManager::GetMaxXtruVert
static Int_t GetMaxXtruVert()
Return maximum number of vertices for an xtru shape used.
Definition
TGeoManager.cxx:2126
double
int
TGeoStateInfo::fVoxSlices
Int_t fVoxSlices[3]
Definition
TGeoStateInfo.h:37
TGeoStateInfo::fVoxLimits
Double_t fVoxLimits[3]
Definition
TGeoStateInfo.h:40
TGeoStateInfo::~TGeoStateInfo
virtual ~TGeoStateInfo()
Destructor.
Definition
TGeoStateInfo.cxx:63
TGeoStateInfo::fXtruYc
Double_t * fXtruYc
Definition
TGeoStateInfo.h:47
TGeoStateInfo::fXtruXc
Double_t * fXtruXc
Definition
TGeoStateInfo.h:46
TGeoStateInfo::fVoxInc
Int_t fVoxInc[3]
Definition
TGeoStateInfo.h:38
TGeoStateInfo::fVoxCheckList
Int_t * fVoxCheckList
Definition
TGeoStateInfo.h:35
TGeoStateInfo::fVoxBits1
UChar_t * fVoxBits1
Definition
TGeoStateInfo.h:36
TGeoStateInfo::fVoxInvdir
Double_t fVoxInvdir[3]
Definition
TGeoStateInfo.h:39
TGeoStateInfo::TGeoStateInfo
TGeoStateInfo(Int_t maxdaughters=0)
Constructor.
Definition
TGeoStateInfo.cxx:28
geom
geom
src
TGeoStateInfo.cxx
ROOT master - Reference Guide Generated on Mon Sep 22 2025 04:32:06 (GVA Time) using Doxygen 1.10.0