ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12namespace 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) {
34 if( id.level()==ExpandedIdentifier::DETECTOR )
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
50CONDCONT_DEF(TRTCond::StrawStatusMultChanContainer,1335119793);
51
52
53#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
CondMultChanCollection for storing TRT conditions data.
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > * findContainer(const ExpandedIdentifier &id)
void setStatus(const ExpandedIdentifier &id, unsigned int status)
set status
A COOL multichannel container for StrawStatus.
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL >::FlatContainer FlatContainer
void setStatus(const ExpandedIdentifier &id, unsigned int status)
set t0
static const char * classname()
classname used to talk to iovservice
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > StrawStatusLayerContainer
typedef the channels as NestedContainer