@@ -324,43 +324,43 @@ void Converter::FillDetectors() {
324324 switch (frag.second .GetAddress ()/1000 ) {
325325 // mapping systems to address ranges: 0 - GRIFFIN, 1 - BGO, 2 - LaBr, 3 - ancilliary BGO, 4 - NaI, 5 - SCEPTAR, 6 - SPICE, 7 - PACES, 8 - DESCANT
326326 case 0 :
327- fGriffin ->AddFragment (std::make_shared<TFragment>(* fFragment ) , channel);
327+ fGriffin ->AddFragment (frag. second , channel);
328328 if (fSettings ->VerbosityLevel () > 2 ) {
329329 std::cout<<" Added fragment " <<fFragment <<" to griffin:" <<std::endl;
330330 fFragment ->Print ();
331331 }
332332 break ;
333333 case 1 :
334334 case 3 :
335- fBgo ->AddFragment (std::make_shared<TFragment>(* fFragment ) , channel);
335+ fBgo ->AddFragment (frag. second , channel);
336336 if (fSettings ->VerbosityLevel () > 2 ) {
337337 std::cout<<" Added fragment " <<fFragment <<" to bgo:" <<std::endl;
338338 fFragment ->Print ();
339339 }
340340 break ;
341341 case 2 :
342- fLaBr ->AddFragment (std::make_shared<TFragment>(* fFragment ) , channel);
342+ fLaBr ->AddFragment (frag. second , channel);
343343 if (fSettings ->VerbosityLevel () > 2 ) {
344344 std::cout<<" Added fragment " <<fFragment <<" to labr:" <<std::endl;
345345 fFragment ->Print ();
346346 }
347347 break ;
348348 case 5 :
349- fSceptar ->AddFragment (std::make_shared<TFragment>(* fFragment ) , channel);
349+ fSceptar ->AddFragment (frag. second , channel);
350350 if (fSettings ->VerbosityLevel () > 2 ) {
351351 std::cout<<" Added fragment " <<fFragment <<" to sceptar:" <<std::endl;
352352 fFragment ->Print ();
353353 }
354354 break ;
355355 case 7 :
356- fPaces ->AddFragment (std::make_shared<TFragment>(* fFragment ) , channel);
356+ fPaces ->AddFragment (frag. second , channel);
357357 if (fSettings ->VerbosityLevel () > 2 ) {
358358 std::cout<<" Added fragment " <<fFragment <<" to paces:" <<std::endl;
359359 fFragment ->Print ();
360360 }
361361 break ;
362362 case 8 :
363- fDescant ->AddFragment (std::make_shared<TFragment>(* fFragment ) , channel);
363+ fDescant ->AddFragment (frag. second , channel);
364364 if (fSettings ->VerbosityLevel () > 2 ) {
365365 std::cout<<" Added fragment " <<fFragment <<" to descant:" <<std::endl;
366366 fFragment ->Print ();
0 commit comments