ATLAS Offline Software
Loading...
Searching...
No Matches
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"
9
10#include "GeoModelKernel/GeoPhysVol.h"
11#include "GeoModelKernel/GeoTransform.h"
12
13#include "GaudiKernel/MsgStream.h"
14
15
17 TileDddbManager * /*pDbManager*/,
18 MsgStream * log)
19 : m_log(log)
20{
21}
22
23
27
28
29void 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
41void 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}
#define endmsg
JetDumper::Name Name
Definition JetDumper.cxx:19
void print(char *figname, TCanvas *c1)
Definition of TileGeoSectionBuioder class.
This class holds one or more material managers and makes them storeable, under StoreGate.
This class provides access to constants in the Geometry DB.
void MakeCut(GeoPhysVol *&mother, int number)
Section parameters are the following:
TileGeoCutBuilder(StoredMaterialManager *matManager, TileDddbManager *pDbManager, MsgStream *log)
Constructor.
void checking(const std::string &VolumeName, bool print, int level, double X1, double X2, double Y1, double Y2, double Z)
~TileGeoCutBuilder()
Destructor.
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186