5#ifndef TRT_CONDITIONSSERVICES_TRT_STRAWALIGNDBSVC_H
6#define TRT_CONDITIONSSERVICES_TRT_STRAWALIGNDBSVC_H
16#include "GaudiKernel/ToolHandle.h"
22#include "GaudiKernel/ServiceHandle.h"
28 class TRT_DetectorManager ;
68 const std::string&
file);
74 StatusCode
registerObjects(std::string tag,
int run1,
int event1,
int run2,
int event2)
const;
115 return const_cast<StrawDxContainer*
>(
rc) ;
118inline const TRT_StrawAlignDbSvc::StrawDxContainer*
121 const StrawDxContainer*
rc =
nullptr;
130 return const_cast<StrawDxContainer*
>(
rc) ;
defines an "iterator" over instances of a given type in StoreGateSvc
#define IOVSVC_CALLBACK_ARGS
short hand for IOVSvc call back argument list, to be used when no access to formal arguments is neede...
abstract interface to TRT straw alignment constants
Class for storing/accessing trt endpoint corrections data.
This is an Identifier helper class for the TRT subdetector.
Define macros for attributes used to control the static checker.
#define ATLAS_NO_CHECK_FILE_THREAD_SAFETY
an iterator over instances of a given type in StoreGateSvc.
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
Identifier for TRT detector elements in the conditions code.
This is an Identifier helper class for the TRT subdetector.
TRT_StrawAlignDbSvc(const std::string &name, ISvcLocator *pSvcLocator)
constructor
const DataHandle< StrawDxContainer > m_dxcontainer
virtual StatusCode readTextFile(const std::string &file)
read calibration from text file into TDS
virtual ~TRT_StrawAlignDbSvc()
destructor
float getDx2(const Identifier &id) const
get shift far from electronics
float getDx1(const Identifier &id) const
get shift near electronics
StatusCode writeTextFile(const std::string &file) const
write calibration constants to flat text file
std::string m_par_strawtextfile
StatusCode IOVCallBack(IOVSVC_CALLBACK_ARGS)
IOV call back for dx objects. normally this doesn't do anything.
TRTCond::ExpandedIdentifier trtcondid(const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const
create an TRTCond::ExpandedIdentifier from a TRTID identifier
const InDetDD::TRT_DetectorManager * m_trtman
void setDx(const TRTCond::ExpandedIdentifier &id, float dx1, float dx2, float dxerr)
set endpoints for a TRTCond::ExpandedIdentifier
virtual StatusCode finalize()
tool finalize
StatusCode streamOutObjects() const
write the calibration objects to output, after cleaning
virtual StatusCode initialize()
tool initialize
StrawDxContainer * getDxContainer() const
access to containers
float getDxErr(const Identifier &id) const
get error on shift
StatusCode registerObjects(std::string tag, int run1, int event1, int run2, int event2) const
register calibration objects with the IoV service
const StrawDxContainer * getConstDxContainer() const
ServiceHandle< StoreGateSvc > m_detStore
std::string m_par_dxcontainerkey
ToolHandle< IAthenaOutputStreamTool > m_streamer