ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArG4TBPosOptions Class Reference

#include <LArG4TBPosOptions.h>

Collaboration diagram for LArG4TBPosOptions:

Public Member Functions

 LArG4TBPosOptions ()
 
void saveMe ()
 
void printMe ()
 
void PositionNickname (const std::string &value)
 
void PositionNicknumber (int value)
 
const std::string & PositionNickname (void) const
 
int PositionNicknumber (void) const
 

Private Attributes

std::string m_PositionNickname
 
int m_PositionNicknumber
 

Detailed Description

Definition at line 19 of file LArG4TBPosOptions.h.

Constructor & Destructor Documentation

◆ LArG4TBPosOptions()

LArG4TBPosOptions::LArG4TBPosOptions ( )
inline

Definition at line 25 of file LArG4TBPosOptions.h.

25  :
26  m_PositionNickname("POSITION1"),

Member Function Documentation

◆ PositionNickname() [1/2]

void LArG4TBPosOptions::PositionNickname ( const std::string &  value)
inline

Definition at line 33 of file LArG4TBPosOptions.h.

◆ PositionNickname() [2/2]

const std::string& LArG4TBPosOptions::PositionNickname ( void  ) const
inline

Definition at line 37 of file LArG4TBPosOptions.h.

37 { return m_PositionNickname; }

◆ PositionNicknumber() [1/2]

void LArG4TBPosOptions::PositionNicknumber ( int  value)
inline

Definition at line 34 of file LArG4TBPosOptions.h.

◆ PositionNicknumber() [2/2]

int LArG4TBPosOptions::PositionNicknumber ( void  ) const
inline

Definition at line 38 of file LArG4TBPosOptions.h.

38 { return m_PositionNicknumber; }

◆ printMe()

void LArG4TBPosOptions::printMe ( )

Definition at line 31 of file LArG4TBPosOptions.cxx.

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 }

◆ saveMe()

void LArG4TBPosOptions::saveMe ( )

Definition at line 11 of file LArG4TBPosOptions.cxx.

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 }

Member Data Documentation

◆ m_PositionNickname

std::string LArG4TBPosOptions::m_PositionNickname
private

Definition at line 43 of file LArG4TBPosOptions.h.

◆ m_PositionNicknumber

int LArG4TBPosOptions::m_PositionNicknumber
private

Definition at line 46 of file LArG4TBPosOptions.h.


The documentation for this class was generated from the following files:
get_generator_info.result
result
Definition: get_generator_info.py:21
athena.value
value
Definition: athena.py:122
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::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