ATLAS Offline Software
MuonSpectrometer
MuonDetDescr
MuonGeoModel
src
SimpleVolAction.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/***************************************************************************
6
a GeoVolumeAction
7
-----------------------------------------
8
***************************************************************************/
9
10
#include "
MuonGeoModel/SimpleVolAction.h
"
11
12
#include "
AthenaKernel/getMessageSvc.h
"
13
#include "GaudiKernel/MsgStream.h"
14
15
#include <GaudiKernel/IMessageSvc.h>
16
#include <GeoModelKernel/GeoLogVol.h>
17
#include <GeoModelKernel/GeoMaterial.h>
18
#include <GeoModelKernel/GeoVPhysVol.h>
19
#include <GeoModelKernel/GeoVolumeAction.h>
20
#include <string>
21
22
namespace
MuonGM
{
23
24
SimpleVolAction::SimpleVolAction
() : GeoVolumeAction(GeoVolumeAction::TOP_DOWN) {}
25
26
SimpleVolAction::~SimpleVolAction() =
default
;
27
28
void
SimpleVolAction::handleVPhysVol(
const
GeoVPhysVol *
pv
) {
29
MsgStream
log
(
Athena::getMessageSvc
(),
"MuGM::SimpleVolAction"
);
30
31
// std::cout<<" MY VOL Action is handlying a GeoVPhysVol "<<std::endl;
32
const
GeoLogVol *lv =
pv
->getLogVol();
33
const
std::string&
name
= lv->getName();
34
const
GeoMaterial *
mat
= lv->getMaterial();
35
unsigned
int
nchild =
pv
->getNChildVols();
36
37
log
<< MSG::INFO <<
" *** Tree Navigation *** in "
<<
name
<<
" made of "
<<
mat
->getName() <<
" N.of Children "
<< nchild <<
endmsg
;
38
39
for
(
unsigned
int
i
= 0;
i
< nchild; ++
i
) {
40
log
<< MSG::INFO <<
" ... child n. "
<<
i
<<
" named "
<<
pv
->getNameOfChildVol(
i
) <<
endmsg
;
41
}
42
}
43
44
}
// namespace MuonGM
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition:
GeoMuonHits.h:27
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
mat
GeoMaterial * mat
Definition:
LArDetectorConstructionTBEC.cxx:55
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition:
getMessageSvc.cxx:20
lumiFormat.i
int i
Definition:
lumiFormat.py:85
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
SimpleVolAction.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
MuonGM::SimpleVolAction::SimpleVolAction
SimpleVolAction()
Definition:
SimpleVolAction.cxx:27
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
python.changerun.pv
pv
Definition:
changerun.py:81
Generated on Thu Nov 7 2024 21:26:10 for ATLAS Offline Software by
1.8.18