BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcRecFastCluster2Shower.cxx
Go to the documentation of this file.
1//
2// Convert from Cluster Map to Shower Map in online mode
3//
4// Created by Miao He 2006, 3, 9
5//
6#include <iostream>
7
8#include "EmcRec/EmcRecFastCluster2Shower.h"
9
10// Constructors and destructors
12 // cout<<"====== EmcRec: Online Mode ======"<<endl;
13}
14
16
18 RecEmcShowerMap& aShowerMap ) {
19 RecEmcClusterMap::const_iterator ciClusterMap;
20 RecEmcHitMap::const_iterator ciHitMap;
21
22 for ( ciClusterMap = aClusterMap.begin(); ciClusterMap != aClusterMap.end(); ++ciClusterMap )
23 {
24
25 RecEmcShower aShower;
26 aShower.Clear();
27 const RecEmcCluster& aCluster = ciClusterMap->second;
28
29 aShower.ShowerId( aCluster.getClusterId() );
30 RecEmcEnergy energy = aCluster.getEnergy();
31 aShower.EAll( energy );
32 aShower.setEnergy( energy );
33 aShower.setPosition( aCluster.getPosition() );
34 aShowerMap[aShower.getShowerId()] = aShower;
35 }
36}
map< RecEmcID, RecEmcCluster, less< RecEmcID > > RecEmcClusterMap
map< RecEmcID, RecEmcShower, less< RecEmcID > > RecEmcShowerMap
************Class m_ypar INTEGER m_KeyWgt INTEGER m_KeyIHVP INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
Definition KK2f.h:50
void setPosition(const HepPoint3D &pos)
virtual void Convert(RecEmcClusterMap &aClusterMap, RecEmcShowerMap &aShowerMap)
RecEmcEnergy getEnergy() const
HepPoint3D getPosition() const
RecEmcEnergy EAll(RecEmcEnergy e)
RecEmcID ShowerId(RecEmcID id)