ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
TRT_ConditionsData
TRT_ConditionsData
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
8
#include "
TRT_ConditionsData/StrawStatusContainer.h
"
9
#include "
TRT_ConditionsData/MultChanContainer.h
"
10
#include "
AthenaKernel/CondCont.h
"
11
12
namespace
TRTCond
{
14
typedef
StrawStatusContainerTemplate<ExpandedIdentifier::LAYERWHEEL>
StrawStatusLayerContainer
;
15
18
class
StrawStatusMultChanContainer
:
public
MultChanContainer
<StrawStatusContainerTemplate<ExpandedIdentifier::LAYERWHEEL> >
19
{
20
// pasted from RtRelationMultChanContainer
21
public
:
22
//typedefs
23
typedef
StrawStatusContainerTemplate<ExpandedIdentifier::LAYERWHEEL>::FlatContainer
FlatContainer
;
25
StrawStatusMultChanContainer
() {}
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
49
CLASS_DEF
(
TRTCond::StrawStatusMultChanContainer
,1112780409,1)
50
CONDCONT_DEF
(
TRTCond
::StrawStatusMultChanContainer,1335119793);
51
52
53
#endif
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
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:67
MultChanContainer.h
CondMultChanCollection for storing TRT conditions data.
StrawStatusContainer.h
TRTCond::ExpandedIdentifier
Identifier for TRT detector elements in the conditions code.
Definition
InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:30
TRTCond::ExpandedIdentifier::DETECTOR
@ DETECTOR
Definition
InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTCond::ExpandedIdentifier::BARRELEC
@ BARRELEC
Definition
InnerDetector/InDetConditions/TRT_ConditionsData/TRT_ConditionsData/ExpandedIdentifier.h:37
TRTCond::MultChanContainer< StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > >::MultChanContainer
MultChanContainer()
Definition
MultChanContainer.h:48
TRTCond::MultChanContainer< StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > >::findContainer
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > * findContainer(const ExpandedIdentifier &id)
Definition
MultChanContainer.h:177
TRTCond::NestedContainerBase< NestingLevel, NestedContainer< NestingLevel+1, StrawStatus, DeadStrawTrait >, StrawStatus, DeadStrawTrait >::FlatContainer
std::vector< std::pair< ExpandedIdentifier, const StrawStatus * > > FlatContainer
Definition
NestedContainer.h:346
TRTCond::StrawStatusContainerTemplate
Definition
StrawStatusContainer.h:44
TRTCond::StrawStatusContainerTemplate::setStatus
void setStatus(const ExpandedIdentifier &id, unsigned int status)
set status
Definition
StrawStatusContainer.h:55
TRTCond::StrawStatusMultChanContainer
A COOL multichannel container for StrawStatus.
Definition
StrawStatusMultChanContainer.h:19
TRTCond::StrawStatusMultChanContainer::FlatContainer
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL >::FlatContainer FlatContainer
Definition
StrawStatusMultChanContainer.h:23
TRTCond::StrawStatusMultChanContainer::StrawStatusMultChanContainer
StrawStatusMultChanContainer()
default constructor
Definition
StrawStatusMultChanContainer.h:25
TRTCond::StrawStatusMultChanContainer::setStatus
void setStatus(const ExpandedIdentifier &id, unsigned int status)
set t0
Definition
StrawStatusMultChanContainer.h:33
TRTCond::StrawStatusMultChanContainer::classname
static const char * classname()
classname used to talk to iovservice
Definition
StrawStatusMultChanContainer.h:29
TRTCond::StrawStatusMultChanContainer::~StrawStatusMultChanContainer
virtual ~StrawStatusMultChanContainer()
destructor
Definition
StrawStatusMultChanContainer.h:27
TRTCond
Definition
BasicRtRelation.cxx:8
TRTCond::StrawStatusLayerContainer
StrawStatusContainerTemplate< ExpandedIdentifier::LAYERWHEEL > StrawStatusLayerContainer
typedef the channels as NestedContainer
Definition
StrawStatusMultChanContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0