ATLAS Offline Software
LArCalorimeter
LArG4
LArG4RunControl
src
LArG4TBPosOptions.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArG4RunControl/LArG4TBPosOptions.h
"
6
7
#include "GaudiKernel/ISvcLocator.h"
8
#include "GaudiKernel/Bootstrap.h"
9
#include "
StoreGate/StoreGateSvc.h
"
10
11
void
LArG4TBPosOptions::saveMe
()
12
{
13
SmartIF<StoreGateSvc>
detStore
{Gaudi::svcLocator()->service(
"DetectorStore"
)};
14
if
(!
detStore
) {
15
std::cout <<
"LArG4TBPosOptions::saveMe ERROR Could not dynamic cast det store"
<< std::endl;
16
return
;
17
}
18
if
(!
detStore
->record(
this
,
"LArG4TBPosOptions"
).isSuccess()) {
19
std::cout <<
"Can not record LArG4BarrelOptions"
<< std::endl;
20
}
21
}
22
23
void
LArG4TBPosOptions::printMe
()
24
{
25
std::cout <<
" *** *** This is the object of type LArG4TBPosOptions *** *** \n"
;
26
std::cout <<
" ** PositionNickname = "
<<
m_PositionNickname
<<
"\n *** *** \n"
;
27
std::cout <<
" ** PositionNicknumber = "
<<
m_PositionNicknumber
<<
"\n *** *** \n"
;
28
}
LArG4TBPosOptions.h
LArG4TBPosOptions::saveMe
void saveMe()
Definition:
LArG4TBPosOptions.cxx:11
LArG4TBPosOptions::m_PositionNicknumber
int m_PositionNicknumber
Definition:
LArG4TBPosOptions.h:46
python.PyKernel.detStore
detStore
Definition:
PyKernel.py:41
LArG4TBPosOptions::m_PositionNickname
std::string m_PositionNickname
Definition:
LArG4TBPosOptions.h:43
LArG4TBPosOptions::printMe
void printMe()
Definition:
LArG4TBPosOptions.cxx:23
StoreGateSvc.h
Generated on Thu Nov 7 2024 21:19:38 for ATLAS Offline Software by
1.8.18