ATLAS Offline Software
Loading...
Searching...
No Matches
MuonGM::SimpleVolAction Class Reference

#include <SimpleVolAction.h>

Inheritance diagram for MuonGM::SimpleVolAction:
Collaboration diagram for MuonGM::SimpleVolAction:

Public Member Functions

 SimpleVolAction ()
 ~SimpleVolAction ()
void handleVPhysVol (const GeoVPhysVol *)

Detailed Description

Definition at line 18 of file SimpleVolAction.h.

Constructor & Destructor Documentation

◆ SimpleVolAction()

MuonGM::SimpleVolAction::SimpleVolAction ( )

Definition at line 24 of file SimpleVolAction.cxx.

24: GeoVolumeAction(GeoVolumeAction::TOP_DOWN) {}

◆ ~SimpleVolAction()

MuonGM::SimpleVolAction::~SimpleVolAction ( )
default

Member Function Documentation

◆ handleVPhysVol()

void MuonGM::SimpleVolAction::handleVPhysVol ( const GeoVPhysVol * pv)

Definition at line 28 of file SimpleVolAction.cxx.

28 {
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 }
#define endmsg
IMessageSvc * getMessageSvc(bool quiet=false)

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