38{
39
41 if (theCont->size()<hashMax) {
42 ATH_MSG_DEBUG(
"CaloCellContainer size " << theCont->size() <<
" smaller than hashMax: " << hashMax);
43 }
44 else if (theCont->size()==hashMax) {
45 ATH_MSG_DEBUG(
"CaloCellContainer size " << theCont->size() <<
" correspond to hashMax : " << hashMax);
46 theCont->setHasTotalSize(true);
47 }
48 else {
49 msg(MSG::WARNING) <<
"CaloCellContainer size " << theCont->size()
50 <<
" larger than hashMax ! Too many cells ! " << hashMax <<
endmsg ;
51
52 }
53
54
55
56 if (theCont->checkOrdered()){
58 theCont->setIsOrdered(true);
59 } else {
61 theCont->setIsOrdered(false);
62 }
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78 if (theCont->checkOrderedAndComplete()){
80 theCont->setIsOrderedAndComplete(true);
81 } else {
83 theCont->setIsOrderedAndComplete(false);
84 }
85
86 if (!theCont->isOrdered()) {
88 theCont->order();
89
90
92 if (theCont->checkOrdered()){
94 theCont->setIsOrdered(true);
95 } else {
97 theCont->setIsOrdered(false);
98 }
99
100
101
102 if (theCont->checkOrderedAndComplete()){
104 theCont->setIsOrderedAndComplete(true);
105 } else {
106 ATH_MSG_DEBUG(
"CaloCellContainer not ordered or incomplete");
107 theCont->setIsOrderedAndComplete(false);
108 }
109 }
110
111 theCont->updateCaloIterators();
112
113 return StatusCode::SUCCESS;
114}