/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/EmcRec/EmcRec-01-02-57/src/EmcRecFastCluster2Shower.cxx

Go to the documentation of this file.
00001 //
00002 //  Convert from Cluster Map to Shower Map in online mode
00003 //
00004 //  Created by Miao He 2006, 3, 9
00005 //
00006 #include <iostream>
00007 
00008 #include "EmcRec/EmcRecFastCluster2Shower.h"
00009 
00010 // Constructors and destructors
00011 EmcRecFastCluster2Shower::EmcRecFastCluster2Shower()
00012 {
00013   //cout<<"====== EmcRec: Online Mode ======"<<endl;
00014 }
00015 
00016 EmcRecFastCluster2Shower:: ~EmcRecFastCluster2Shower()
00017 {
00018 }
00019 
00020 void EmcRecFastCluster2Shower::Convert(RecEmcClusterMap& aClusterMap,
00021                                    RecEmcShowerMap& aShowerMap)
00022 {
00023   RecEmcClusterMap::const_iterator ciClusterMap;
00024   RecEmcHitMap::const_iterator ciHitMap;
00025    
00026   for(ciClusterMap=aClusterMap.begin();
00027       ciClusterMap!=aClusterMap.end();
00028       ++ciClusterMap) {
00029 
00030     RecEmcShower aShower;
00031     aShower.Clear();
00032     const RecEmcCluster &aCluster=ciClusterMap->second;
00033 
00034     aShower.ShowerId(aCluster.getClusterId());
00035     RecEmcEnergy energy=aCluster.getEnergy();
00036     aShower.EAll(energy);
00037     aShower.setEnergy(energy);
00038     aShower.setPosition(aCluster.getPosition());
00039     aShowerMap[aShower.getShowerId()]=aShower;
00040   }
00041 
00042 }
00043 

Generated on Tue Nov 29 23:13:18 2016 for BOSS_7.0.2 by  doxygen 1.4.7