ATLAS Offline Software
LArCalorimeter
LArG4
LArG4RunControl
src
LArG4TBPosOptions.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 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
IService* pSvc;
14
ISvcLocator* svcLocator = Gaudi::svcLocator();
15
StatusCode
result
= svcLocator->service(
"DetectorStore"
,pSvc);
16
17
if
(
result
.isSuccess())
18
{
19
StoreGateSvc
*
detStore
=
dynamic_cast<
StoreGateSvc
*
>
(pSvc);
20
if
(!
detStore
){
21
std::cout <<
"LArG4TBPosOptions::saveMe ERROR Could not dynamic cast det store"
<< std::endl;
22
return
;
23
}
24
result
=
detStore
->record(
this
,
"LArG4TBPosOptions"
);
25
if
(!
result
.isSuccess())
26
std::cout <<
"Can not record LArG4BarrelOptions"
<< std::endl;
27
28
}
29
}
30
31
void
LArG4TBPosOptions::printMe
()
32
{
33
std::cout <<
" *** *** This is the object of type LArG4TBPosOptions *** *** \n"
;
34
std::cout <<
" ** PositionNickname = "
<<
m_PositionNickname
<<
"\n *** *** \n"
;
35
std::cout <<
" ** PositionNicknumber = "
<<
m_PositionNicknumber
<<
"\n *** *** \n"
;
36
}
get_generator_info.result
result
Definition:
get_generator_info.py:21
LArG4TBPosOptions.h
StoreGateSvc
The Athena Transient Store API.
Definition:
StoreGateSvc.h:128
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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:31
StoreGateSvc.h
Generated on Fri Jul 5 2024 21:20:26 for ATLAS Offline Software by
1.8.18