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");
73 ATH_MSG_DEBUG (
"Running on RoI " << *roiDescriptor<<
" FS="<<roiDescriptor->isFullscan());
74 if ( roiDescriptor->isFullscan() ) {
80 cdv->updateCaloIterators();
90 for(
int sampling=0;sampling<4;sampling++){
93 for(
const auto cell :
sel ) {cdv->push_back( cell ); }
97 for(
int sampling=0;sampling<4;sampling++){
100 for(
const auto cell :
sel ) {cdv->push_back( cell ); }
105 std::vector<const TileCell*>
sel;
107 for(
const auto cell :
sel ) {
109 cdv->push_back( cell );
117 for(
const auto cell :
sel ) {cdv->push_back( cell ); }
121 for(
int sampling=0;sampling<2;sampling++){
124 for(
const auto cell :
sel ) {cdv->push_back( cell ); }
127 cdv->updateCaloIterators();
129 ATH_MSG_DEBUG (
"REGTEST: Producing "<<cdv->size()<<
" cells");
136 auto ss = cellContainer.
record( std::move(cdv) );
140 if ( seedLess ) {
delete roiCollection; }
141 return StatusCode::SUCCESS;
146 auto cdv = std::make_unique<ConstDataVector<CaloCellContainerVector> >();
149 if ( roiDescriptor->isFullscan() ) {
161 cellContainerV->push_back( c.release()->asDataVector() );
169 for(
int sampling=0;sampling<4;sampling++){
172 for(
const auto cell :
sel ) {c->push_back( cell ); }
176 for(
int sampling=0;sampling<4;sampling++){
179 for(
const auto cell :
sel ) {c->push_back( cell ); }
184 std::vector<const TileCell*>
sel;
186 for(
const auto cell :
sel ) {
188 c->push_back( cell );
196 for(
const auto cell :
sel ) {c->push_back( cell ); }
200 for(
int sampling=0;sampling<2;sampling++){
203 for(
const auto cell :
sel ) {c->push_back( cell ); }
206 c->updateCaloIterators();
213 cellContainerV->push_back( c.release()->asDataVector() );
218 if ( seedLess ) {
delete roiCollection; }
219 return StatusCode::SUCCESS;