ATLAS Offline Software
Loading...
Searching...
No Matches
TileGeoCutBuilder Class Reference

#include <TileGeoCutBuilder.h>

Collaboration diagram for TileGeoCutBuilder:

Public Member Functions

 TileGeoCutBuilder (StoredMaterialManager *matManager, TileDddbManager *pDbManager, MsgStream *log)
 Constructor.
 ~TileGeoCutBuilder ()
 Destructor.
void MakeCut (GeoPhysVol *&mother, int number)
 Section parameters are the following:
void checking (const std::string &VolumeName, bool print, int level, double X1, double X2, double Y1, double Y2, double Z)

Private Attributes

MsgStream * m_log

Detailed Description

Definition at line 26 of file TileGeoCutBuilder.h.

Constructor & Destructor Documentation

◆ TileGeoCutBuilder()

TileGeoCutBuilder::TileGeoCutBuilder ( StoredMaterialManager * matManager,
TileDddbManager * pDbManager,
MsgStream * log )

Constructor.

Definition at line 16 of file TileGeoCutBuilder.cxx.

19 : m_log(log)
20{
21}

◆ ~TileGeoCutBuilder()

TileGeoCutBuilder::~TileGeoCutBuilder ( )

Destructor.

Definition at line 24 of file TileGeoCutBuilder.cxx.

25{
26}

Member Function Documentation

◆ checking()

void TileGeoCutBuilder::checking ( const std::string & VolumeName,
bool print,
int level,
double X1,
double X2,
double Y1,
double Y2,
double Z )

Definition at line 41 of file TileGeoCutBuilder.cxx.

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)

◆ MakeCut()

void TileGeoCutBuilder::MakeCut ( GeoPhysVol *& mother,
int number )

Section parameters are the following:

Parameters
sec_numberNumber of sector
tile_rmaxMaximal radius
rminbMinimal radius
dzglueGlue gap along dZ
delta_phiDelta Phi
zlen_itc2Length for ITC2 only

Definition at line 29 of file TileGeoCutBuilder.cxx.

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}
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186

Member Data Documentation

◆ m_log

MsgStream* TileGeoCutBuilder::m_log
private

Definition at line 54 of file TileGeoCutBuilder.h.


The documentation for this class was generated from the following files: