# Is there any class to extract the energy deposits in the calorimeter cells of ECAL in CMSSW?

**URL:** <https://opendata-forum.cern.ch/t/is-there-any-class-to-extract-the-energy-deposits-in-the-calorimeter-cells-of-ecal-in-cmssw/107>\
**Category:** Uncategorized\
**Created:** [1 March 2022 13:06 UTC](https://opendata-forum.cern.ch/t/is-there-any-class-to-extract-the-energy-deposits-in-the-calorimeter-cells-of-ecal-in-cmssw/107 "2022-03-01T13:06:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![5ee01532df1feadb14b5](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/5/b5a626/32.png) [@5ee01532df1feadb14b5](https://opendata-forum.cern.ch/u/5ee01532df1feadb14b5)\
**Post date:** [1 March 2022 13:06 UTC](https://opendata-forum.cern.ch/t/is-there-any-class-to-extract-the-energy-deposits-in-the-calorimeter-cells-of-ecal-in-cmssw/107/1 "2022-03-01T13:06:04Z")

</div>

Does the class `particleFlowClusterECAL` contain the energy deposits of the ECAL in CMSSW? What about `EcalRecHit` ? If, not how can I extract this information from a simulated dataset? Any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![kati](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/k/5f9b8f/32.png) [@kati](https://opendata-forum.cern.ch/u/kati)\
**Post date:** [16 March 2022 08:05 UTC](https://opendata-forum.cern.ch/t/is-there-any-class-to-extract-the-energy-deposits-in-the-calorimeter-cells-of-ecal-in-cmssw/107/2 "2022-03-16T08:05:54Z")

</div>

The data are made available in Analysis Object Data (AOD) format or slimmer MiniAOD for 2015, see also in [Data Model - CMS Open Data Guide](https://cms-opendata-guide.web.cern.ch/cmssw/cmsswdatamodel/) The exact energy deposits are not stored in the Electron object in that format.

Note that classes such as `particleFlowClusterECAL` are used in the _reconstruction_, i.e. in the step which produces the AOD formats, and they require input that is available only in the intermediate processing and in consequence, cannot be used in the _analysis_ step.

Best, Kati  
for the CMS open data team

---

<div class="post-metadata">

**Author:** ![5ee01532df1feadb14b5](https://opendata-forum.cern.ch/letter_avatar_proxy/v4/letter/5/b5a626/32.png) [@5ee01532df1feadb14b5](https://opendata-forum.cern.ch/u/5ee01532df1feadb14b5)\
**Post date:** [16 March 2022 15:48 UTC](https://opendata-forum.cern.ch/t/is-there-any-class-to-extract-the-energy-deposits-in-the-calorimeter-cells-of-ecal-in-cmssw/107/3 "2022-03-16T15:48:12Z")

</div>

I have resorted to using the module `reducedEcalRecHitsEB ` with type `edm::SortedCollection<EcalRecHit,edm::StrictWeakOrdering<EcalRecHit> >` for the process `RECO` . I was able to extract the `DetId` and `Hit Energy` which I then used to produce an image in the `ieta - iphi (ix - iy)` grid for EB (EE) .

Am I right to believe that this module will give me an idea about the energy deposits in the ECAL cells even though they belong to `RECO` data tier?
