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 ;
74 log << MSG::ERROR <<
"cannot find container channel " <<
channelId(
id) <<
endmsg;
83 static const char*
classname() {
return "TRTCond::StrawDxMultChanContainer" ; }
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
CondMultChanCollection for storing TRT conditions data.
Class for storing/accessing trt endpoint corrections data.
Identifier for TRT detector elements in the conditions code.
StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL > * findContainer(const ExpandedIdentifier &id)
const StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL > * getContainer(size_t chanid) const
size_t channelId(const ExpandedIdentifier &x) const
std::pair< const StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL > *, const typename StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL >::value_type * > ContainerWithValue
ContainerWithValue getWithContainer(const ExpandedIdentifier &id) const
std::vector< std::pair< ExpandedIdentifier, const StrawDx * > > FlatContainer
Template class for storing/accessing trt endpoint correction data.
void setDx(const ExpandedIdentifier &id, float dx1, float dx2, float dxerr)
set dx
Multichannel container for StrawDx objects.
float getDx2(const ExpandedIdentifier &id) const
access to unpacked dx far from electronics
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 near electronics
StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL >::FlatContainer FlatContainer
typedefs
virtual ~StrawDxMultChanContainer()
destructor
void setDx(const ExpandedIdentifier &id, float dx1, float dx2, float dxerr)
set dx
static const char * classname()
classname used to talk to iovservice
StrawDxMultChanContainer()
constructor
float getDxErr(const ExpandedIdentifier &id) const
access to unpacked dx error
static bool isvalid(const StrawDx &x)
singleton-like access to IMessageSvc via open function and helper
IMessageSvc * getMessageSvc(bool quiet=false)
StrawDxContainerTemplate< ExpandedIdentifier::LAYERWHEEL > StrawDxLayerContainer