8 RecEmcFractionMap::const_iterator cit;
25 vector<RecEmcEnergy> eVec;
26 vector<RecEmcEnergy>::const_iterator ciVec;
28 tmpNearCell.push_back(CellId);
29 tmpNextNearCell.push_back(CellId);
31 cit=aShower.
Find(CellId);
33 e1=(cit->second.getEnergy())*(cit->second.getFraction());
34 e9+=(cit->second.getEnergy())*(cit->second.getFraction());
35 e25+=(cit->second.getEnergy())*(cit->second.getFraction());
38 for(pNearCell=NearCell.begin();
39 pNearCell!=NearCell.end();
41 cit=aShower.
Find(*pNearCell);
42 if(cit!=aShower.
End()) {
43 tmpNearCell.push_back(*pNearCell);
44 tmpNextNearCell.push_back(*pNearCell);
45 e9+=cit->second.getEnergy()*cit->second.getFraction();
46 e25+=cit->second.getEnergy()*cit->second.getFraction();
51 for(pNextNearCell=NextNearCell.begin();
52 pNextNearCell!=NextNearCell.end();
54 cit=aShower.
Find(*pNextNearCell);
55 if(cit!=aShower.
End()) {
56 tmpNextNearCell.push_back(*pNextNearCell);
57 e25+=cit->second.getEnergy()*cit->second.getFraction();
62 for(cit=aShower.
Begin();cit!=aShower.
End();++cit) {
63 eall+=(cit->second.getEnergy())*(cit->second.getFraction());
64 eVec.push_back(cit->second.getEnergy()*cit->second.getFraction());
74 sort(eVec.begin(), eVec.end(), greater<RecEmcEnergy>());
76 for(ciVec=eVec.begin();ciVec!=eVec.end();ciVec++) {
88 if(getthetaid>21)getthetaid=43-getthetaid;
89 if(getmodule==1)getthetaid=getthetaid+6;
90 double dthetaid=double(getthetaid);
91 double eCorr = Para.
ECorrMC(e25,dthetaid);
95 de1 = Para.
SigE(0)/eCorr;
96 de2 = Para.
SigE(1)/pow(eCorr,0.25);
98 de = sqrt(de1*de1+de2*de2+de3*de3)*perCent*eCorr;
100 double err = Para.
ErrMC(e25,dthetaid);
101 if(err>0) de = err*e25;