ATLAS Offline Software
LArGeoTBGeometricOptions.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include "GaudiKernel/ISvcLocator.h"
8 #include "GaudiKernel/Bootstrap.h"
10 
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 << "LArGeoTBGeometricOptions::saveMe ERROR Could not dynamic cast det store" << std::endl;
22  return;
23  }
24  result=detStore->record(this,"LArGeoTBGeometricOptions");
25  if(!result.isSuccess())
26  std::cout << "Can not record LArGeoTBGeometricOptions" << std::endl;
27  }
28 }
29 
31 {
32  std::cout << " *** *** This is the object of type LArGeoTBGeometricOptions *** *** \n";
33  std::cout << " ** CryoEtaPosition = " << m_CryoEtaPosition << "\n *** *** \n";
34  std::cout << " ** CryoPhiPosition = " << m_CryoPhiPosition << "\n *** *** \n";
35 }
get_generator_info.result
result
Definition: get_generator_info.py:21
LArGeoTBGeometricOptions::m_CryoPhiPosition
double m_CryoPhiPosition
Definition: LArGeoTBGeometricOptions.h:47
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
LArGeoTBGeometricOptions::printMe
void printMe()
Definition: LArGeoTBGeometricOptions.cxx:30
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
LArGeoTBGeometricOptions::saveMe
void saveMe()
Definition: LArGeoTBGeometricOptions.cxx:11
LArGeoTBGeometricOptions.h
StoreGateSvc.h
LArGeoTBGeometricOptions::m_CryoEtaPosition
double m_CryoEtaPosition
Definition: LArGeoTBGeometricOptions.h:44