Report problems to ATLAS LXR Team (with time and IP address indicated)

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: linux ]
Version: head ] [ nightly ] [ GaudiDev ]
  Links to LXR source navigation pages for stable releases [ 12.*.* ]   [ 13.*.* ]   [ 14.*.* ]   [ 15.*.* ] 

001 #include "AtlfastAlgs/CompoundReconstructor.h"
002 #include "AtlfastUtils/DeleteObject.h"
003 
004 namespace Atlfast{
005 
006   CompoundReconstructor::CompoundReconstructor(IReconstructor *defaultReconstructor):m_primaryReconstructor(defaultReconstructor){}
007   CompoundReconstructor::CompoundReconstructor(const CompoundReconstructor &other):IReconstructor(other),
008                                                                  m_primaryReconstructor(other.m_primaryReconstructor),
009                                                                  m_marginalReconstructors(other.m_marginalReconstructors){}
010   
011   CompoundReconstructor::~CompoundReconstructor(){
012     std::for_each(m_marginalReconstructors.begin(),m_marginalReconstructors.end(),DeleteObject());
013   }
014   
015   CompoundReconstructor& CompoundReconstructor::operator=(const CompoundReconstructor &other){
016     if(this!=&other){
017       m_primaryReconstructor = other.m_primaryReconstructor;
018       m_marginalReconstructors = other.m_marginalReconstructors;
019     }
020     return *this;
021   }
022 
023   void CompoundReconstructor::addReplacement(const IAcceptingReconstructor *reconstructor){
024     m_primaryReconstructor.addReplacement(reconstructor);
025   }
026   void CompoundReconstructor::addMarginal(const IReconstructor *reconstructor){
027     m_marginalReconstructors.push_back(reconstructor);
028   }
029 
030   ReconstructedParticle CompoundReconstructor::reconstruct( const ReconstructedParticle &particle )const{
031     Accumulator accumulator(m_primaryReconstructor.reconstruct(particle));
032     std::for_each(m_marginalReconstructors.begin(),m_marginalReconstructors.end(),accumulator);
033     return accumulator.give();
034   }
035 
036 }//end of namespace
037 

source navigation ] diff markup ] identifier search ] general search ]

Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems
This page was automatically generated by the LXR engine. Valid HTML 4.01!