34 return StatusCode::SUCCESS;
46 if ( not roisHandle.isValid() ) {
47 ATH_MSG_ERROR(
"Cell maker did not get a valid RoIs collection");
48 return StatusCode::FAILURE;
50 roiCollection = roisHandle.cptr();
62 if ( roiCollection->
size() > 1 )
63 ATH_MSG_DEBUG (
"roiMode but multiple rois found, will only use the first one");
71 ATH_MSG_DEBUG (
"Running on RoI " << *roiDescriptor<<
" FS="<<roiDescriptor->isFullscan());
72 if ( roiDescriptor->isFullscan() ) {
78 cdv->updateCaloIterators();
88 for(
int sampling=0;sampling<4;sampling++){
91 for(
const auto cell :
sel ) {cdv->push_back(
cell ); }
95 for(
int sampling=0;sampling<4;sampling++){
98 for(
const auto cell :
sel ) {cdv->push_back(
cell ); }
103 std::vector<const TileCell*>
sel;
107 cdv->push_back(
cell );
115 for(
const auto cell :
sel ) {cdv->push_back(
cell ); }
119 for(
int sampling=0;sampling<2;sampling++){
122 for(
const auto cell :
sel ) {cdv->push_back(
cell ); }
125 cdv->updateCaloIterators();
127 ATH_MSG_DEBUG (
"REGTEST: Producing "<<cdv->size()<<
" cells");
134 auto ss = cellContainer.
record( std::move(cdv) );
138 if ( seedLess ) {
delete roiCollection; }
139 return StatusCode::SUCCESS;
144 auto cdv = std::make_unique<ConstDataVector<CaloCellContainerVector> >();
147 if ( roiDescriptor->isFullscan() ) {
159 cellContainerV->push_back(
c.release()->asDataVector() );
167 for(
int sampling=0;sampling<4;sampling++){
174 for(
int sampling=0;sampling<4;sampling++){
182 std::vector<const TileCell*>
sel;
186 c->push_back(
cell );
198 for(
int sampling=0;sampling<2;sampling++){
204 c->updateCaloIterators();
211 cellContainerV->push_back(
c.release()->asDataVector() );
216 if ( seedLess ) {
delete roiCollection; }
217 return StatusCode::SUCCESS;