11 caloPosition_(rhs.caloPosition_),
12 photonCore_(rhs.photonCore_),
13 pixelSeed_(rhs.pixelSeed_),
14 fiducialFlagBlock_(rhs.fiducialFlagBlock_),
15 isolationR04_(rhs.isolationR04_),
16 isolationR03_(rhs.isolationR03_),
17 showerShapeBlock_(rhs.showerShapeBlock_),
18 full5x5_showerShapeBlock_(rhs.full5x5_showerShapeBlock_),
19 saturationInfo_(rhs.saturationInfo_),
20 eCorrections_(rhs.eCorrections_),
21 mipVariableBlock_(rhs.mipVariableBlock_),
22 pfIsolation_(rhs.pfIsolation_) {}
50 bool isEg =
false, isPf =
false;
52 for (
unsigned iConv = 0; iConv < conv2leg.
size(); iConv++) {
53 std::vector<edm::RefToBase<reco::Track> > convtracks = conv2leg[iConv]->tracks();
54 for (
unsigned itk = 0; itk < convtracks.size(); itk++) {
55 if (convTrack == convtracks[itk])
60 for (
unsigned iConv = 0; iConv < conv1leg.
size(); iConv++) {
61 std::vector<edm::RefToBase<reco::Track> > convtracks = conv1leg[iConv]->tracks();
62 for (
unsigned itk = 0; itk < convtracks.size(); itk++) {
63 if (convTrack == convtracks[itk])
80 newP4 *= newEnergy / newP4.e();
101 setP4(
type, newP4, delta_e, setToRecoCandidate);
118 throw cms::Exception(
"reco::Photon") <<
"unexpected p4 type " <<
type <<
" cannot return the energy value: ";
137 <<
"unexpected p4 type " <<
type <<
" cannot return the uncertainty on the energy: ";
162 if (setToRecoCandidate) {
179 throw cms::Exception(
"reco::Photon") <<
"unexpected p4 type: " <<
type <<
" cannot return p4 ";
189 for (
uint id = 2u;
id < ss1.hcalOverEcal.size(); ++
id) {
190 ss1.hcalOverEcal[1] += ss1.hcalOverEcal[
id];
191 ss1.hcalOverEcalBc[1] += ss1.hcalOverEcalBc[
id];
193 ss1.hcalOverEcal[
id] = 0.f;
194 ss1.hcalOverEcalBc[
id] = 0.f;
196 ss2.hcalOverEcal[1] += ss2.hcalOverEcal[
id];
197 ss2.hcalOverEcalBc[1] += ss2.hcalOverEcalBc[
id];
199 ss2.hcalOverEcal[
id] = 0.f;
200 ss2.hcalOverEcalBc[
id] = 0.f;
203 iv1.hcalRecHitSumEtBc[1] += iv1.hcalRecHitSumEtBc[
id];
205 iv1.hcalRecHitSumEt[
id] = 0.f;
206 iv1.hcalRecHitSumEtBc[
id] = 0.f;
208 iv2.hcalRecHitSumEt[1] += iv2.hcalRecHitSumEt[
id];
209 iv2.hcalRecHitSumEtBc[1] += iv2.hcalRecHitSumEtBc[
id];
211 iv2.hcalRecHitSumEt[
id] = 0.f;
212 iv2.hcalRecHitSumEtBc[
id] = 0.f;