ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileGeoModel
src
TileGeoCutBuilder.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TileGeoCutBuilder.h
"
6
#include "
TileDetDescr/TileDetDescrManager.h
"
7
#include "
TileDetDescr/TileDddbManager.h
"
8
#include "
TileDetDescr/TileDetDescriptor.h
"
9
10
#include "GeoModelKernel/GeoPhysVol.h"
11
#include "GeoModelKernel/GeoTransform.h"
12
13
#include "GaudiKernel/MsgStream.h"
14
15
16
TileGeoCutBuilder::TileGeoCutBuilder
(
StoredMaterialManager
*
/*matManager*/
,
17
TileDddbManager
*
/*pDbManager*/
,
18
MsgStream * log)
19
:
m_log
(log)
20
{
21
}
22
23
24
TileGeoCutBuilder::~TileGeoCutBuilder
()
25
{
26
}
27
28
29
void
TileGeoCutBuilder::MakeCut
(GeoPhysVol*& mother,
30
int
number
)
31
{
32
GeoTransform* tfTmp =
new
GeoTransform(GeoTrf::Translate3D(0.,0.,0.));
33
mother->add(tfTmp);
34
35
(*m_log) << MSG::INFO <<
" MakeCut : number= "
<<
number
<<
endmsg
;
36
}
37
38
39
// Checking geometry dimensions for all directions
40
41
void
TileGeoCutBuilder::checking
(
const
std::string&
Name
,
bool
print
,
int
level,
42
double
X1,
double
X2,
double
Y1,
double
Y2,
double
Z)
43
{
44
double
rless = .005;
// 5 [mkm]
45
std::string Step[8] = {
" "
,
46
" "
,
47
" "
,
48
" "
,
49
" "
,
50
" "
,
51
" "
,
52
" "
};
53
if
(
print
) {
54
if
(
m_log
->level()<=MSG::DEBUG)
55
(*m_log) << MSG::DEBUG <<Step[level]<<
Name
<<
"-"
<<level
56
<<
" dX1,dX2= "
<<X1<<
","
<<X2<<
" dY1,dY2= "
<<Y1<<
","
<<Y2<<
",dZ= "
<<Z
57
<<
endmsg
;
58
}
59
if
(X1 < rless && X2 < rless) {
60
(*m_log) << MSG::WARNING <<
" volume "
<<
Name
<<
" is empty, X1 or X2<0 "
<<
endmsg
;
61
}
62
if
(Y1 < rless && Y2 < rless) {
63
(*m_log) << MSG::WARNING <<
" volume "
<<
Name
<<
" is empty, Y1 or Y2<0 "
<<
endmsg
;
64
}
65
if
(Z < rless) {
66
(*m_log) << MSG::WARNING <<
" volume "
<<
Name
<<
" is empty, Z<0 "
<<
endmsg
;
67
}
68
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
Name
JetDumper::Name Name
Definition
JetDumper.cxx:19
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
TileDddbManager.h
TileDetDescrManager.h
TileDetDescriptor.h
TileGeoCutBuilder.h
Definition of TileGeoSectionBuioder class.
StoredMaterialManager
This class holds one or more material managers and makes them storeable, under StoreGate.
Definition
StoredMaterialManager.h:30
TileDddbManager
This class provides access to constants in the Geometry DB.
Definition
TileDddbManager.h:38
TileGeoCutBuilder::MakeCut
void MakeCut(GeoPhysVol *&mother, int number)
Section parameters are the following:
Definition
TileGeoCutBuilder.cxx:29
TileGeoCutBuilder::TileGeoCutBuilder
TileGeoCutBuilder(StoredMaterialManager *matManager, TileDddbManager *pDbManager, MsgStream *log)
Constructor.
Definition
TileGeoCutBuilder.cxx:16
TileGeoCutBuilder::checking
void checking(const std::string &VolumeName, bool print, int level, double X1, double X2, double Y1, double Y2, double Z)
Definition
TileGeoCutBuilder.cxx:41
TileGeoCutBuilder::~TileGeoCutBuilder
~TileGeoCutBuilder()
Destructor.
Definition
TileGeoCutBuilder.cxx:24
TileGeoCutBuilder::m_log
MsgStream * m_log
Definition
TileGeoCutBuilder.h:54
number
std::string number(const double &d, const std::string &s)
Definition
utils.cxx:186
Generated on
for ATLAS Offline Software by
1.17.0