ATLAS Offline Software
Loading...
Searching...
No Matches
RtRelationMultChanContainer.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace TRTCond
8{
9
11 {
12 // delete owned objects
13 clear() ;
14 }
15
21
23 {
24 // this is a bit tricky since we own the contents. the following
25 // solution is not particularly efficient, but the least amount of
26 // work for me.
27
28 // first delete owned objects
29 clear() ;
30
31 // now create a 'FlatContainer'
32 FlatContainer allentries;
33 rhs.getall(allentries) ;
34
35 // store them one-by-one
36 for(const auto & entry : allentries)
37 set( entry.first, *(entry.second) ) ;
38
39 return *this ;
40 }
41
42}
Class for storing/accessing trt rtrelations with channels 1;95;0c.
void set(const ExpandedIdentifier &id, const typename RtRelationLayerContainer::value_type &t)
void getall(typename DaughterContainer::FlatContainer &entries) const
get a flat vector with all values.
RtRelationMultChanContainer & operator=(const RtRelationMultChanContainer &rhs)
assignment
RtRelationLayerContainer::FlatContainer FlatContainer
typedef
NestedContainer< ExpandedIdentifier::LAYERWHEEL, RtRelation *, RtRelationTrait > RtRelationLayerContainer