CGEM BOSS 6.6.5.g
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
9
10// Constructors and destructors
12{
13 //cout<<"====== EmcRec: Online Mode ======"<<endl;
14}
15
17{
18}
19
21 RecEmcShowerMap& aShowerMap)
22{
23 RecEmcClusterMap::const_iterator ciClusterMap;
24 RecEmcHitMap::const_iterator ciHitMap;
25
26 for(ciClusterMap=aClusterMap.begin();
27 ciClusterMap!=aClusterMap.end();
28 ++ciClusterMap) {
29
30 RecEmcShower aShower;
31 aShower.Clear();
32 const RecEmcCluster &aCluster=ciClusterMap->second;
33
34 aShower.ShowerId(aCluster.getClusterId());
35 RecEmcEnergy energy=aCluster.getEnergy();
36 aShower.EAll(energy);
37 aShower.setEnergy(energy);
38 aShower.setPosition(aCluster.getPosition());
39 aShowerMap[aShower.getShowerId()]=aShower;
40 }
41
42}
43
************Class m_ypar INTEGER m_KeyWgt INTEGER m_nphot 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
map< RecEmcID, RecEmcCluster, less< RecEmcID > > RecEmcClusterMap
Definition: RecEmcCluster.h:92
double RecEmcEnergy
map< RecEmcID, RecEmcShower, less< RecEmcID > > RecEmcShowerMap
Definition: RecEmcShower.h:169
void setPosition(const HepPoint3D &pos)
Definition: DstEmcShower.h:62
void setEnergy(double e)
Definition: DstEmcShower.h:63
virtual void Convert(RecEmcClusterMap &aClusterMap, RecEmcShowerMap &aShowerMap)
RecEmcEnergy getEnergy() const
RecEmcID getClusterId() const
Definition: RecEmcCluster.h:41
HepPoint3D getPosition() const
RecEmcEnergy EAll(RecEmcEnergy e)
RecEmcID getShowerId() const
Definition: RecEmcShower.h:55
RecEmcID ShowerId(RecEmcID id)