ATLAS Offline Software
StrawStatusMultChanContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRT_CONDITIONSDATA_STRAWSTATUSMultChanCONTAINER_H
6 #define TRT_CONDITIONSDATA_STRAWSTATUSMultChanCONTAINER_H
7 
10 #include "AthenaKernel/CondCont.h"
11 
12 namespace TRTCond{
15 
18  class StrawStatusMultChanContainer : public MultChanContainer<StrawStatusContainerTemplate<ExpandedIdentifier::LAYERWHEEL> >
19  {
20  // pasted from RtRelationMultChanContainer
21  public:
22  //typedefs
27  virtual ~StrawStatusMultChanContainer() {} // needed to destruct owned pointers.
29  static const char* classname() { return "TRTCond::StrawStatusMultChanContainer" ; }
30 
31 
33  void setStatus(const ExpandedIdentifier& id, unsigned int status) {
35  findContainer(id)->setStatus(id,status) ;
36  else if( id.level()==ExpandedIdentifier::BARRELEC )
37  std::cout << "Sorry: TRTCond::StrawStatusMultChanContainer cannot store containers at BARREL_EC granularity" << std::endl ;
38  else
39  findContainer(id)->setStatus( id, status) ;
40  }
41 
42 
43  private:
44  } ;
45 
46 }
47 
48 
50 CONDCONT_DEF(TRTCond::StrawStatusMultChanContainer,1335119793);
51 
52 
53 #endif
StrawStatusContainer.h
TRTCond::StrawStatusMultChanContainer::StrawStatusMultChanContainer
StrawStatusMultChanContainer()
default constructor
Definition: StrawStatusMultChanContainer.h:25
CondCont.h
Hold mappings of ranges to condition objects.
TRTCond::StrawStatusMultChanContainer::setStatus
void setStatus(const ExpandedIdentifier &id, unsigned int status)
set t0
Definition: StrawStatusMultChanContainer.h:33
TRTCond::StrawStatusMultChanContainer
Definition: StrawStatusMultChanContainer.h:19
TRTCond::StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL >
TRTCond::ExpandedIdentifier::BARRELEC
@ BARRELEC
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTCond::StrawStatusMultChanContainer::~StrawStatusMultChanContainer
virtual ~StrawStatusMultChanContainer()
destructor
Definition: StrawStatusMultChanContainer.h:27
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TRTCond::MultChanContainer< StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > >::findContainer
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > * findContainer(const ExpandedIdentifier &id)
find a layercontainer from an identifier.
Definition: MultChanContainer.h:176
TRTCond::StrawStatusContainerTemplate::setStatus
void setStatus(const ExpandedIdentifier &id, unsigned int status)
set status
Definition: StrawStatusContainer.h:55
TRTCond::MultChanContainer
Definition: MultChanContainer.h:44
TRTCond::StrawStatusMultChanContainer::FlatContainer
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL >::FlatContainer FlatContainer
Definition: StrawStatusMultChanContainer.h:23
TRTCond::StrawStatusLayerContainer
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > StrawStatusLayerContainer
typedef the channels as NestedContainer
Definition: StrawStatusMultChanContainer.h:14
TRTCond::ExpandedIdentifier::DETECTOR
@ DETECTOR
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTCond::StrawStatusMultChanContainer::classname
static const char * classname()
classname used to talk to iovservice
Definition: StrawStatusMultChanContainer.h:29
MultChanContainer.h
CondMultChanCollection for storing TRT conditions data. CondMultChanCollections store objects identif...
TRTCond
Definition: BasicRtRelation.cxx:8
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
merge.status
status
Definition: merge.py:17
TRTCond::ExpandedIdentifier
Identifier for TRT detector elements in the conditions code.
Definition: InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:30
CONDCONT_DEF
CONDCONT_DEF(TRTCond::StrawStatusMultChanContainer, 1335119793)