Skip to content

Commit

Permalink
Move PF rechit read rules to classes_serial.cc
Browse files Browse the repository at this point in the history
Move the ROOT read rules for the PF rechits SoA host collections from
classes_serial_def.xml to classes_serial.cc.
  • Loading branch information
fwyzard committed Feb 20, 2024
1 parent 3f3b876 commit 23506e8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 48 deletions.
10 changes: 10 additions & 0 deletions DataFormats/ParticleFlowReco/src/classes_serial.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "DataFormats/ParticleFlowReco/interface/CaloRecHitHostCollection.h"
#include "DataFormats/ParticleFlowReco/interface/PFClusterHostCollection.h"
#include "DataFormats/ParticleFlowReco/interface/PFRecHitFractionHostCollection.h"
#include "DataFormats/ParticleFlowReco/interface/PFRecHitHostCollection.h"
#include "DataFormats/Portable/interface/PortableHostCollectionReadRules.h"

SET_PORTABLEHOSTCOLLECTION_READ_RULES(reco::CaloRecHitHostCollection);
SET_PORTABLEHOSTCOLLECTION_READ_RULES(reco::PFClusterHostCollection);
SET_PORTABLEHOSTCOLLECTION_READ_RULES(reco::PFRecHitFractionHostCollection);
SET_PORTABLEHOSTCOLLECTION_READ_RULES(reco::PFRecHitHostCollection);
60 changes: 12 additions & 48 deletions DataFormats/ParticleFlowReco/src/classes_serial_def.xml
Original file line number Diff line number Diff line change
@@ -1,65 +1,29 @@
<lcgdict>
<class name="reco::CaloRecHitSoA"/>
<class name="reco::CaloRecHitSoA::View"/>
<class name="reco::CaloRecHitHostCollection"/>
<read
sourceClass="reco::CaloRecHitHostCollection"
targetClass="reco::CaloRecHitHostCollection"
version="[1-]"
source="reco::CaloRecHitSoA layout_;"
target="buffer_,layout_,view_"
embed="false">
<![CDATA[
reco::CaloRecHitHostCollection::ROOTReadStreamer(newObj, onfile.layout_);
]]>
</read>
<class name="reco::CaloRecHitHostCollection" ClassVersion="3">
<version ClassVersion="3" checksum="1876594952"/>
</class>
<class name="edm::Wrapper<reco::CaloRecHitHostCollection>" splitLevel="0"/>

<class name="reco::PFRecHitSoA"/>
<class name="reco::PFRecHitSoA::View"/>
<class name="reco::PFRecHitHostCollection"/>
<read
sourceClass="reco::PFRecHitHostCollection"
targetClass="reco::PFRecHitHostCollection"
version="[1-]"
source="reco::PFRecHitSoA layout_;"
target="buffer_,layout_,view_"
embed="false">
<![CDATA[
reco::PFRecHitHostCollection::ROOTReadStreamer(newObj, onfile.layout_);
]]>
</read>
<class name="reco::PFRecHitHostCollection" ClassVersion="3">
<version ClassVersion="3" checksum="1936051484"/>
</class>
<class name="edm::Wrapper<reco::PFRecHitHostCollection>" splitLevel="0"/>

<class name="reco::PFClusterSoA"/>
<class name="reco::PFClusterSoA::View"/>
<class name="reco::PFClusterHostCollection"/>
<read
sourceClass="reco::PFClusterHostCollection"
targetClass="reco::PFClusterHostCollection"
version="[1-]"
source="reco::PFClusterSoA layout_;"
target="buffer_,layout_,view_"
embed="false">
<![CDATA[
reco::PFClusterHostCollection::ROOTReadStreamer(newObj, onfile.layout_);
]]>
</read>
<class name="reco::PFClusterHostCollection" ClassVersion="3">
<version ClassVersion="3" checksum="1232566394"/>
</class>
<class name="edm::Wrapper<reco::PFClusterHostCollection>" splitLevel="0"/>

<class name="reco::PFRecHitFractionSoA"/>
<class name="reco::PFRecHitFractionSoA::View"/>
<class name="reco::PFRecHitFractionHostCollection"/>
<read
sourceClass="reco::PFRecHitFractionHostCollection"
targetClass="reco::PFRecHitFractionHostCollection"
version="[1-]"
source="reco::PFRecHitFractionSoA layout_;"
target="buffer_,layout_,view_"
embed="false">
<![CDATA[
reco::PFRecHitFractionHostCollection::ROOTReadStreamer(newObj, onfile.layout_);
]]>
</read>
<class name="reco::PFRecHitFractionHostCollection" ClassVersion="3">
<version ClassVersion="3" checksum="2181211668"/>
</class>
<class name="edm::Wrapper<reco::PFRecHitFractionHostCollection>" splitLevel="0"/>
</lcgdict>

0 comments on commit 23506e8

Please sign in to comment.