|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef TRTCONDITIONSDATA_STRAWDXMULTCHANCONTAINER_H
15 #define TRTCONDITIONSDATA_STRAWDXMULTCHANCONTAINER_H
20 #include "GaudiKernel/MsgStream.h"
43 return StrawDxTrait::isvalid(*valwithcontainer.second) ? valwithcontainer.first->unpackDx1( *valwithcontainer.second ) : 0 ;
48 return StrawDxTrait::isvalid(*valwithcontainer.second) ? valwithcontainer.first->unpackDx2( *valwithcontainer.second ) : 0 ;
54 return StrawDxTrait::isvalid(*valwithcontainer.second) ? valwithcontainer.first->unpackDxErr( *valwithcontainer.second ) : 0 ;
63 log << MSG::WARNING <<
"Sorry: cannot store containers at BARREL_EC granularity" <<
endmsg ;
72 if(container==
nullptr) {
76 dx1 = container->
getDx1(
id);
77 dx2 = container->
getDx2(
id);
83 static const char*
classname() {
return "TRTCond::StrawDxMultChanContainer" ; }
static bool isvalid(const StrawDx &x)
singleton-like access to IMessageSvc via open function and helper
static const char * classname()
classname used to talk to iovservice
std::pair< const StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL > *, const typename DaughterContainer::value_type * > ContainerWithValue
get a value with the corresponding container.
StrawDxMultChanContainer()
constructor
float getDx2(const ExpandedIdentifier &id) const
access to unpacked dx far from electronics
void setDx(const ExpandedIdentifier &id, float dx1, float dx2, float dxerr)
set dx
const StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL > * getContainer(size_t chanid) const
get a layercontainer from a channel id.
ContainerWithValue getWithContainer(const ExpandedIdentifier &id) const
for retrieving t0 values, we need also the container to 'unpack' the t0
StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL > StrawDxLayerContainer
IMessageSvc * getMessageSvc(bool quiet=false)
virtual ~StrawDxMultChanContainer()
destructor
StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL > * findContainer(const ExpandedIdentifier &id)
find a layercontainer from an identifier.
float getDx1(const ExpandedIdentifier &id) const
access to unpacked dx near electronics
size_t channelId(const ExpandedIdentifier &x) const
calculate the channel for a given TRT identifier
CondMultChanCollection for storing TRT conditions data. CondMultChanCollections store objects identif...
float getDxErr(const ExpandedIdentifier &id) const
access to unpacked dx error
void unpack(const ExpandedIdentifier &id, float &dx1, float &dx2, float &dxerr) const
method to unpack a StrawDx object
float getDx1(const ExpandedIdentifier &id) const
access to unpacked dx
float getDxErr(const ExpandedIdentifier &id) const
access to unpacked dx error
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
void setDx(const ExpandedIdentifier &id, float dx1, float dx2, float dxerr)
set dx
Identifier for TRT detector elements in the conditions code.
Class for storing/accessing trt endpoint corrections data.
float getDx2(const ExpandedIdentifier &id) const
StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL >::FlatContainer FlatContainer
typedefs