|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef TRTCONDITIONSDATA_STRAWT0MULTCHANCONTAINER_H
15 #define TRTCONDITIONSDATA_STRAWT0MULTCHANCONTAINER_H
21 #include "GaudiKernel/MsgStream.h"
45 return StrawT0Trait::isvalid(*valwithcontainer.second) ? valwithcontainer.first->unpackT0( *valwithcontainer.second ) : 0 ;
51 return StrawT0Trait::isvalid(*valwithcontainer.second) ? valwithcontainer.first->unpackT0Err( *valwithcontainer.second ) : 0 ;
60 log << MSG::WARNING <<
"Sorry: cannot store containers at BARREL_EC granularity" <<
endmsg;
72 container->unpack(
sd,t0,t0err ) ;
77 void setPackingLimits(
float t0min,
float t0max,
float t0errmin,
float t0errmax) ;
80 static const char*
classname() {
return "TRTCond::StrawT0MultChanContainer" ; }
86 for(dauit = this->
begin() ; dauit != this->
end(); ++dauit)
87 (*dauit)->setPackingLimits( t0min,t0max,t0errmin,t0errmax ) ;
StrawT0ContainerTemplate< ExpandedIdentifier::LAYERWHEEL > StrawT0LayerContainer
Hold mappings of ranges to condition objects.
singleton-like access to IMessageSvc via open function and helper
std::pair< const StrawT0ContainerTemplate< ExpandedIdentifier::LAYERWHEEL > *, const typename DaughterContainer::value_type * > ContainerWithValue
get a value with the corresponding container.
void setT0(const ExpandedIdentifier &id, float t0, float t0err)
set t0
A CondMultChanCollection is a template class which can hold a collection of T* objects which are inte...
CONDCONT_DEF(TRTCond::StrawT0MultChanContainer, 182150756)
virtual ~StrawT0MultChanContainer()
destructor
const StrawT0ContainerTemplate< 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
float getT0(const ExpandedIdentifier &id) const
access to unpacked t0
IMessageSvc * getMessageSvc(bool quiet=false)
StrawT0ContainerTemplate< ExpandedIdentifier::LAYERWHEEL > * findContainer(const ExpandedIdentifier &id)
find a layercontainer from an identifier.
static bool isvalid(const StrawT0 &x)
Class for storing/accessing trt t0 data.
(Non-const) Iterator class for DataVector/DataList.
void setPackingLimits(float t0min, float t0max, float t0errmin, float t0errmax)
change the packing limits. NOTE: this only works for channels that already exist!
size_t channelId(const ExpandedIdentifier &x) const
calculate the channel for a given TRT identifier
void unpack(const ExpandedIdentifier &id, const StrawT0 &sd, float &t0, float &t0err) const
public method to unpack a StrawT0 object
CondMultChanCollection for storing TRT conditions data. CondMultChanCollections store objects identif...
StrawT0MultChanContainer()
constructor
static const char * classname()
classname used to talk to iovservice
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
void setT0(const ExpandedIdentifier &id, float t0, float t0err)
set t0
float getT0Err(const ExpandedIdentifier &id) const
access to unpacked t0 error
Identifier for TRT detector elements in the conditions code.
StrawT0ContainerTemplate< ExpandedIdentifier::LAYERWHEEL >::FlatContainer FlatContainer
typedefs
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.