File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
SimDataFormats/CaloAnalysis/interface Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ class CaloParticle {
169169 void addRecHitAndFraction (uint32_t hit, float fraction) {
170170 hits_.emplace_back (hit);
171171 fractions_.emplace_back (fraction);
172- ++nsimhits_;
173172 }
174173
175174 /* * @brief Returns list of rechit IDs and fractions for this CaloParticle */
@@ -185,7 +184,10 @@ class CaloParticle {
185184 float simEnergy () const { return simhit_energy_; }
186185
187186 /* * @brief add simhit's energy to cluster */
188- void addSimHit (const PCaloHit &hit) { simhit_energy_ += hit.energy (); }
187+ void addSimHit (const PCaloHit &hit) {
188+ simhit_energy_ += hit.energy ();
189+ ++nsimhits_;
190+ }
189191
190192private:
191193 uint64_t nsimhits_{0 };
Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ class SimCluster {
175175 void addRecHitAndFraction (uint32_t hit, float fraction) {
176176 hits_.emplace_back (hit);
177177 fractions_.emplace_back (fraction);
178- ++nsimhits_;
179178 }
180179
181180 /* * @brief add rechit energy */
@@ -214,7 +213,10 @@ class SimCluster {
214213 float simEnergy () const { return simhit_energy_; }
215214
216215 /* * @brief add simhit's energy to cluster */
217- void addSimHit (const PCaloHit &hit) { simhit_energy_ += hit.energy (); }
216+ void addSimHit (const PCaloHit &hit) {
217+ simhit_energy_ += hit.energy ();
218+ ++nsimhits_;
219+ }
218220
219221private:
220222 uint64_t nsimhits_{0 };
You can’t perform that action at this time.
0 commit comments